Merge remote-tracking branch 'origin/相关方关联分公司功能' into 相关方关联分公司功能
commit
1cbb661f90
|
@ -448,16 +448,13 @@ export default {
|
||||||
return list
|
return list
|
||||||
},
|
},
|
||||||
cascaderChange(e) {
|
cascaderChange(e) {
|
||||||
// console.log('e', e)
|
|
||||||
const newVal = e[e.length - 1]
|
const newVal = e[e.length - 1]
|
||||||
// console.log('选中', newVal[newVal.length - 1])
|
|
||||||
if (newVal === '1' || newVal === '2' || newVal === '3' || newVal === '4') {
|
if (newVal === '1' || newVal === '2' || newVal === '3' || newVal === '4') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '请选择正确的属地...',
|
message: '请选择正确的属地...',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
this.form.POSSESSION.pop()
|
this.form.POSSESSION.pop()
|
||||||
// console.log('移除', this.corpStateForm.REGULATORY_DEPARTMENT_ARR)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 加载级联的方法
|
// 加载级联的方法
|
||||||
|
@ -525,7 +522,8 @@ export default {
|
||||||
'/department/listTreeManageAndCorp1/',
|
'/department/listTreeManageAndCorp1/',
|
||||||
{}
|
{}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.treeData = JSON.parse(data.zTreeNodes)
|
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
|
||||||
|
this.treeData = this.removeEmptyChildren(treeData)
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
})
|
})
|
||||||
resolve()
|
resolve()
|
||||||
|
@ -599,7 +597,7 @@ export default {
|
||||||
getDict() {
|
getDict() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
requestFN(
|
requestFN(
|
||||||
'/corpinfo/listTreeManageAndCorpHasOrder',
|
'/department/listTree/',
|
||||||
{}
|
{}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
|
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
|
||||||
|
|
Loading…
Reference in New Issue