suxinf 4 år sedan
förälder
incheckning
64f7a6baca

+ 7 - 5
src/App.vue

@@ -38,7 +38,7 @@ export default {
     return {
       navTitle1: ' > 数据管理',
       navTitle2: '',
-      isManufacturer: 'distributor', // distributor 经销商 manufacturer 厂商
+      isManufacturer: 'manufacturer', // distributor 经销商 manufacturer 厂商
       userAccount: ''
     }
   },
@@ -66,19 +66,21 @@ export default {
       this.$http({
         method: 'post',
         url: '/auth/checkSign',
-        data:token
+        data: {
+          token: token
+        }
       }).then((res) => {
         console.log(res);
         if(res.status === 200){
           if(res.data.code === 200) {
             let userInfo = res.data.data;
-            if (userInfo.userRole == '1' || userInfo.userRole == '2') {
+            if (userInfo.role == '1' || userInfo.role == '2') {
               this.isManufacturer = 'distributor';
             } else {
               this.isManufacturer = 'manufacturer';
             }
-            this.userAccount = userInfo.userCode;
-            localStorage.setItem("userId", userInfo.agentId);
+            this.userAccount = userInfo.userAccount;
+            localStorage.setItem("userId", userInfo.userAccount);
           }else {
             let message = res.data.message;
             console.log('message', message);

+ 1 - 2
src/views/account/AccountIndex.vue

@@ -175,9 +175,8 @@ export default {
             console.log(res);
             this.tableData = res.data.data;
             this.sum = res.data.count;
-            // alert('success!')
           } else {
-            console.log("message", res.data.message);
+            console.log("message", res.data.data);
           }
         })
         .catch((err) => {

+ 1 - 1
src/views/account/components/EditModal.vue

@@ -86,7 +86,7 @@ export default {
         return
       }
       if (fansNum < 0) {
-        alert('粉丝数必须大于等于0!');
+        alert('粉丝数必须大于等于0!');
         return
       }
       this.$emit("edit_data", isAttesta, fansNum, accountCode);

+ 2 - 8
src/views/data/components/UploadRecordDetail.vue

@@ -194,19 +194,13 @@ export default {
       //   informationId: this.filesList[i]["informationId"],
       //   //agentId: this.filesList[i]['agentId'] 如果是厂商下载不传agentId
       // };
-      let reqStr =
-        "informationId=" +
-        this.filesList[i]["informationId"] +
-        "&" +
-        "fileId=" +
-        this.filesList[i]["id"];
+      let reqStr = "informationId=" + this.filesList[i]["informationId"] +"&" + "id=" + this.filesList[i]["id"];
       this.dealerDownload(reqStr);
     },
     // 导出 下载记录文件
     downloadExcel: function () {
       console.log(this.detailData);
-      let reqStr = "informationId=" + this.detailData["id"];
-      // console.log(reqStr);
+      let reqStr = "=" + this.detailData["id"];
       this.exportTem(reqStr);
     },
     // 上传记录列表接口 获取对应详情