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