Sfoglia il codice sorgente

feat: 编辑分类名称时,设备分类页面同步修改,实际数据未上传

Damon 11 mesi fa
parent
commit
353ab34e9b

+ 10 - 6
src/views/device/category/index.vue

@@ -155,12 +155,16 @@ export default {
     // 新增 / 编辑按钮
     getChange(row) {
       this.dialogVisible = true;
-      this.form = row
-        ? row
-        : {
-            name: "",
-            status: 1,
-          };
+      if (row) {
+        var aaa = JSON.stringify(row);
+        var bbb = JSON.parse(aaa);
+        this.form = bbb;
+      } else {
+        this.form = {
+          name: "",
+          status: 1,
+        };
+      }
       this.title = row ? "编辑" : "新增";
     },
 

+ 1 - 0
src/views/operation/feedbacktype/index.vue

@@ -19,6 +19,7 @@
     </el-table>
     <pagination v-show="total > 0" :total="total" :page.sync="form.pageNum" :limit.sync="form.pageSize"
       @pagination="getList" />
+      
     <!-- 弹窗 -->
     <el-dialog :visible.sync="dialogVisible" :title="title" width="500px" :before-close="close">
       <el-form :model="dialogForm" ref="dialogForm" :rules="rules" label-width="100px">