소스 검색

设备类型管理修改-提交

lxh 7 달 전
부모
커밋
0fa916d564
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/vent/deviceManager/equipManager/component/normalBtnTable.vue

+ 2 - 1
src/views/vent/deviceManager/equipManager/component/normalBtnTable.vue

@@ -175,7 +175,7 @@
   function handleAdds(data) {
     // debugger;
     console.log(data, '添加下级');
-    dictId.value = data.subDictId || data.dictId;
+    dictId.value = data.subDictId;
     for (let key in record) {
       delete record[key];
     }
@@ -187,6 +187,7 @@
    */
   function handleEdit(data) {
     isUpdate.value = true;
+    dictId.value = data.dictId;
     Object.assign(record, toRaw(data));
     openModal(true, {
       record,