瀏覽代碼

fix(maintenance): 修复重新部署弹窗初始tab默认为1

移除了根据入口值条件设置tabValue的逻辑,同时统一代码格式
yusheng 2 天之前
父節點
當前提交
b4db1f3c14
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16 16
      src/views/maintenance/components/redeployOther2.vue

+ 16 - 16
src/views/maintenance/components/redeployOther2.vue

@@ -222,19 +222,19 @@
       },
       open(row, val) {
         this.entranceValue = val;
-
-        //非完成报工
-        if (val == 'noFinishSubmit') {
-          this.tabValue = '1';
-        }
-        // 转派
-        if (val == 'transfer') {
-          if (row.assistsName == '') {
-            this.tabValue = '2';
-          } else {
-            this.tabValue = '1';
-          }
-        }
+        this.tabValue = '1';
+        // //非完成报工
+        // if (val == 'noFinishSubmit') {
+        //   this.tabValue = '1';
+        // }
+        // // 转派
+        // if (val == 'transfer') {
+        //   if (row.assistsName == '') {
+        //     this.tabValue = '2';
+        //   } else {
+        //     this.tabValue = '1';
+        //   }
+        // }
         this.row = row;
         this.name = '';
         this.groupId = '';
@@ -324,8 +324,8 @@
         //     this.btnLoading = false;
         //   });
         // }
-        console.log(this.selectedRow,'this.selectedRow')
-        console.log(this.selectedRow,'this.selectedRow')
+        console.log(this.selectedRow, 'this.selectedRow');
+        console.log(this.selectedRow, 'this.selectedRow');
         if (this.selectedRow.id) {
           paramsArr.push(
             workOrderRotate({
@@ -382,7 +382,7 @@
         this.tabValue = '1';
         this.selectedRow = {};
         this.selectedRowData = [];
-        this.selectedRowDataId=''
+        this.selectedRowDataId = '';
 
         this.visible = false;
       }