Kaynağa Gözat

设备类型管理修改-提交

lxh 4 ay önce
ebeveyn
işleme
0fa916d564

+ 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,