Browse Source

作业区域编辑问题修复

pm 11 months ago
parent
commit
6da8104cea
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/mes/md/workarea/index.vue

+ 6 - 3
src/views/mes/md/workarea/index.vue

@@ -411,7 +411,7 @@ export default {
         remark: null,
         map: null,
         workareaCode: null,
-        workareaId: null,
+        workareaId: undefined,
         workareaName: null,
         workareaType: null,
         workshopId: null,
@@ -470,14 +470,17 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
-      this.reset();
+    
       this.EditId = row.workareaId || this.ids;
       getWorkareaInfo(row.workareaId).then((response) => {
         this.form = response.data;
         this.open = true;
         this.title = "修改作业区域";
       });
-      data
+const data={
+  current:1,
+  size:-1
+}
       listWorkarea(data).then((response) => {
         this.deptOptions = this.handleTree(
           response.data.records,