瀏覽代碼

设备类型管理修改-提交

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,