fix: 起草单位回显字段修改
This commit is contained in:
@@ -1069,7 +1069,9 @@ export default {
|
||||
},
|
||||
choiceZRBM (type, title, id) {
|
||||
this.nodeListZRBM = []
|
||||
this.nodeListZRBM.push(id)
|
||||
if (id && id.length > 0) {
|
||||
this.nodeListZRBM = id.split(',')
|
||||
}
|
||||
this.drawerTitle = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
@@ -1082,7 +1084,7 @@ export default {
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
nameList += item.institutionCascade
|
||||
})
|
||||
this.$set(this.qbfsForm, 'unit', idList)
|
||||
this.$set(this.qbfsForm, 'unitName', nameList)
|
||||
|
||||
@@ -1119,7 +1119,9 @@ export default {
|
||||
},
|
||||
choiceZRBM (type, title, id) {
|
||||
this.nodeListZRBM = []
|
||||
this.nodeListZRBM.push(id)
|
||||
if (id && id.length > 0) {
|
||||
this.nodeListZRBM = id.split(',')
|
||||
}
|
||||
this.drawerTitle = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
@@ -1132,7 +1134,7 @@ export default {
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
nameList += item.institutionCascade
|
||||
})
|
||||
this.$set(this.qbfsForm, 'unit', idList)
|
||||
this.$set(this.qbfsForm, 'unitName', nameList)
|
||||
|
||||
@@ -917,7 +917,9 @@ export default {
|
||||
},
|
||||
choiceZRBM (type, title, id) {
|
||||
this.nodeListZRBM = []
|
||||
this.nodeListZRBM.push(id)
|
||||
if (id && id.length > 0) {
|
||||
this.nodeListZRBM = id.split(',')
|
||||
}
|
||||
this.drawerTitle = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
@@ -930,7 +932,7 @@ export default {
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
nameList += item.institutionCascade
|
||||
})
|
||||
this.$set(this.addQblxData, 'unit', idList)
|
||||
this.$set(this.addQblxData, 'unitName', nameList)
|
||||
|
||||
@@ -1403,9 +1403,10 @@ export default {
|
||||
this.QYBZget()
|
||||
},
|
||||
choiceZRBM (type, title, id) {
|
||||
console.log(1);
|
||||
this.nodeListZRBM = []
|
||||
this.nodeListZRBM.push(id)
|
||||
if (id && id.length > 0) {
|
||||
this.nodeListZRBM = id.split(',')
|
||||
}
|
||||
this.drawerTitle = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
@@ -1418,7 +1419,7 @@ export default {
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
nameList += item.institutionCascade
|
||||
})
|
||||
this.$set(this.qbfsForm, 'unit', idList)
|
||||
this.$set(this.qbfsForm, 'unitName', nameList)
|
||||
|
||||
+29
-3
@@ -1891,6 +1891,7 @@
|
||||
/>
|
||||
<Mechanism-tree
|
||||
is-title="选择部门信息"
|
||||
:is-title="drawerTitle5"
|
||||
:is-visible.sync="modalshowflagZRBM"
|
||||
:nodeList="nodeListZRBM"
|
||||
@checkedRole="drawerCheckZRBM"
|
||||
@@ -2819,6 +2820,7 @@ export default {
|
||||
drawerTitle3: '',
|
||||
drawerTitle4: '',
|
||||
drawerTitle2: '',
|
||||
drawerTitle5: '',
|
||||
modalShowRoleFlag: false,
|
||||
modalShowRoleFlag1: false,
|
||||
nodeList: [],
|
||||
@@ -4435,13 +4437,36 @@ export default {
|
||||
},
|
||||
choiceQCDW (type, title, id) {
|
||||
this.nodeListZRBM = []
|
||||
if(this.sarBussionessStandEO.QCDWID && this.sarBussionessStandEO.QCDWID.length > 0) {
|
||||
this.nodeListZRBM = this.sarBussionessStandEO.QCDWID.split(',')
|
||||
if(title === '起草部门' && this.sarBussionessStandEO.QCDWId && this.sarBussionessStandEO.QCDWId.length > 0) {
|
||||
this.nodeListZRBM = this.sarBussionessStandEO.QCDWId.split(',')
|
||||
}
|
||||
this.drawerTitle = title
|
||||
if(title === '查询起草部门' && this.sarBussionessSearch.QCDWId && this.sarBussionessSearch.QCDWId.length > 0) {
|
||||
this.nodeListZRBM = this.sarBussionessSearch.QCDWId.split(',')
|
||||
}
|
||||
this.drawerTitle5 = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
drawerCheckZRBM (data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach(item => {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.institutionCascade
|
||||
})
|
||||
if (this.drawerTitle5 === '起草部门') {
|
||||
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
|
||||
this.$set(this.sarBussionessStandEO, 'QCDW', nameList)
|
||||
this.$refs.sarBussionessStandForm.validateField('QCDW')
|
||||
}
|
||||
if (this.drawerTitle5 === '查询起草部门') {
|
||||
this.$set(this.sarBussionessSearch, 'QCDWId', idList)
|
||||
this.$set(this.sarBussionessSearch, 'QCDW', nameList)
|
||||
}
|
||||
/*
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach(item => {
|
||||
@@ -4476,6 +4501,7 @@ export default {
|
||||
}
|
||||
// this.sarBussionessStandEO.QCDWId = idList;
|
||||
// this.sarBussionessStandEO['QCDW'] = nameList;
|
||||
*/
|
||||
},
|
||||
// 新增-表单空
|
||||
resetForm () {
|
||||
|
||||
Reference in New Issue
Block a user