Browse Source

处理企业基础信息无法修改二级单位名称的问题

ljb 6 months ago
parent
commit
0596e8c601

+ 2 - 0
src/views/basic-resource/comp-basic-info/components/comp-dept-list.vue

@@ -144,6 +144,7 @@ export default window.$crudCommon(
       handleEditBtn(row) {
       handleEditBtn(row) {
         const column = this.findObject(this.option.column, "secondUnitName");
         const column = this.findObject(this.option.column, "secondUnitName");
         const deptColumn = this.findObject(this.option.column, "deptName");
         const deptColumn = this.findObject(this.option.column, "deptName");
+        column.disabled = true;
         column.display = false;
         column.display = false;
         deptColumn.display = false;
         deptColumn.display = false;
         this.form = { ...row };
         this.form = { ...row };
@@ -151,6 +152,7 @@ export default window.$crudCommon(
           deptColumn.display = true;
           deptColumn.display = true;
           this.form.deptName = row.name;
           this.form.deptName = row.name;
         } else {
         } else {
+          column.disabled = false;
           column.display = true;
           column.display = true;
           this.form.secondUnitName = row.name;
           this.form.secondUnitName = row.name;
         }
         }