|
|
@@ -31,7 +31,7 @@
|
|
|
<el-form-item label="负责部门:">
|
|
|
<el-cascader
|
|
|
class="ele-block"
|
|
|
- :options="organizationList"
|
|
|
+ :options="organization"
|
|
|
placeholder="请选择负责部门"
|
|
|
:props="defaultProps"
|
|
|
ref="deptRef"
|
|
|
@@ -1307,6 +1307,9 @@ export default {
|
|
|
styleResponsive() {
|
|
|
return this.$store.state.theme.styleResponsive;
|
|
|
},
|
|
|
+ organization() {
|
|
|
+ return this.setList(this.organizationList);
|
|
|
+ },
|
|
|
identityPhotosColumns() {
|
|
|
return [
|
|
|
{
|
|
|
@@ -1729,6 +1732,15 @@ export default {
|
|
|
console.log(this.institutionList, '========');
|
|
|
},
|
|
|
methods: {
|
|
|
+ setList(list) {
|
|
|
+ return list.map((val) => {
|
|
|
+ val['disabled'] = val.id == this.form.groupId;
|
|
|
+ if(val.children){
|
|
|
+ val.children= this.setList(val.children)
|
|
|
+ }
|
|
|
+ return val;
|
|
|
+ });
|
|
|
+ },
|
|
|
addIdentityPhotos() {
|
|
|
this.form.identityPhotos.push({
|
|
|
holder: this.form.name
|
|
|
@@ -1843,6 +1855,7 @@ export default {
|
|
|
return (this.form.groupName = i.name);
|
|
|
}
|
|
|
});
|
|
|
+ this.form.deptIds=this.form.deptIds.filter(item=>item!=this.form.groupId)
|
|
|
console.log(this.form.groupName);
|
|
|
},
|
|
|
getLabelName(data, callback) {
|