Merge branch 'develop' into FOTON
This commit is contained in:
+10
-4
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app" ref="appView">
|
<div id="app">
|
||||||
<!-- <router-view v-if="!isBoolean"/>-->
|
<!-- <router-view v-if="!isBoolean"/>-->
|
||||||
<span v-if="this.$route.name === 'Login'|| !isBoolean">
|
<span v-if="this.$route.name === 'Login'|| !isBoolean">
|
||||||
<router-view />
|
<router-view />
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<nav-menu></nav-menu>
|
<nav-menu></nav-menu>
|
||||||
<div class="sub-container" style="margin-left: 60px">
|
<div class="sub-container" style="margin-left: 60px">
|
||||||
<div class="container-box">
|
<div class="container-box">
|
||||||
<router-view/>
|
<router-view ref="appView1"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-main>
|
</el-main>
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
<nav-menu></nav-menu>
|
<nav-menu></nav-menu>
|
||||||
<div class="sub-container" style="margin-left: 200px">
|
<div class="sub-container" style="margin-left: 200px">
|
||||||
<div class="container-box">
|
<div class="container-box">
|
||||||
<router-view/>
|
<router-view ref="appView2"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-main>
|
</el-main>
|
||||||
@@ -104,9 +104,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleRefreshTable() {
|
handleRefreshTable() {
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// 获取页面中已注册过ref的所有的子组件。
|
// 获取页面中已注册过ref的所有的子组件。
|
||||||
let refList = this.$refs.appView.$refs;
|
let refList = ''
|
||||||
|
if(this.$refs.appView1){
|
||||||
|
refList = this.$refs.appView1.$children[0].$refs;
|
||||||
|
}else{
|
||||||
|
refList = this.$refs.appView2.$children[0].$refs;
|
||||||
|
}
|
||||||
if (refList) {
|
if (refList) {
|
||||||
for (let i of Object.keys(refList)) {
|
for (let i of Object.keys(refList)) {
|
||||||
// 根据doLayout方法判断子组件是不是el-table
|
// 根据doLayout方法判断子组件是不是el-table
|
||||||
|
|||||||
@@ -107,12 +107,12 @@
|
|||||||
// menuId: 'RAFQ4N4ARF'
|
// menuId: 'RAFQ4N4ARF'
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
title: '国内法规',
|
title: '国内标准',
|
||||||
path: '/domesticStandardsAndRegulations',
|
path: '/domesticStandardsAndRegulations',
|
||||||
menuId: '3e3657498664beaa0dc1de1ecb3ae0da'
|
menuId: '3e3657498664beaa0dc1de1ecb3ae0da'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '海外法规',
|
title: '海外标准',
|
||||||
path: '/foreignStandardsAndRegulations',
|
path: '/foreignStandardsAndRegulations',
|
||||||
menuId: '18c1e5134ea0cf865e8960b26b81fd8c'
|
menuId: '18c1e5134ea0cf865e8960b26b81fd8c'
|
||||||
},
|
},
|
||||||
@@ -213,34 +213,34 @@
|
|||||||
// }
|
// }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '政策法规库',
|
// title: '政策法规库',
|
||||||
path: '/policyRegulation',
|
// path: '/policyRegulation',
|
||||||
'icon-class': 'el-icon-s-management',
|
// 'icon-class': 'el-icon-s-management',
|
||||||
menuId: 'asdzcfgk',
|
// menuId: 'asdzcfgk',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
title: '问题项管控',
|
// title: '问题项管控',
|
||||||
path: '/problemControl',
|
// path: '/problemControl',
|
||||||
menuId: '50d7a0c0af4740c486100c257ae6068e'
|
// menuId: '50d7a0c0af4740c486100c257ae6068e'
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '国内外政策',
|
// title: '国内外政策',
|
||||||
path: '/nationalPolicy',
|
// path: '/nationalPolicy',
|
||||||
menuId: '6557e9c4ce672af71be5807052da126b'
|
// menuId: '6557e9c4ce672af71be5807052da126b'
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '标准跟踪清单',
|
// title: '标准跟踪清单',
|
||||||
path: '/standardTrackingList',
|
// path: '/standardTrackingList',
|
||||||
menuId: 'a26b92e156f68dbfe0d73b0dc068ebe4'
|
// menuId: 'a26b92e156f68dbfe0d73b0dc068ebe4'
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '政策工作组',
|
// title: '政策工作组',
|
||||||
path: '/policyWorkGroup',
|
// path: '/policyWorkGroup',
|
||||||
menuId: 'f1a4b33a498e58a8a87c954ce5ce6ad6'
|
// menuId: 'f1a4b33a498e58a8a87c954ce5ce6ad6'
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '工作中心',
|
title: '工作中心',
|
||||||
path: '/processCenter',
|
path: '/processCenter',
|
||||||
|
|||||||
@@ -323,4 +323,8 @@
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
.common-tree{
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -320,5 +320,8 @@
|
|||||||
// display: none;
|
// display: none;
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
.common-tree{
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -16,14 +16,15 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="filterText"
|
v-model="filterText"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
|
@keyup.enter.native="searchChange"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="" class="search-item btn-box">
|
<el-form-item label="" class="search-item btn-box">
|
||||||
<el-button class="common-button-primary" type="primary" style="margin-top: 14px;" size="medium" @click="changeInput(filterText)">
|
<el-button class="common-button-primary" type="primary" style="margin-top: 14px;" size="medium" @click="searchChange">
|
||||||
查询
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-tree
|
<el-tree
|
||||||
v-if="open1 && isVisible2"
|
v-if="open1 && isVisible2"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
@check-change="checkChange2"
|
@check-change="checkChange2"
|
||||||
:default-checked-keys="nodeList"
|
:default-checked-keys="nodeList"
|
||||||
|
:default-expanded-keys="defaultKey"
|
||||||
highlight-current
|
highlight-current
|
||||||
check-strictly
|
check-strictly
|
||||||
@check="drawerCheck"
|
@check="drawerCheck"
|
||||||
@@ -132,20 +134,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeInput:debounce(function (val) {
|
searchChange(){
|
||||||
if (val.length) {
|
if (this.filterText.length) {
|
||||||
this.open1 = false
|
this.open1 = false
|
||||||
this.treeLoading = true
|
this.treeLoading = true
|
||||||
this.$http.get('SarInstitution/institution/institutionAndUser', {
|
this.defaultKey = []
|
||||||
userName: val
|
this.$http.get('SarInstitution/institution/getNextTwo', {
|
||||||
|
userName: this.filterText
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
this.treeData1 = res.data
|
this.treeData1 = res
|
||||||
|
this.treeData1.forEach(item => {
|
||||||
|
this.defaultKey.push(item.id)
|
||||||
|
})
|
||||||
this.treeLoading = false
|
this.treeLoading = false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// this.$http.get('SarInstitution/institution/institutionAndUser', {
|
||||||
|
// userName: this.filterText
|
||||||
|
// }, {}, res => {
|
||||||
|
// this.treeData1 = res.data
|
||||||
|
// this.treeData1.forEach(item => {
|
||||||
|
// this.defaultKey.push(item.id)
|
||||||
|
// })
|
||||||
|
// console.log(1);
|
||||||
|
// this.getChildren()
|
||||||
|
// this.treeLoading = false
|
||||||
|
// })
|
||||||
} else {
|
} else {
|
||||||
this.open1 = true
|
this.open1 = true
|
||||||
}
|
}
|
||||||
}),
|
},
|
||||||
checkChange2 (row, type, c) {
|
checkChange2 (row, type, c) {
|
||||||
if (this.checkBox) {
|
if (this.checkBox) {
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1048,6 +1048,8 @@ export default {
|
|||||||
batchDelete () {
|
batchDelete () {
|
||||||
if (this.selectedList.length === 0) {
|
if (this.selectedList.length === 0) {
|
||||||
this.$message.error('请选择要删除的数据')
|
this.$message.error('请选择要删除的数据')
|
||||||
|
} if(this.selectedList.length > 10){
|
||||||
|
this.$message.error('批量删除仅支持10条以内')
|
||||||
} else {
|
} else {
|
||||||
this.$confirm('确认删除选择数据?', '确认删除', {
|
this.$confirm('确认删除选择数据?', '确认删除', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
@@ -36,12 +36,23 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleBack() {
|
handleBack() {
|
||||||
if (this.$store.state.detailMap !== '') {
|
if (this.$store.state.detailMap !== '') {
|
||||||
this.$router.push({
|
let queryParam = {}
|
||||||
path: this.$store.state.detailMap,
|
if(this.$route.query.bpnId){
|
||||||
query: {
|
queryParam = {
|
||||||
|
bpnId: this.$route.query.bpnId,
|
||||||
prcNum: this.$store.getters.getHandleInfo.prcNum || '',
|
prcNum: this.$store.getters.getHandleInfo.prcNum || '',
|
||||||
tabsName: this.$store.getters.getHandleInfo.tabsName || ''
|
tabsName: this.$store.getters.getHandleInfo.tabsName || ''
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
queryParam = {
|
||||||
|
bpnId: this.$route.query.bpnId,
|
||||||
|
prcNum: this.$store.getters.getHandleInfo.prcNum || '',
|
||||||
|
tabsName: this.$store.getters.getHandleInfo.tabsName || ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$store.state.detailMap,
|
||||||
|
query: queryParam
|
||||||
})
|
})
|
||||||
this.$store.commit('setDetailMap', '')
|
this.$store.commit('setDetailMap', '')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="24">
|
||||||
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
<el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="form.file" class="fileClass">
|
<div v-if="form.file" class="fileClass">
|
||||||
<div style="display: flex;align-items: center;">
|
<div style="display: flex;align-items: center;">
|
||||||
@@ -125,7 +125,8 @@
|
|||||||
v-model="form.dyhz"
|
v-model="form.dyhz"
|
||||||
style="height: 150px"
|
style="height: 150px"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:autosize="{ minRows: 1, maxRows: 20}"
|
:autosize="{ minRows: 1, maxRows: 5}"
|
||||||
|
resize='none'
|
||||||
placeholder="请输入调研回执"
|
placeholder="请输入调研回执"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
|
|||||||
@@ -462,6 +462,7 @@
|
|||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
let data = JSON.parse(res.mesg)
|
||||||
|
this.form.fjList = data.fjList || data.form.fjList
|
||||||
this.form.title = data.title || data.form.title
|
this.form.title = data.title || data.form.title
|
||||||
this.form.processName = data.processName || data.form.processName
|
this.form.processName = data.processName || data.form.processName
|
||||||
this.form.date = data.date || data.form.date
|
this.form.date = data.date || data.form.date
|
||||||
|
|||||||
@@ -2267,7 +2267,7 @@ export default {
|
|||||||
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
|
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
|
||||||
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
this.form = JSON.parse(JSON.stringify(json))
|
||||||
this.form.textStatus = this.form.textStatus === 'jjxoynfepp' ? '' : this.form.textStatus
|
this.form.textStatus = this.form.textStatus === 'jjxoynfepp' || this.form.textStatus === 'vsaga7nwub' ? '' : this.form.textStatus
|
||||||
this.getListTree(bringData)
|
this.getListTree(bringData)
|
||||||
this.form.standId = bringData.id
|
this.form.standId = bringData.id
|
||||||
if (this.form.country) {
|
if (this.form.country) {
|
||||||
|
|||||||
@@ -698,7 +698,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 保存||提交-->
|
<!-- 保存||提交-->
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
v-show="verifySarStandard || !disabledXX"
|
v-show="verifySarStandard && !disabledXX"
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
|
|||||||
@@ -681,7 +681,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 保存||提交-->
|
<!-- 保存||提交-->
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
v-show="verifySarStandard || !disabledXX"
|
v-show="verifySarStandard && !disabledXX"
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="bussSort" label="企标类别" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
<el-form-item prop="bussSort" label="企标类别" style="width: 100%; margin-right:10px" class="add-form-item form-item-disabled">
|
||||||
<el-select disabled v-model="qbfsForm.bussSort" multiple filterable placeholder="请选择企标类别" style="width: 100%;">
|
<el-select disabled v-model="qbfsForm.bussSort" filterable placeholder="请选择企标类别" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in standSortOptions"
|
v-for="(item, index) in standSortOptions"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -497,7 +497,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.qbfsForm.rqbName = this.selectList[0].rqbName
|
this.qbfsForm.rqbName = this.selectList[0].rqbName
|
||||||
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
|
this.qbfsForm.tsJsonName = this.selectList[0].tsJsonName
|
||||||
this.qbfsForm.isRelate = this.selectList[0].isRelate
|
this.qbfsForm.isRelate = this.selectList[0].isRelate.indexOf("null") !== -1 ? "":this.selectList[0].isRelate
|
||||||
this.qbfsForm.useLevel = this.selectList[0].useLevel
|
this.qbfsForm.useLevel = this.selectList[0].useLevel
|
||||||
this.qbfsForm.esStandRelations = this.selectList[0].esStandRelations
|
this.qbfsForm.esStandRelations = this.selectList[0].esStandRelations
|
||||||
this.qbfsForm.technologic = this.selectList[0].technologic
|
this.qbfsForm.technologic = this.selectList[0].technologic
|
||||||
|
|||||||
@@ -596,6 +596,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div v-if="rhform.modelList.length > 0" class="fileClass" style="display: flex;">
|
<div v-if="rhform.modelList.length > 0" class="fileClass" style="display: flex;">
|
||||||
<div v-for="(item, index) in rhform.modelList" :key="index" @click="fileUpload" style="margin-right: 5px;">
|
<div v-for="(item, index) in rhform.modelList" :key="index" @click="handleFilePreview(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.data.length > 0" class="fileClass">
|
<div v-if="scope.row.data.length > 0" class="fileClass">
|
||||||
<div v-for="(item, index) in scope.row.data" :key="index" @click="fileUpload2(scope.$index)" style="margin-right: 5px;">
|
<div v-for="(item, index) in scope.row.data" :key="index" @click="handleFilePreview(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -392,7 +392,7 @@
|
|||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
import { saveTaskFirst } from "api/process";
|
import { saveTaskFirst,taskDel,queryTaskFirst } from "api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "zcchStep1",
|
name: "zcchStep1",
|
||||||
@@ -652,6 +652,24 @@
|
|||||||
})
|
})
|
||||||
this.data2[this.fileIndex].dataName = list
|
this.data2[this.fileIndex].dataName = list
|
||||||
},
|
},
|
||||||
|
// 文件预览及下载
|
||||||
|
handleFilePreview(file) {
|
||||||
|
let attId = ""
|
||||||
|
if(file && file.id){
|
||||||
|
attId = file.id
|
||||||
|
}else {
|
||||||
|
attId = file.response.data.id
|
||||||
|
}
|
||||||
|
if (this.preview) {
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$preview(attId)
|
||||||
|
}
|
||||||
|
},
|
||||||
fileUpload() {
|
fileUpload() {
|
||||||
this.fileMadel = true
|
this.fileMadel = true
|
||||||
},
|
},
|
||||||
@@ -748,8 +766,17 @@
|
|||||||
this.$refs['Form'].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.get('lawss/activiti/startProcess', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
type: '18'
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
|
type: '18',
|
||||||
|
json: JSON.stringify({
|
||||||
|
form: this.rhform,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText,
|
||||||
|
data1: this.data1,
|
||||||
|
data2: this.data2,
|
||||||
|
})
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
var json = Object.assign(this.rhform, this.roleForm)
|
var json = Object.assign(this.rhform, this.roleForm)
|
||||||
@@ -763,6 +790,14 @@
|
|||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('流程发起成功')
|
this.$message.success('流程发起成功')
|
||||||
|
if (this.$route.query.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.$route.query.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res=>{
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
} else {
|
} else {
|
||||||
@@ -822,8 +857,24 @@
|
|||||||
this.roleForm.presidentIdName = data[0].name
|
this.roleForm.presidentIdName = data[0].name
|
||||||
}
|
}
|
||||||
}, // 选择人员确认事件
|
}, // 选择人员确认事件
|
||||||
|
getTaskId() {
|
||||||
|
queryTaskFirst({
|
||||||
|
bpnId: this.$route.query.bpnId
|
||||||
|
}).then(res => {
|
||||||
|
let mes = JSON.parse(res.mes)
|
||||||
|
this.rhform = JSON.parse(JSON.stringify(mes.form))
|
||||||
|
this.data1 = mes.data1
|
||||||
|
this.data2 = mes.data2
|
||||||
|
this.roleForm = mes.roleForm
|
||||||
|
this.commentText = mes.commentText
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {}
|
mounted() {
|
||||||
|
if(this.$route.query.bpnId){
|
||||||
|
this.getTaskId()
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div v-if="rhform.modelList.length > 0" class="fileClass" style="display: flex;">
|
<div v-if="rhform.modelList.length > 0" class="fileClass" style="display: flex;">
|
||||||
<div v-for="(item, index) in rhform.modelList" :key="index" @click="fileUpload" style="margin-right: 5px;">
|
<div v-for="(item, index) in rhform.modelList" :key="index" @click="handleFilePreview(item)" style="margin-right: 5px;cursor: pointer">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.data.length > 0" class="fileClass">
|
<div v-if="scope.row.data.length > 0" class="fileClass">
|
||||||
<div v-for="(item, index) in scope.row.data" :key="index" @click="fileUpload2(scope.$index)" style="margin-right: 5px;">
|
<div v-for="(item, index) in scope.row.data" :key="index" @click="handleFilePreview(item)" style="margin-right: 5px;cursor: pointer">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -381,7 +381,7 @@
|
|||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
import { saveTaskFirst } from "api/process";
|
import { saveTaskFirst,taskDel,queryTaskFirst } from "api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "zcrhStep1",
|
name: "zcrhStep1",
|
||||||
@@ -631,6 +631,24 @@
|
|||||||
})
|
})
|
||||||
this.data2[this.fileIndex].dataName = list
|
this.data2[this.fileIndex].dataName = list
|
||||||
},
|
},
|
||||||
|
// 文件预览及下载
|
||||||
|
handleFilePreview(file) {
|
||||||
|
let attId = ""
|
||||||
|
if(file && file.id){
|
||||||
|
attId = file.id
|
||||||
|
}else {
|
||||||
|
attId = file.response.data.id
|
||||||
|
}
|
||||||
|
if (this.preview) {
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$preview(attId)
|
||||||
|
}
|
||||||
|
},
|
||||||
fileUpload() {
|
fileUpload() {
|
||||||
this.fileMadel = true
|
this.fileMadel = true
|
||||||
},
|
},
|
||||||
@@ -727,8 +745,17 @@
|
|||||||
this.$refs['Form'].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.get('lawss/activiti/startProcess', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
type: '17'
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
|
type: '17',
|
||||||
|
json: JSON.stringify({
|
||||||
|
form: this.rhform,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText,
|
||||||
|
data1: this.data1,
|
||||||
|
data2: this.data2,
|
||||||
|
})
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
var json = Object.assign(this.rhform, this.roleForm)
|
var json = Object.assign(this.rhform, this.roleForm)
|
||||||
@@ -742,6 +769,14 @@
|
|||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('流程发起成功')
|
this.$message.success('流程发起成功')
|
||||||
|
if (this.$route.query.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.$route.query.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res=>{
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
} else {
|
} else {
|
||||||
@@ -801,8 +836,24 @@
|
|||||||
this.roleForm.presidentIdName = data[0].name
|
this.roleForm.presidentIdName = data[0].name
|
||||||
}
|
}
|
||||||
}, // 选择人员确认事件
|
}, // 选择人员确认事件
|
||||||
|
getTaskId() {
|
||||||
|
queryTaskFirst({
|
||||||
|
bpnId: this.$route.query.bpnId
|
||||||
|
}).then(res => {
|
||||||
|
let mes = JSON.parse(res.mes)
|
||||||
|
this.rhform = JSON.parse(JSON.stringify(mes.form))
|
||||||
|
this.data1 = mes.data1
|
||||||
|
this.data2 = mes.data2
|
||||||
|
this.roleForm = mes.roleForm
|
||||||
|
this.commentText = mes.commentText
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {}
|
mounted() {
|
||||||
|
if(this.$route.query.bpnId){
|
||||||
|
this.getTaskId()
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -79,21 +79,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="process-name">
|
<!-- <div class="process-name">-->
|
||||||
<el-card shadow="hover" v-btn-permission="'344c9c97b581400718451e8b8a319382'">
|
<!-- <el-card shadow="hover" v-btn-permission="'344c9c97b581400718451e8b8a319382'">-->
|
||||||
<div class="card-box" @click="handleCreateProcess('12')">
|
<!-- <div class="card-box" @click="handleCreateProcess('12')">-->
|
||||||
<div class="card-top">
|
<!-- <div class="card-top">-->
|
||||||
<div class="card-top-left">
|
<!-- <div class="card-top-left">-->
|
||||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
<!-- <img :src="getImg(Math.floor(Math.random() * 6))">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="card-top-right">
|
<!-- <div class="card-top-right">-->
|
||||||
<div class="card-top-right-text">政策征求意见流程</div>
|
<!-- <div class="card-top-right-text">政策征求意见流程</div>-->
|
||||||
<div class="card-top-right-line"></div>
|
<!-- <div class="card-top-right-line"></div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="process-name">
|
<div class="process-name">
|
||||||
<el-card shadow="hover" v-btn-permission="'90c7bae6308595f053c6f6f90167e493'">
|
<el-card shadow="hover" v-btn-permission="'90c7bae6308595f053c6f6f90167e493'">
|
||||||
<div class="card-box" @click="handleCreateProcess('7')">
|
<div class="card-box" @click="handleCreateProcess('7')">
|
||||||
@@ -124,21 +124,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="process-name">
|
<!-- <div class="process-name">-->
|
||||||
<el-card shadow="hover" v-btn-permission="'a5694521151720f41a8b22d550bf435a'">
|
<!-- <el-card shadow="hover" v-btn-permission="'a5694521151720f41a8b22d550bf435a'">-->
|
||||||
<div class="card-box" @click="handleCreateProcess('13')">
|
<!-- <div class="card-box" @click="handleCreateProcess('13')">-->
|
||||||
<div class="card-top">
|
<!-- <div class="card-top">-->
|
||||||
<div class="card-top-left">
|
<!-- <div class="card-top-left">-->
|
||||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
<!-- <img :src="getImg(Math.floor(Math.random() * 6))">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="card-top-right">
|
<!-- <div class="card-top-right">-->
|
||||||
<div class="card-top-right-text">重点认证标准/政策合规性项目审查流程</div>
|
<!-- <div class="card-top-right-text">重点认证标准/政策合规性项目审查流程</div>-->
|
||||||
<div class="card-top-right-line"></div>
|
<!-- <div class="card-top-right-line"></div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="process-name">
|
<div class="process-name">
|
||||||
<el-card shadow="hover" v-btn-permission="'14f54ef4475d9210b1ee7872ab69eca8'">
|
<el-card shadow="hover" v-btn-permission="'14f54ef4475d9210b1ee7872ab69eca8'">
|
||||||
<div class="card-box" @click="handleCreateProcess('11')">
|
<div class="card-box" @click="handleCreateProcess('11')">
|
||||||
@@ -154,21 +154,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="process-name">
|
<!-- <div class="process-name">-->
|
||||||
<el-card shadow="hover" v-btn-permission="'9c8cc1b74b1caa16f34a47895b489833'">
|
<!-- <el-card shadow="hover" v-btn-permission="'9c8cc1b74b1caa16f34a47895b489833'">-->
|
||||||
<div class="card-box" @click="handleCreateProcess('laws1')">
|
<!-- <div class="card-box" @click="handleCreateProcess('laws1')">-->
|
||||||
<div class="card-top">
|
<!-- <div class="card-top">-->
|
||||||
<div class="card-top-left">
|
<!-- <div class="card-top-left">-->
|
||||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
<!-- <img :src="getImg(Math.floor(Math.random() * 6))">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="card-top-right">
|
<!-- <div class="card-top-right">-->
|
||||||
<div class="card-top-right-text">政策入库流程</div>
|
<!-- <div class="card-top-right-text">政策入库流程</div>-->
|
||||||
<div class="card-top-right-line"></div>
|
<!-- <div class="card-top-right-line"></div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="process-name">
|
<div class="process-name">
|
||||||
<el-card shadow="hover" v-btn-permission="'a151f5e2ee44f8df81e201b8696fca31'">
|
<el-card shadow="hover" v-btn-permission="'a151f5e2ee44f8df81e201b8696fca31'">
|
||||||
<div class="card-box" @click="handleCreateProcess('8')">
|
<div class="card-box" @click="handleCreateProcess('8')">
|
||||||
@@ -285,36 +285,36 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-divider content-position="left"><h2>标准化活动相关流程</h2></el-divider>
|
<el-divider content-position="left"><h2>标准化活动相关流程</h2></el-divider>
|
||||||
<div class="process-box">
|
<div class="process-box">
|
||||||
<div class="process-name">
|
<!-- <div class="process-name">-->
|
||||||
<el-card shadow="hover" v-btn-permission="'b196ef0253cebd1adfc3a8432a28e377'">
|
<!-- <el-card shadow="hover" v-btn-permission="'b196ef0253cebd1adfc3a8432a28e377'">-->
|
||||||
<div class="card-box" @click="handleCreateProcess('17')">
|
<!-- <div class="card-box" @click="handleCreateProcess('17')">-->
|
||||||
<div class="card-top">
|
<!-- <div class="card-top">-->
|
||||||
<div class="card-top-left">
|
<!-- <div class="card-top-left">-->
|
||||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
<!-- <img :src="getImg(Math.floor(Math.random() * 6))">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="card-top-right">
|
<!-- <div class="card-top-right">-->
|
||||||
<div class="card-top-right-text">政策课题入会流程</div>
|
<!-- <div class="card-top-right-text">政策课题入会流程</div>-->
|
||||||
<div class="card-top-right-line"></div>
|
<!-- <div class="card-top-right-line"></div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="process-name">
|
<!-- <div class="process-name">-->
|
||||||
<el-card shadow="hover" v-btn-permission="'2f2752bc8a37b87d6eaadae3fcfe61c4'">
|
<!-- <el-card shadow="hover" v-btn-permission="'2f2752bc8a37b87d6eaadae3fcfe61c4'">-->
|
||||||
<div class="card-box" @click="handleCreateProcess('18')">
|
<!-- <div class="card-box" @click="handleCreateProcess('18')">-->
|
||||||
<div class="card-top">
|
<!-- <div class="card-top">-->
|
||||||
<div class="card-top-left">
|
<!-- <div class="card-top-left">-->
|
||||||
<img :src="getImg(Math.floor(Math.random() * 6))">
|
<!-- <img :src="getImg(Math.floor(Math.random() * 6))">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="card-top-right">
|
<!-- <div class="card-top-right">-->
|
||||||
<div class="card-top-right-text">政策课题参会流程</div>
|
<!-- <div class="card-top-right-text">政策课题参会流程</div>-->
|
||||||
<div class="card-top-right-line"></div>
|
<!-- <div class="card-top-right-line"></div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="process-name">
|
<div class="process-name">
|
||||||
<el-card shadow="hover" v-btn-permission="'7845345e5fa2b0a93eb0e021bd3486f1'">
|
<el-card shadow="hover" v-btn-permission="'7845345e5fa2b0a93eb0e021bd3486f1'">
|
||||||
<div class="card-box" @click="handleCreateProcess('20')">
|
<div class="card-box" @click="handleCreateProcess('20')">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<ProcessHeaderPhone toggle>
|
<ProcessHeaderPhone toggle>
|
||||||
<template slot="proName">标准调研流程</template>
|
<template slot="proName">标准调研流程</template>
|
||||||
<template slot="proNode">批准</template>
|
<template slot="proNode">批准</template>
|
||||||
</ProcessHeaderPhone>
|
</ProcessHeaderPhone>
|
||||||
<div class="headerTabs">
|
<div class="headerTabs">
|
||||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
||||||
@@ -85,6 +85,11 @@
|
|||||||
label="责任人"
|
label="责任人"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="institutionName"
|
||||||
|
label="责任部门"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="文件"
|
label="文件"
|
||||||
align="center">
|
align="center">
|
||||||
|
|||||||
@@ -283,12 +283,12 @@
|
|||||||
<van-field label="模块结构单元变型号(乘用车)" v-model="form.dybxhcar" readonly placeholder="请输入模块结构单元变型号"/>
|
<van-field label="模块结构单元变型号(乘用车)" v-model="form.dybxhcar" readonly placeholder="请输入模块结构单元变型号"/>
|
||||||
<van-field label="模块结构单元名称(乘用车)" v-model="form.dymccar" readonly placeholder="请输入模块结构单元名称" />
|
<van-field label="模块结构单元名称(乘用车)" v-model="form.dymccar" readonly placeholder="请输入模块结构单元名称" />
|
||||||
<el-form-item v-if="form.standInData === '0'" label="归口管理部门" prop="gkdw" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '0'" label="归口管理部门" prop="gkdw" class="add-form-item form-item-disabled">
|
||||||
<el-select :popper-append-to-body="false" v-model="form.gkdw" placeholder="请选择归口管理部门" disabled>
|
<el-select :popper-append-to-body="false" v-model="form.gkdw" placeholder="" disabled>
|
||||||
<el-option v-for="item in gkglbmOptions" :value="item.value" :key="item.value" :label="item.label"></el-option>
|
<el-option v-for="item in gkglbmOptions" :value="item.value" :key="item.value" :label="item.label"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="form.standInData === '0'" label="起草单位" prop="qcdw" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '0'" label="起草单位" prop="qcdw" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="form.qcdw" placeholder="请选择起草单位" multiple disabled>
|
<el-select v-model="form.qcdw" placeholder="" multiple disabled>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in qcdwOptions"
|
v-for="item in qcdwOptions"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -310,7 +310,7 @@
|
|||||||
<!-- </el-select>-->
|
<!-- </el-select>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<el-form-item style="display: none" label="适用认证" prop="syrz" class="add-form-item form-item-disabled">
|
<el-form-item style="display: none" label="适用认证" prop="syrz" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="form.syrz" placeholder="请选择适用认证" multiple disabled>
|
<el-select v-model="form.syrz" placeholder="" multiple disabled>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in applyAuthOptions"
|
v-for="item in applyAuthOptions"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
</el-form-item>-->
|
</el-form-item>-->
|
||||||
<van-field v-if="form.standInData === '0'" label="我司署名人" v-model="form.wssmr" readonly placeholder="请选择我司署名人"/>
|
<van-field v-if="form.standInData === '0'" label="我司署名人" v-model="form.wssmr" readonly placeholder="请选择我司署名人"/>
|
||||||
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled>
|
<el-select v-model="form.cysd" placeholder="" disabled>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cysdOptions"
|
v-for="item in cysdOptions"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-show="form.standInData === '0'" label="我司参与制标排名" prop="cyzbpm" class="add-form-item form-item-disabled">
|
<el-form-item v-show="form.standInData === '0'" label="我司参与制标排名" prop="cyzbpm" class="add-form-item form-item-disabled">
|
||||||
<el-select :popper-append-to-body="false" disabled v-model="form.cyzbpm" placeholder="请选择我司参与制标排名" clearable>
|
<el-select :popper-append-to-body="false" disabled v-model="form.cyzbpm" placeholder="" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cyzbpmOptions"
|
v-for="item in cyzbpmOptions"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -364,7 +364,7 @@
|
|||||||
<div class="wrap">{{form.dtbjh}}</div>
|
<div class="wrap">{{form.dtbjh}}</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="form.standInData === '0'" label="采标程度" prop="cbcd" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '0'" label="采标程度" prop="cbcd" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="form.cbcd" placeholder="请选择采标程度" disabled>
|
<el-select v-model="form.cbcd" placeholder="" disabled>
|
||||||
<el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
<el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -188,7 +188,6 @@
|
|||||||
<div v-html="itermsConditionsTitle"></div>
|
<div v-html="itermsConditionsTitle"></div>
|
||||||
</van-dialog>
|
</van-dialog>
|
||||||
<phone-role
|
<phone-role
|
||||||
check-more
|
|
||||||
role-title="选择审批领导"
|
role-title="选择审批领导"
|
||||||
:is-show-phone.sync="modalshowflag"
|
:is-show-phone.sync="modalshowflag"
|
||||||
@checkedRole="checkedRole2"
|
@checkedRole="checkedRole2"
|
||||||
|
|||||||
@@ -247,6 +247,25 @@
|
|||||||
label-width="130px"
|
label-width="130px"
|
||||||
v-if="showInfoModal"
|
v-if="showInfoModal"
|
||||||
>
|
>
|
||||||
|
<el-form-item label="所属目录" prop="treeId" class="add-form-item">
|
||||||
|
<el-select ref="treeSelect" class="tree-select" v-model="attributeEO.treeId" value-key="id" placeholder="请选择所属目录">
|
||||||
|
<el-option class="tree-select-option" :value="attributeEO.treeId" :label="attributeEO.treeName">
|
||||||
|
<el-tree
|
||||||
|
ref="tree"
|
||||||
|
node-key="id"
|
||||||
|
class="tree-line"
|
||||||
|
icon-class="icon-tree"
|
||||||
|
:indent="0"
|
||||||
|
:props="props"
|
||||||
|
:data="treeList"
|
||||||
|
:default-expanded-keys="['1']"
|
||||||
|
highlight-current
|
||||||
|
@node-click="selectTreeClick"
|
||||||
|
:filter-node-method="filterNode">
|
||||||
|
</el-tree>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="类型"
|
label="类型"
|
||||||
prop="dataType"
|
prop="dataType"
|
||||||
@@ -363,8 +382,13 @@ export default {
|
|||||||
dataTitle: '',
|
dataTitle: '',
|
||||||
dataExplain: '',
|
dataExplain: '',
|
||||||
attachFileId: '',
|
attachFileId: '',
|
||||||
|
treeId: '',
|
||||||
|
treeName: ''
|
||||||
},
|
},
|
||||||
attributeEOFormRules: {
|
attributeEOFormRules: {
|
||||||
|
treeId: [
|
||||||
|
{required: true, message: '所属目录不能为空', trigger: 'change'},
|
||||||
|
],
|
||||||
dataType: [
|
dataType: [
|
||||||
{required: true, message: '类型不能为空', trigger: 'change'},
|
{required: true, message: '类型不能为空', trigger: 'change'},
|
||||||
],
|
],
|
||||||
@@ -461,9 +485,16 @@ export default {
|
|||||||
},
|
},
|
||||||
treeClick(treeNode) {
|
treeClick(treeNode) {
|
||||||
this.selectSarMenu = treeNode
|
this.selectSarMenu = treeNode
|
||||||
this.dataCenterSearch.treeId = treeNode.id
|
this.dataCenterSearch.treeId = treeNode.id === '1' ? '' : treeNode.id
|
||||||
|
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
|
||||||
|
this.attributeEO.treeName = treeNode.name
|
||||||
this.searchInfo()
|
this.searchInfo()
|
||||||
},
|
},
|
||||||
|
selectTreeClick(treeNode) {
|
||||||
|
this.dataCenterSearch.treeId = treeNode.id === '1' ? '' : treeNode.id
|
||||||
|
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
|
||||||
|
this.attributeEO.treeName = treeNode.name
|
||||||
|
},
|
||||||
// 树节点鼠标移入移出
|
// 树节点鼠标移入移出
|
||||||
mouseenter(data) {
|
mouseenter(data) {
|
||||||
if (data.name !== '我的收藏') {
|
if (data.name !== '我的收藏') {
|
||||||
@@ -706,6 +737,8 @@ export default {
|
|||||||
dataType: '',
|
dataType: '',
|
||||||
dataTitle: '',
|
dataTitle: '',
|
||||||
attachFileId: '',
|
attachFileId: '',
|
||||||
|
treeId: this.selectSarMenu ? this.selectSarMenu.id : this.treeList[0].id,
|
||||||
|
treeName: this.selectSarMenu ? this.selectSarMenu.name : this.treeList[0].name
|
||||||
}
|
}
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
},
|
},
|
||||||
@@ -742,7 +775,7 @@ export default {
|
|||||||
saveInfo() {
|
saveInfo() {
|
||||||
this.submitLoading = true
|
this.submitLoading = true
|
||||||
this.$refs['attributeEO'].validate((valid) => {
|
this.$refs['attributeEO'].validate((valid) => {
|
||||||
if (valid && this.attributeEO.attachFileId !== '') {
|
if (valid) {
|
||||||
if (this.attributeTitle === '新增'){
|
if (this.attributeTitle === '新增'){
|
||||||
this.$http.postData(
|
this.$http.postData(
|
||||||
'fileMaterialCenter/file-material',
|
'fileMaterialCenter/file-material',
|
||||||
@@ -776,9 +809,7 @@ export default {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
} else {
|
|
||||||
this.$message.error('附件不能为空')
|
|
||||||
this.submitLoading = false
|
this.submitLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -791,6 +822,8 @@ export default {
|
|||||||
dataType: '',
|
dataType: '',
|
||||||
dataTitle: '',
|
dataTitle: '',
|
||||||
attachFileId: '',
|
attachFileId: '',
|
||||||
|
treeId: '',
|
||||||
|
treeName: ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.showInfoModal = false
|
this.showInfoModal = false
|
||||||
@@ -1006,4 +1039,20 @@ export default {
|
|||||||
background: url('~@/assets/images/shangqi/img/tree.png');
|
background: url('~@/assets/images/shangqi/img/tree.png');
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
.upload-demo{
|
||||||
|
/deep/.el-upload-list{
|
||||||
|
height: 60vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tree-select{
|
||||||
|
.el-select-dropdown__item{
|
||||||
|
height: auto;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tree-select-option{
|
||||||
|
height: auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1122,7 +1122,8 @@
|
|||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
@sort-change="sortChangeConfig"
|
@sort-change="sortChangeConfig"
|
||||||
@selection-change="selectConfigStandChange">
|
@select="handleSelectConfigStand"
|
||||||
|
@select-all="selectConfigStandAll">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
align="center">
|
align="center">
|
||||||
@@ -1185,6 +1186,36 @@
|
|||||||
:total="configTotal"
|
:total="configTotal"
|
||||||
@pageChange="configuraPageChange"
|
@pageChange="configuraPageChange"
|
||||||
@pageSizeChange="configuraPageSizeChange"></pagination>
|
@pageSizeChange="configuraPageSizeChange"></pagination>
|
||||||
|
<div class="divDel">
|
||||||
|
<div class="divDel_title">已选标准</div>
|
||||||
|
<div class="divDel_box">
|
||||||
|
<el-tag
|
||||||
|
v-for="tag in selectConfigStandList"
|
||||||
|
:key="tag.id"
|
||||||
|
size="mini"
|
||||||
|
@close="handleTagClose(tag)"
|
||||||
|
closable>
|
||||||
|
<a v-if="tag.standYear && textStatusMap[tag.textStatus] === '废止' || textStatusMap[tag.textStatus] === '被代替'"
|
||||||
|
class="table-jump" style="color: #F56C6C"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else-if="tag.standYear && textStatusMap[tag.textStatus] === '参考' "
|
||||||
|
class="table-jump" style="color: #98E165"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else-if="tag.standYear" class="table-jump" style="color: #333333"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(tag)" class="table-jump" style="color: #333333">
|
||||||
|
{{ tag.standSortShow }}
|
||||||
|
{{ tag.standNumber }}</a>
|
||||||
|
</el-tag>
|
||||||
|
<!-- <el-tag v-show="delList.length > 0 && !checkBox" type="danger" closable size="mini" @close="handleCloseAll()">全部删除</el-tag>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -2925,6 +2956,8 @@ export default {
|
|||||||
configStandList: [],
|
configStandList: [],
|
||||||
configStandtotal: 0,
|
configStandtotal: 0,
|
||||||
selectConfigStand: [],
|
selectConfigStand: [],
|
||||||
|
selectConfigStandList: [],
|
||||||
|
selectConfigStandMap: new Map(),
|
||||||
collectBtn: false,
|
collectBtn: false,
|
||||||
formFieldList: [],
|
formFieldList: [],
|
||||||
reloadAddForm: false,
|
reloadAddForm: false,
|
||||||
@@ -4719,6 +4752,13 @@ export default {
|
|||||||
this.configStandList = res.data.list
|
this.configStandList = res.data.list
|
||||||
this.configTotal = res.data.count
|
this.configTotal = res.data.count
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.configStandList.forEach(item=>{
|
||||||
|
if(this.selectConfigStandMap.get(item.id)){
|
||||||
|
this.$refs.selection.toggleRowSelection(item,true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -5265,6 +5305,8 @@ export default {
|
|||||||
cancelConfigStand() {
|
cancelConfigStand() {
|
||||||
this.configStandFlag = false
|
this.configStandFlag = false
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap = new Map()
|
||||||
},
|
},
|
||||||
// 表对应标准移除分类到
|
// 表对应标准移除分类到
|
||||||
deleteStandFromKind(flag, item) {
|
deleteStandFromKind(flag, item) {
|
||||||
@@ -5348,10 +5390,47 @@ export default {
|
|||||||
this.sarConfigStandSearch.page = 1
|
this.sarConfigStandSearch.page = 1
|
||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
},
|
},
|
||||||
selectConfigStandChange(alldata) {
|
// 已选标准-删除
|
||||||
this.selectConfigStand = []
|
handleTagClose(row){
|
||||||
for (let i = 0; i < alldata.length; i++) {
|
this.handleSelectConfigStand({},row)
|
||||||
this.selectConfigStand.push(alldata[i].id)
|
this.$refs.selection.toggleRowSelection(row,false)
|
||||||
|
},
|
||||||
|
// 配置标准弹窗-表格-单选
|
||||||
|
handleSelectConfigStand(selection, row){
|
||||||
|
if(this.selectConfigStandMap.get(row.id)){
|
||||||
|
this.selectConfigStandMap.delete(row.id)
|
||||||
|
for(let i=0; i<this.selectConfigStandList.length; i++){
|
||||||
|
if(this.selectConfigStandList[i].id === row.id){
|
||||||
|
this.selectConfigStandList.splice(i,1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandMap.set(row.id,row)
|
||||||
|
this.selectConfigStandList.push(row)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 配置标准弹窗-表格-全选
|
||||||
|
selectConfigStandAll(selection) {
|
||||||
|
if(selection.length !== 0 ){
|
||||||
|
for (let i = 0; i < selection.length; i++) {
|
||||||
|
if(!this.selectConfigStandMap.get(selection[i].id)){
|
||||||
|
this.selectConfigStandList.push(selection[i])
|
||||||
|
this.selectConfigStandMap.set(selection[i].id, selection[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
for(let i=0; i<this.configStandList.length; i++){
|
||||||
|
this.selectConfigStandMap.delete(this.configStandList[i].id)
|
||||||
|
}
|
||||||
|
if(this.selectConfigStandMap.size === 0){
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap.forEach(item=>{
|
||||||
|
this.selectConfigStandList.push(item)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 配置标准-表格排序
|
// 配置标准-表格排序
|
||||||
@@ -5409,14 +5488,17 @@ export default {
|
|||||||
saveConfigStand() {
|
saveConfigStand() {
|
||||||
let search = {}
|
let search = {}
|
||||||
search.menuId = this.selectSarMenu.id
|
search.menuId = this.selectSarMenu.id
|
||||||
if (this.selectConfigStand.length === 0) {
|
if (this.selectConfigStandList.length === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '请至少选择一条标准',
|
message: '请至少选择一条标准',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
search.idlist = this.selectConfigStand
|
search.idlist = []
|
||||||
|
for (let i = 0; i < this.selectConfigStandList.length; i++) {
|
||||||
|
search.idlist.push(this.selectConfigStandList[i].id)
|
||||||
|
}
|
||||||
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, {
|
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'isSubmit'
|
loading: 'isSubmit'
|
||||||
@@ -6324,7 +6406,7 @@ export default {
|
|||||||
.el-drawer__wrapper {
|
.el-drawer__wrapper {
|
||||||
.demo-drawer-content {
|
.demo-drawer-content {
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
height: calc(~'100% - 52px - 56px');
|
height: calc(~'100% - 52px - 56px - 100px');
|
||||||
flex: auto;
|
flex: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -6358,4 +6440,24 @@ export default {
|
|||||||
.classDisplay {
|
.classDisplay {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divDel {
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
height: 100px;
|
||||||
|
.divDel_title {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.divDel_box {
|
||||||
|
height: 55px;
|
||||||
|
padding: 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
span {
|
||||||
|
margin: 0px 5px 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+95
-9
@@ -965,7 +965,8 @@
|
|||||||
border
|
border
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
@sort-change="sortChangeConfig"
|
@sort-change="sortChangeConfig"
|
||||||
@selection-change="selectConfigStandChange">
|
@select="handleSelectConfigStand"
|
||||||
|
@select-all="selectConfigStandAll">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
@@ -1018,6 +1019,20 @@
|
|||||||
@pageChange="configuraPageChange"
|
@pageChange="configuraPageChange"
|
||||||
@pageSizeChange="configuraPageSizeChange"></pagination>
|
@pageSizeChange="configuraPageSizeChange"></pagination>
|
||||||
<loading :loading="configLoading">加载中...</loading>
|
<loading :loading="configLoading">加载中...</loading>
|
||||||
|
<div class="divDel">
|
||||||
|
<div class="divDel_title">已选标准</div>
|
||||||
|
<div class="divDel_box">
|
||||||
|
<el-tag
|
||||||
|
v-for="tag in selectConfigStandList"
|
||||||
|
:key="tag.id"
|
||||||
|
size="mini"
|
||||||
|
@close="handleTagClose(tag)"
|
||||||
|
closable>
|
||||||
|
{{tag.standCode}}
|
||||||
|
</el-tag>
|
||||||
|
<!-- <el-tag v-show="delList.length > 0 && !checkBox" type="danger" closable size="mini" @close="handleCloseAll()">全部删除</el-tag>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -2320,6 +2335,8 @@ export default {
|
|||||||
configStandtotal: 0,
|
configStandtotal: 0,
|
||||||
height: null,
|
height: null,
|
||||||
selectConfigStand: [],
|
selectConfigStand: [],
|
||||||
|
selectConfigStandList: [],
|
||||||
|
selectConfigStandMap: new Map(),
|
||||||
configLoading: false, // 配置表格加载中
|
configLoading: false, // 配置表格加载中
|
||||||
searchConfigNodes: [], // 责任部门树结构
|
searchConfigNodes: [], // 责任部门树结构
|
||||||
zNodesSItem: [],
|
zNodesSItem: [],
|
||||||
@@ -3374,6 +3391,8 @@ export default {
|
|||||||
this.sarConfigStandSearch.replaceStandNum = ''
|
this.sarConfigStandSearch.replaceStandNum = ''
|
||||||
this.configPage = 1
|
this.configPage = 1
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap = new Map()
|
||||||
},
|
},
|
||||||
async saveConfStand(item) {
|
async saveConfStand(item) {
|
||||||
if(item.menuId && item.menuId !== ''){
|
if(item.menuId && item.menuId !== ''){
|
||||||
@@ -3401,14 +3420,17 @@ export default {
|
|||||||
search.menuId = this.selectSarMenu.id
|
search.menuId = this.selectSarMenu.id
|
||||||
search.menuName = this.selectSarMenu.menuName
|
search.menuName = this.selectSarMenu.menuName
|
||||||
search.treeType = this.selectSarMenu.treeType
|
search.treeType = this.selectSarMenu.treeType
|
||||||
if (this.selectConfigStand.length === 0) {
|
if (this.selectConfigStandList.length === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '请至少选择一条标准',
|
message: '请至少选择一条标准',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
search.idlist = this.selectConfigStand
|
search.idlist = []
|
||||||
|
for (let i = 0; i < this.selectConfigStandList.length; i++) {
|
||||||
|
search.idlist.push(this.selectConfigStandList[i].id)
|
||||||
|
}
|
||||||
this.$http.postData('lawss/sarBussionessStand/saveStandardsMenu', search, {
|
this.$http.postData('lawss/sarBussionessStand/saveStandardsMenu', search, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'isSubmit'
|
loading: 'isSubmit'
|
||||||
@@ -3459,13 +3481,50 @@ export default {
|
|||||||
}
|
}
|
||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
},
|
},
|
||||||
// 表格
|
// 已选标准-删除
|
||||||
selectConfigStandChange(alldata) {
|
handleTagClose(row){
|
||||||
this.selectConfigStand = []
|
this.handleSelectConfigStand({},row)
|
||||||
for (let i = 0; i < alldata.length; i++) {
|
this.$refs.selection.toggleRowSelection(row,false)
|
||||||
this.selectConfigStand.push(alldata[i].id)
|
},
|
||||||
|
// 配置标准弹窗-表格-单选
|
||||||
|
handleSelectConfigStand(selection, row){
|
||||||
|
if(this.selectConfigStandMap.get(row.id)){
|
||||||
|
this.selectConfigStandMap.delete(row.id)
|
||||||
|
for(let i=0; i<this.selectConfigStandList.length; i++){
|
||||||
|
if(this.selectConfigStandList[i].id === row.id){
|
||||||
|
this.selectConfigStandList.splice(i,1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandMap.set(row.id,row)
|
||||||
|
this.selectConfigStandList.push(row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 配置标准弹窗-表格-全选
|
||||||
|
selectConfigStandAll(selection) {
|
||||||
|
if(selection.length !== 0 ){
|
||||||
|
for (let i = 0; i < selection.length; i++) {
|
||||||
|
if(!this.selectConfigStandMap.get(selection[i].id)){
|
||||||
|
this.selectConfigStandList.push(selection[i])
|
||||||
|
this.selectConfigStandMap.set(selection[i].id, selection[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
for(let i=0; i<this.configStandList.length; i++){
|
||||||
|
this.selectConfigStandMap.delete(this.configStandList[i].id)
|
||||||
|
}
|
||||||
|
if(this.selectConfigStandMap.size === 0){
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap.forEach(item=>{
|
||||||
|
this.selectConfigStandList.push(item)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
SearchTreeConfigDblClick(treeId, treeNode) {
|
SearchTreeConfigDblClick(treeId, treeNode) {
|
||||||
this.sarConfigStandSearch.responsibleUnit = treeNode.id
|
this.sarConfigStandSearch.responsibleUnit = treeNode.id
|
||||||
this.sarConfigStandSearch.orgName = treeNode.name
|
this.sarConfigStandSearch.orgName = treeNode.name
|
||||||
@@ -4555,6 +4614,13 @@ export default {
|
|||||||
this.configStandList = res.data.list
|
this.configStandList = res.data.list
|
||||||
this.configTotal = res.data.count
|
this.configTotal = res.data.count
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.configStandList.forEach(item=>{
|
||||||
|
if(this.selectConfigStandMap.get(item.id)){
|
||||||
|
this.$refs.selection.toggleRowSelection(item,true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -5578,7 +5644,7 @@ export default {
|
|||||||
.el-drawer__wrapper {
|
.el-drawer__wrapper {
|
||||||
.demo-drawer-content {
|
.demo-drawer-content {
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
//height: calc(~'100% - 52px - 56px');
|
height: calc(~'100% - 52px - 56px - 100px');
|
||||||
flex: auto;
|
flex: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -5607,4 +5673,24 @@ export default {
|
|||||||
::v-deep .el-drawer {
|
::v-deep .el-drawer {
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divDel {
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
height: 100px;
|
||||||
|
.divDel_title {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.divDel_box {
|
||||||
|
height: 55px;
|
||||||
|
padding: 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
span {
|
||||||
|
margin: 0px 5px 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -832,7 +832,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
watch: {},
|
watch: {
|
||||||
|
'addForm.esMatingRelations': {
|
||||||
|
handler: function(val) {
|
||||||
|
if(val && val !== ''){
|
||||||
|
if(val.indexOf(",") !== -1){
|
||||||
|
const list = val.split(",")
|
||||||
|
const filterList = list.filter(s => s !== 'null');
|
||||||
|
this.addForm.esMatingRelations = filterList.join(",");
|
||||||
|
}else if(val === 'null'){
|
||||||
|
this.addForm.esMatingRelations = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
workChange (data) {
|
workChange (data) {
|
||||||
this.workGroupList = data
|
this.workGroupList = data
|
||||||
|
|||||||
@@ -1499,7 +1499,8 @@
|
|||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
height="100%"
|
height="100%"
|
||||||
@selection-change="selectConfigStandChange">
|
@select="handleSelectConfigStand"
|
||||||
|
@select-all="selectConfigStandAll">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
@@ -1556,6 +1557,36 @@
|
|||||||
:total="configTotal"
|
:total="configTotal"
|
||||||
@pageChange="configuraPageChange"
|
@pageChange="configuraPageChange"
|
||||||
@pageSizeChange="configuraPageSizeChange"></pagination>
|
@pageSizeChange="configuraPageSizeChange"></pagination>
|
||||||
|
<div class="divDel">
|
||||||
|
<div class="divDel_title">已选标准</div>
|
||||||
|
<div class="divDel_box">
|
||||||
|
<el-tag
|
||||||
|
v-for="tag in selectConfigStandList"
|
||||||
|
:key="tag.id"
|
||||||
|
size="mini"
|
||||||
|
@close="handleTagClose(tag)"
|
||||||
|
closable>
|
||||||
|
<a v-if="tag.standYear && textStatusMap[tag.textStatus] === '废止' || textStatusMap[tag.textStatus] === '被代替'"
|
||||||
|
class="table-jump" style="color: #F56C6C"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else-if="tag.standYear && textStatusMap[tag.textStatus] === '参考' "
|
||||||
|
class="table-jump" style="color: #98E165"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else-if="tag.standYear" class="table-jump" style="color: #333333"
|
||||||
|
@click="handlePreview(tag)">{{ tag.standSortShow }} {{
|
||||||
|
tag.standNumber
|
||||||
|
}}-{{ tag.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(tag)" class="table-jump" style="color: #333333">
|
||||||
|
{{ tag.standSortShow }}
|
||||||
|
{{ tag.standNumber }}</a>
|
||||||
|
</el-tag>
|
||||||
|
<!-- <el-tag v-show="delList.length > 0 && !checkBox" type="danger" closable size="mini" @close="handleCloseAll()">全部删除</el-tag>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" :loading="isSubmit" @click="saveConfigStand">
|
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" :loading="isSubmit" @click="saveConfigStand">
|
||||||
@@ -2521,6 +2552,8 @@ export default {
|
|||||||
configStandList: [],
|
configStandList: [],
|
||||||
configStandtotal: 0,
|
configStandtotal: 0,
|
||||||
selectConfigStand: [],
|
selectConfigStand: [],
|
||||||
|
selectConfigStandList: [],
|
||||||
|
selectConfigStandMap: new Map(),
|
||||||
collectBtn: false,
|
collectBtn: false,
|
||||||
formFieldList: [],
|
formFieldList: [],
|
||||||
reloadAddForm: false,
|
reloadAddForm: false,
|
||||||
@@ -4108,6 +4141,13 @@ export default {
|
|||||||
this.configStandList = res.data.list
|
this.configStandList = res.data.list
|
||||||
this.configTotal = res.data.count
|
this.configTotal = res.data.count
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.configStandList.forEach(item=>{
|
||||||
|
if(this.selectConfigStandMap.get(item.id)){
|
||||||
|
this.$refs.selection.toggleRowSelection(item,true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -4597,6 +4637,8 @@ export default {
|
|||||||
cancelConfigStand() {
|
cancelConfigStand() {
|
||||||
this.configStandFlag = false
|
this.configStandFlag = false
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = []
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap = new Map()
|
||||||
},
|
},
|
||||||
OCRAdd(type) {
|
OCRAdd(type) {
|
||||||
let text = ''
|
let text = ''
|
||||||
@@ -4722,24 +4764,64 @@ export default {
|
|||||||
this.sarConfigStandSearch.page = 1
|
this.sarConfigStandSearch.page = 1
|
||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
},
|
},
|
||||||
selectConfigStandChange(alldata) {
|
// 已选标准-删除
|
||||||
this.selectConfigStand = []
|
handleTagClose(row){
|
||||||
for (let i = 0; i < alldata.length; i++) {
|
this.handleSelectConfigStand({},row)
|
||||||
this.selectConfigStand.push(alldata[i].id)
|
this.$refs.selection.toggleRowSelection(row,false)
|
||||||
|
},
|
||||||
|
// 配置标准弹窗-表格-单选
|
||||||
|
handleSelectConfigStand(selection, row){
|
||||||
|
if(this.selectConfigStandMap.get(row.id)){
|
||||||
|
this.selectConfigStandMap.delete(row.id)
|
||||||
|
for(let i=0; i<this.selectConfigStandList.length; i++){
|
||||||
|
if(this.selectConfigStandList[i].id === row.id){
|
||||||
|
this.selectConfigStandList.splice(i,1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandMap.set(row.id,row)
|
||||||
|
this.selectConfigStandList.push(row)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 配置标准弹窗-表格-全选
|
||||||
|
selectConfigStandAll(selection) {
|
||||||
|
if(selection.length !== 0 ){
|
||||||
|
for (let i = 0; i < selection.length; i++) {
|
||||||
|
if(!this.selectConfigStandMap.get(selection[i].id)){
|
||||||
|
this.selectConfigStandList.push(selection[i])
|
||||||
|
this.selectConfigStandMap.set(selection[i].id, selection[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
for(let i=0; i<this.configStandList.length; i++){
|
||||||
|
this.selectConfigStandMap.delete(this.configStandList[i].id)
|
||||||
|
}
|
||||||
|
if(this.selectConfigStandMap.size === 0){
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
}else{
|
||||||
|
this.selectConfigStandList = []
|
||||||
|
this.selectConfigStandMap.forEach(item=>{
|
||||||
|
this.selectConfigStandList.push(item)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 提交配置搜索项
|
// 提交配置搜索项
|
||||||
saveConfigStand() {
|
saveConfigStand() {
|
||||||
let search = {}
|
let search = {}
|
||||||
search.menuId = this.selectSarMenu.id
|
search.menuId = this.selectSarMenu.id
|
||||||
if (this.selectConfigStand.length === 0) {
|
if (this.selectConfigStandList.length === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '请至少选择一条标准',
|
message: '请至少选择一条标准',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
search.idlist = this.selectConfigStand
|
search.idlist = []
|
||||||
|
for (let i = 0; i < this.selectConfigStandList.length; i++) {
|
||||||
|
search.idlist.push(this.selectConfigStandList[i].id)
|
||||||
|
}
|
||||||
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, {
|
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'isSubmit'
|
loading: 'isSubmit'
|
||||||
@@ -5634,7 +5716,7 @@ export default {
|
|||||||
.el-drawer__wrapper {
|
.el-drawer__wrapper {
|
||||||
.demo-drawer-content {
|
.demo-drawer-content {
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
//height: calc(~'100% - 52px - 56px');
|
height: calc(~'100% - 52px - 56px - 100px');
|
||||||
flex: auto;
|
flex: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -5765,4 +5847,24 @@ export default {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divDel {
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
height: 100px;
|
||||||
|
.divDel_title {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.divDel_box {
|
||||||
|
height: 55px;
|
||||||
|
padding: 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
span {
|
||||||
|
margin: 0px 5px 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -68,12 +68,11 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<!--分页-->
|
<!--分页-->
|
||||||
<pagination
|
<pagination
|
||||||
v-show="this.tableLoading === false"
|
|
||||||
style="position: relative;"
|
style="position: relative;"
|
||||||
:page="questionSerach.page"
|
:page="questionSerach.page"
|
||||||
:total="tableTotal"
|
:total="questionSerach.total"
|
||||||
@pageChange="handleSelectPageChange"
|
@pageChange="pageChangeFun"
|
||||||
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
@pageSizeChange="pageSizeChangeFun"></pagination>
|
||||||
</div>
|
</div>
|
||||||
<!--提问弹窗 -->
|
<!--提问弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -632,6 +631,7 @@ export default {
|
|||||||
problemDescription: '', //关键词/问题描述
|
problemDescription: '', //关键词/问题描述
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0
|
||||||
},
|
},
|
||||||
answerList: [],
|
answerList: [],
|
||||||
answerListDrawer: false,
|
answerListDrawer: false,
|
||||||
@@ -900,26 +900,6 @@ export default {
|
|||||||
standTypeChange(){
|
standTypeChange(){
|
||||||
this.questionForm.classification = this.standType
|
this.questionForm.classification = this.standType
|
||||||
},
|
},
|
||||||
handleClick(){
|
|
||||||
this.ansSearch()
|
|
||||||
},
|
|
||||||
sourceClick(){
|
|
||||||
this.questionSerach.classification = this.activeName
|
|
||||||
this.questionSerach.standardEncdoing = ''
|
|
||||||
this.standSearch()
|
|
||||||
},
|
|
||||||
questionClick(){
|
|
||||||
sessionStorage.setItem('queId', this.activeQue)
|
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{
|
|
||||||
id: this.activeQue,
|
|
||||||
state: 'yes'
|
|
||||||
},{
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.answerList = res.data
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//提问按钮
|
//提问按钮
|
||||||
queBtn(){
|
queBtn(){
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
@@ -963,9 +943,18 @@ export default {
|
|||||||
problemDescription: '', //关键词/问题描述
|
problemDescription: '', //关键词/问题描述
|
||||||
page:1,
|
page:1,
|
||||||
pageSize:this.$store.getters.userInfo.configContent,
|
pageSize:this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0
|
||||||
}
|
}
|
||||||
this.searchBtn()
|
this.searchBtn()
|
||||||
},
|
},
|
||||||
|
pageChangeFun(page) {
|
||||||
|
this.questionSerach.page = page
|
||||||
|
this.searchBtn()
|
||||||
|
},
|
||||||
|
pageSizeChangeFun(pageSize) {
|
||||||
|
this.questionSerach.pageSize = pageSize
|
||||||
|
this.searchBtn()
|
||||||
|
},
|
||||||
searchBtn(){
|
searchBtn(){
|
||||||
this.questionSerach.questioner = ''
|
this.questionSerach.questioner = ''
|
||||||
this.tableLoading = true
|
this.tableLoading = true
|
||||||
@@ -975,44 +964,10 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.tableTotal = res.total
|
this.questionSerach.total = res.data.total
|
||||||
this.tableLoading = false
|
this.tableLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//问题查询
|
|
||||||
queSearch(){
|
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsNew',{
|
|
||||||
standardId: this.activestand,
|
|
||||||
classification: this.activeName,
|
|
||||||
problemDescription: this.questionSerach.problemDescription
|
|
||||||
},{
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.questionsList = res.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//查询提问标准
|
|
||||||
standSearch2(){
|
|
||||||
let qId = this.$route.query.standId
|
|
||||||
let queNumber = 0
|
|
||||||
this.standList = []
|
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{
|
|
||||||
_this: this
|
|
||||||
}, res =>{
|
|
||||||
res.data.forEach(item => {
|
|
||||||
if(item.standardId === qId){
|
|
||||||
this.standList.push(item)
|
|
||||||
queNumber++
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if(queNumber === 0){
|
|
||||||
this.standList = res.data
|
|
||||||
this.refreshStandMap()
|
|
||||||
}
|
|
||||||
}, e => {
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//文件上传前
|
//文件上传前
|
||||||
beforeUploadTheme(file){
|
beforeUploadTheme(file){
|
||||||
console.log(file);
|
console.log(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user