Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yuezhihang
2022-06-21 11:09:25 +08:00
7 changed files with 3716 additions and 3769 deletions
@@ -136,7 +136,7 @@ export default {
this.$message.warning(res.message) this.$message.warning(res.message)
fileList.pop() fileList.pop()
} }
this.importModalshowflagtemp = false // this.importModalshowflagtemp = false
}, },
//文件上传前 //文件上传前
beforeUpload(file){ beforeUpload(file){
@@ -192,6 +192,7 @@ export default {
}, res => { }, res => {
if(res.respCode === '200'){ if(res.respCode === '200'){
this.$emit('emitInsState',true) this.$emit('emitInsState',true)
this.$message.success('归档成功')
} }
}, e => { }, e => {
}) })
@@ -12,7 +12,9 @@
<div class="row"> <div class="row">
<div class="item" @click="clickButtonTo"> <div class="item" @click="clickButtonTo">
<div style="cursor: pointer;">附件 <div style="cursor: pointer;">附件
<span style="color: #409EFF">{{answer.appendixName}}</span> <div v-if="fileList.length > 0" v-for="(item,index) in fileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 40px;" class="fileClass">
<span style="" @click="clickButtonTo(item.id)" :title="item.name"> {{ item.name }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -42,16 +44,33 @@ export default {
checked: '', checked: '',
answererNowUserId: this.$store.getters.userInfo.userId, answererNowUserId: this.$store.getters.userInfo.userId,
answererNowUserName: this.$store.getters.userInfo.userName, answererNowUserName: this.$store.getters.userInfo.userName,
fileList:[],
} }
}, },
methods:{ methods:{
assemble(ids,names){
let list= [];
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
}
return list;
},
//点击预览 //点击预览
clickButtonTo() { clickButtonTo(attId) {
const attId = this.answer.appendixId // 过滤
this.$preview(attId) if(attId.indexOf("ATT_FILE") !== -1){
this.$preview(attId)
}
}, },
answerChang(){} answerChang(){}
}, },
mounted () {
this.fileList = this.assemble(this.answer.appendixId,this.answer.appendixName)
},
watch:{ watch:{
answer: { answer: {
immediate: true, immediate: true,
@@ -65,6 +84,9 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/ .fileClass{
line-height: 22px !important;
}
#answer-item{ #answer-item{
width: 100%; width: 100%;
min-width: 130px; min-width: 130px;
File diff suppressed because it is too large Load Diff
@@ -74,7 +74,8 @@
<div slot="left"> <div slot="left">
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
<el-form :modal="standCommonlySearch" :inline="true" class="label-input-form"> <el-form :modal="standCommonlySearch" :inline="true" class="label-input-form"
@keyup.enter.native="searchBtnClick(standCommonlySearch)">
<!-- <el-form-item label="标准==类别" class="search-item" style="margin-top:1px;">--> <!-- <el-form-item label="标准==类别" class="search-item" style="margin-top:1px;">-->
<!-- <el-select v-model="standCommonlySearch.standSort" filterable>--> <!-- <el-select v-model="standCommonlySearch.standSort" filterable>-->
<!-- <el-option--> <!-- <el-option-->
@@ -115,10 +116,9 @@
v-btn-permission="'d38fea2d0d992615f9e1c4dfb6dc76f3'" v-btn-permission="'d38fea2d0d992615f9e1c4dfb6dc76f3'"
@click="clearAllSearch('standCommonlySearch')">清空 @click="clearAllSearch('standCommonlySearch')">清空
</el-button> </el-button>
<el-button size="mini" type="primary" class="common-button-default" <el-button size="mini" type="primary" class="common-button-primary"
v-btn-permission="'c9cb749aacefc52347f1250d0f98272a'" @click="selectMoreBtn"> v-btn-permission="'c9cb749aacefc52347f1250d0f98272a'" @click="selectMoreBtn"><i
<!-- <i class="iconfont">&#xe7a5;</i>--> class="iconfont">&#xe7a5;</i>高级检索
高级检索
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -346,28 +346,29 @@
label="收藏" align="center" width="50px" label="收藏" align="center" width="50px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div--> <div
<!-- v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681') == 1"--> v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681') == 1"
<!-- @command="handleCommand"--> @command="handleCommand"
<!-- >--> >
<!-- <el-button type="text" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"--> <el-button type="text" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
<!-- v-if="scope.row.collectBtn"--> v-if="scope.row.collectBtn"
<!-- @click="handleCommand([scope.row, '收藏'])"--> @click="handleCommand([scope.row, '收藏'])"
<!-- >收藏--> >收藏
<!-- </el-button>--> </el-button>
<!-- <el-button type="text" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"--> <el-button type="text" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
<!-- v-else--> v-else
<!-- @click="handleCommand([scope.row, '取消收藏'])"--> @click="handleCommand([scope.row, '取消收藏'])"
<!-- >取消收藏--> >取消收藏
<!-- </el-button>--> </el-button>
<!-- <el-button type="text" @click="handleCommand([scope.row, '编辑'])"--> <el-button type="text" @click="handleCommand([scope.row, '编辑'])"
<!-- v-btn-permission="'247cebaefa7cf1683092af160af11502'">编辑--> v-btn-permission="'247cebaefa7cf1683092af160af11502'">编辑
<!-- </el-button>--> </el-button>
<!-- <el-button type="text" @click="handleCommand([scope.row, '删除']) "--> <el-button type="text" @click="handleCommand([scope.row, '删除']) "
<!-- v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">删除--> v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">删除
<!-- </el-button>--> </el-button>
<!-- </div>--> </div>
<div>
<div v-else>
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
<!-- <i class="iconfont">&#xe61e;</i>--> <!-- <i class="iconfont">&#xe61e;</i>-->
<el-button title="收藏" class="collection-btn" icon="el-icon-star-off" <el-button title="收藏" class="collection-btn" icon="el-icon-star-off"
@@ -697,16 +698,16 @@
<template v-else-if="field.attrField === 'DYMCCAR'"> <template v-else-if="field.attrField === 'DYMCCAR'">
<el-form-item label="模块结构单元名称(乘用车)" title="模块结构单元名称(乘用车)" label-width="150px" prop="dymccar" class="add-form-item"> <el-form-item label="模块结构单元名称(乘用车)" title="模块结构单元名称(乘用车)" label-width="150px" prop="dymccar" class="add-form-item">
<el-input <el-input
v-if="sarStandardsInfoEO.DYBXHCAR === '' || sarStandardsInfoEO.DYBXHCAR === undefined" v-if="sarStandardsInfoEO.DYBXHCAR === '' || sarStandardsInfoEO.DYBXHCAR === undefined"
v-model="sarStandardsInfoEO.DYMCCAR = ''" v-model="sarStandardsInfoEO.DYMCCAR = ''"
disabled disabled
clearable clearable
></el-input> ></el-input>
<el-input <el-input
v-else v-else
v-model="sarStandardsInfoEO.DYMCCAR" v-model="sarStandardsInfoEO.DYMCCAR"
disabled disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
</template> </template>
@@ -646,14 +646,14 @@
</el-select> </el-select>
</el-form-item>--> </el-form-item>-->
<!-- 体系类别--> <!-- 体系类别-->
<!-- <el-form-item label="体系类别" class="add-form-item form-item-disabled"> <!-- <el-form-item label="体系类别" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable <el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in txlbOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" <el-option v-for="opt in txlbOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
:label="opt.label">{{ opt.label }} :label="opt.label">{{ opt.label }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item>--> </el-form-item>-->
<!-- 责任工程师--> <!-- 责任工程师-->
<template> <template>
<el-form-item <el-form-item
@@ -1080,9 +1080,9 @@
</template> </template>
<template v-else-if="field.attrField === 'DYBXH'"> <template v-else-if="field.attrField === 'DYBXH'">
<el-form-item <el-form-item
prop="DYBXH" prop="DYBXH"
label-width="150px" label-width="150px"
class="add-form-item" class="add-form-item"
> >
<template slot="label">模块结构单元变型号(卡车)</template> <template slot="label">模块结构单元变型号(卡车)</template>
<el-input v-model="sarStandardsInfoEO.DYBXH" placeholder="选择模块结构单元变型号(卡车)" <el-input v-model="sarStandardsInfoEO.DYBXH" placeholder="选择模块结构单元变型号(卡车)"
@@ -1101,9 +1101,9 @@
</template> </template>
<template v-else-if="field.attrField === 'DYBXHCAR'"> <template v-else-if="field.attrField === 'DYBXHCAR'">
<el-form-item <el-form-item
prop="DYBXHCAR" prop="DYBXHCAR"
label-width="150px" label-width="150px"
class="add-form-item" class="add-form-item"
> >
<template slot="label">模块结构单元变型号(乘用车)</template> <template slot="label">模块结构单元变型号(乘用车)</template>
<el-input v-model="sarStandardsInfoEO.DYBXHCAR" placeholder="选择模块结构单元变型号(乘用车)" <el-input v-model="sarStandardsInfoEO.DYBXHCAR" placeholder="选择模块结构单元变型号(乘用车)"
@@ -1114,16 +1114,16 @@
<template v-else-if="field.attrField === 'DYMCCAR'"> <template v-else-if="field.attrField === 'DYMCCAR'">
<el-form-item label="模块结构单元名称(乘用车)" label-width="150px" prop="DYMCCAR" class="add-form-item"> <el-form-item label="模块结构单元名称(乘用车)" label-width="150px" prop="DYMCCAR" class="add-form-item">
<el-input <el-input
v-if="sarStandardsInfoEO.DYBXHCAR === '' || sarStandardsInfoEO.DYBXHCAR === undefined" v-if="sarStandardsInfoEO.DYBXHCAR === '' || sarStandardsInfoEO.DYBXHCAR === undefined"
v-model="sarStandardsInfoEO.DYMCCAR = ''" v-model="sarStandardsInfoEO.DYMCCAR = ''"
disabled disabled
clearable clearable
></el-input> ></el-input>
<el-input <el-input
v-else v-else
v-model="sarStandardsInfoEO.DYMCCAR" v-model="sarStandardsInfoEO.DYMCCAR"
disabled disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
</template> </template>
@@ -1686,18 +1686,18 @@
@popoverHideCancel="popoverHideModelCancel()"> @popoverHideCancel="popoverHideModelCancel()">
</tree-select-module> </tree-select-module>
<tree-select-module <tree-select-module
width="500" width="500"
:lazy=true :lazy=true
:multiple=true :multiple=true
:check-strictly=true :check-strictly=true
:modalShowFlag="modalShowFlag5" :modalShowFlag="modalShowFlag5"
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="modelType" :type="modelType"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys4" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys4"
:nodeKey="nodeKeyModel" @popoverHide="popoverCarHideModel" :nodeKey="nodeKeyModel" @popoverHide="popoverCarHideModel"
@popoverHideCancel="popoverCarHideModelCancel()"> @popoverHideCancel="popoverCarHideModelCancel()">
</tree-select-module> </tree-select-module>
<!-- 导入失败 --> <!-- 导入失败 -->
<el-dialog :visible.sync="importFailed" :close-on-click-modal="false" width="400px"> <el-dialog :visible.sync="importFailed" :close-on-click-modal="false" width="400px">
@@ -1082,6 +1082,7 @@ export default {
this.$http.get('lawss/AskQuestions/getAskQuestionsNew',{ this.$http.get('lawss/AskQuestions/getAskQuestionsNew',{
standardId: this.activestand, standardId: this.activestand,
classification: this.activeName, classification: this.activeName,
problemDescription: this.questionSerach.problemDescription
},{ },{
_this: this _this: this
}, res => { }, res => {
+3 -3
View File
@@ -6,10 +6,10 @@
// 服务器地址 // 服务器地址
// const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
// const devInterfacePORT = '10005' // const devInterfacePORT = '10005'
// const devIp = '192.168.1.33' // const devIp = '192.168.1.42'
// const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
const devIp = '192.168.0.109' const devIp = '39.98.140.126'
const devInterfacePORT = '9999' const devInterfacePORT = '4201'
// const devIp = '62.234.136.153' // const devIp = '62.234.136.153'
// const devInterfacePORT = '8033' // const devInterfacePORT = '8033'
// 配置 idm 认证 // 配置 idm 认证