|
|
@ -53,6 +53,7 @@ |
|
|
|
:visible.sync="orgVisible" |
|
|
|
:visible.sync="orgVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
width="50%" |
|
|
|
width="50%" |
|
|
|
|
|
|
|
@close="closeType" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-form v-if="orgVisible" ref="typeForm" :model="typeForm" :rules="orgRules" label-width="100px"> |
|
|
|
<el-form v-if="orgVisible" ref="typeForm" :model="typeForm" :rules="orgRules" label-width="100px"> |
|
|
|
<el-form-item label="分类名称" prop="partnerClassificationName"> |
|
|
|
<el-form-item label="分类名称" prop="partnerClassificationName"> |
|
|
@ -275,6 +276,7 @@ export default { |
|
|
|
id: '', |
|
|
|
id: '', |
|
|
|
parentId: data ? data.id : 1, |
|
|
|
parentId: data ? data.id : 1, |
|
|
|
level: data ? data.level + 1 : 1, |
|
|
|
level: data ? data.level + 1 : 1, |
|
|
|
|
|
|
|
parentName: data ? data.partnerClassificationName : '', |
|
|
|
partnerClassificationName: '' |
|
|
|
partnerClassificationName: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.orgListDia = this.orgList |
|
|
|
this.orgListDia = this.orgList |
|
|
@ -294,6 +296,13 @@ export default { |
|
|
|
ids.splice(ids.length - 1, 1) |
|
|
|
ids.splice(ids.length - 1, 1) |
|
|
|
this.cascaderValue = ids |
|
|
|
this.cascaderValue = ids |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 关闭分类弹框 |
|
|
|
|
|
|
|
closeType() { |
|
|
|
|
|
|
|
this.typeForm = { |
|
|
|
|
|
|
|
id: '', |
|
|
|
|
|
|
|
partnerClassificationName: '' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 处理更换部门的禁选 |
|
|
|
// 处理更换部门的禁选 |
|
|
|
handleOrg(list) { |
|
|
|
handleOrg(list) { |
|
|
|
for (const i in list) { |
|
|
|
for (const i in list) { |
|
|
@ -366,7 +375,7 @@ export default { |
|
|
|
this.getTeamId(data.children) |
|
|
|
this.getTeamId(data.children) |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.curTeamId) this.curTeamId = data.id |
|
|
|
if (!this.curTeamId) this.curTeamId = data.id |
|
|
|
this.$refs.orgTree.setCurrentKey(this.curTeamId) |
|
|
|
// this.$refs.orgTree.setCurrentKey(this.curTeamId) |
|
|
|
this.initData() |
|
|
|
this.initData() |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
}, |
|
|
|
}, |
|
|
|