浏览代码

问题修稿

suxinf 4 年之前
父节点
当前提交
2f04d10a3a
共有 2 个文件被更改,包括 15 次插入4 次删除
  1. 2 2
      src/App.vue
  2. 13 2
      src/views/data/UploadLink.vue

+ 2 - 2
src/App.vue

@@ -137,12 +137,12 @@ export default {
     // this.isManufacturer = "manufacturer";
     // // this.isManufacturer = "distributor"
     // if (this.isManufacturer === 'manufacturer') {
-    //   if(this.$route.path !== '/uploadInfor') this.$router.replace({ path: "/uploadInfor" });
+    //   if(this.$route.path === '/loading') this.$router.replace({ path: "/uploadInfor" });
     //   localStorage.setItem("userId", 3084);
     //   sessionStorage.setItem("userNameAccount", "L0M14_MM");
     //   this.userAccount = "L0M14_MM";
     // } else {
-    //   if(this.$route.path !== '/inforList') this.$router.replace({ path: "/inforList" });
+    //   if(this.$route.path !== '/loading') this.$router.replace({ path: "/inforList" });
     //   localStorage.setItem("userId", 2002);
     //   sessionStorage.setItem("userNameAccount", "L0210_MM");
     //   this.userAccount = "L0210_MM";

+ 13 - 2
src/views/data/UploadLink.vue

@@ -528,16 +528,22 @@ export default {
     // 导入结果返回结果是code是0
     submit: function () {
       axiosTest({
+        method: "post",
         url: this.otherUrl + "/lexus_php/api/report_import_continue.php",
         data: {
           agentId: this.userId,
           name: this.upLoadName
         },
       }).then((res) => {
-        console.log(res);
         this.resultModalFlag = false;
         this.isShowresultModal = true;
         this.tipModalText = res.data.msg || "";
+        let config = {
+          Page: this.currentPage,
+          Rows: this.pageSize,
+          agentId: this.userId,
+        };
+        this.getDataList(config);
       }).catch((err) => {
         console.log(err);
       })
@@ -573,7 +579,6 @@ export default {
         contentType: false,
       })
         .then((res) => {
-          console.log(res);
           // 完全成功和完全失败只需要显示message
           this.resultModalFlag = false;
           this.isShowresultModal = true;
@@ -586,6 +591,12 @@ export default {
           } else {
             alert('上传失败,请重试')
           }
+          let config = {
+            Page: this.currentPage,
+            Rows: this.pageSize,
+            agentId: this.userId,
+          };
+          this.getDataList(config);
         })
         .catch((err) => {
           console.log(err);