Przeglądaj źródła

新待办-已办-发起跳页

hujunwei 2 lat temu
rodzic
commit
b5f0530d1b
1 zmienionych plików z 54 dodań i 44 usunięć
  1. 54 44
      src/pages/main/leader/leaderhomeTask.vue

+ 54 - 44
src/pages/main/leader/leaderhomeTask.vue

@@ -500,61 +500,71 @@ export default {
           // }
           console.log(this.urlllll);
         });
-      }else{
+      } else {
         this.$router.push(v.actionUrl);
       }
     },
     //我的已办查看按钮
     RowDoneTitle(v) {
       this.StatusList = v;
-      this.DoneStatus = true;
-      this.$http({
-        url: "/market/cwo/queryProcStepByWono",
-        method: "post",
-        headers: {
-          "Content-Type": "application/json",
-        },
-        data: {
-          woNo: v.woNo,
-        },
-      }).then((res) => {
-        this.DoneList = res.data;
-      });
-      this.$http({
-        url: "/market/cwo/redirectDealPage",
-        method: "post",
-        headers: {
-          "Content-Type": "application/json",
-        },
-        data: {
-          procId: v.procId,
-        },
-      }).then((res) => {
-        this.urlllll = res.data[0].jspUrl;
-        // console.log(this.urlllll)
-        // if(this.urlllll=="#"){
-        //   this.urlllll=res.data[1].jspUrl
-        // }
-        console.log(this.urlllll);
-      });
+      console.log(v.actionUrl);
+      if (v.procName) {
+        this.DoneStatus = true;
+        this.$http({
+          url: "/market/cwo/queryProcStepByWono",
+          method: "post",
+          headers: {
+            "Content-Type": "application/json",
+          },
+          data: {
+            woNo: v.woNo,
+          },
+        }).then((res) => {
+          this.DoneList = res.data;
+        });
+        this.$http({
+          url: "/market/cwo/redirectDealPage",
+          method: "post",
+          headers: {
+            "Content-Type": "application/json",
+          },
+          data: {
+            procId: v.procId,
+          },
+        }).then((res) => {
+          this.urlllll = res.data[0].jspUrl;
+          // console.log(this.urlllll)
+          // if(this.urlllll=="#"){
+          //   this.urlllll=res.data[1].jspUrl
+          // }
+          console.log(this.urlllll);
+        });
+      } else {
+        this.$router.push(v.actionUrl);
+      }
     },
 
     //我的发起查看按钮
     RowlaunchTitle(v) {
       this.StatusList = v;
-      this.launchStatus = true;
-      this.$http({
-        url: "/market/cwo/queryProcStepByWono",
-        method: "post",
-        headers: {
-          "Content-Type": "application/json",
-        },
-        data: {
-          woNo: v.woNo,
-        },
-      }).then((res) => {
-        this.launchList = res.data;
-      });
+      console.log(v.actionUrl);
+      if (v.procName) {
+        this.launchStatus = true;
+        this.$http({
+          url: "/market/cwo/queryProcStepByWono",
+          method: "post",
+          headers: {
+            "Content-Type": "application/json",
+          },
+          data: {
+            woNo: v.woNo,
+          },
+        }).then((res) => {
+          this.launchList = res.data;
+        });
+      }else {
+        this.$router.push(v.actionUrl);
+      }
     },
 
     //更多按钮