ysy 2 лет назад
Родитель
Сommit
6258c43279

+ 2 - 1
src/views/technology/route/components/user-edit.vue

@@ -255,7 +255,8 @@ export default {
         if (this.data) {
           const res = await route.getById(this.data.id);
           this.$util.assignObject(this.form, {
-            ...res
+            ...res,
+            versionUpgradeType: 0
           });
           this.isUpdate = true;
         } else {

+ 2 - 9
src/views/technology/route/components/user-taskinstance.vue

@@ -204,15 +204,8 @@ export default {
       this.$refs.table.reload();
     },
     remove(row) {
-      if (row.id) {
-        route.taskinstanceDelete([row.id]).then(() => {
-          this.$message.success('删除成功');
-          this.reload();
-        });
-      } else {
-        const data = this.$refs.table.getData() ?? [];
-        this.$refs.table.setData(data.filter((d) => d.code !== row.code));
-      }
+      const data = this.$refs.table.getData() ?? [];
+      this.$refs.table.setData(data.filter((d) => d.id !== row.id));
       this.$emit('taskList', this.$refs.table.getData())
     },
     /* 表格数据源 */