liuYb 4 년 전
부모
커밋
4dcc7e71c1

+ 1 - 1
src/App.vue

@@ -38,7 +38,7 @@ export default {
   },
   data() {
     return {
-      isManufacturer: "distributor", // distributor 经销商 manufacturer 厂商
+      isManufacturer: "manufacturer", // distributor 经销商 manufacturer 厂商
       userAccount: "",
       userToken: "",
       loadingFlag: true,

+ 6 - 3
src/components/Modal.vue

@@ -210,7 +210,7 @@ export default {
       });
       console.log("chexi ", obj);
       //carTypeId  表示车系 id
-      this.carTypeId = obj.id;
+     // this.carTypeId = obj.id;
 
       //当前月份
       let date = new Date();
@@ -224,7 +224,7 @@ export default {
           id: "", //主键值
           month: d,
           dealerId: "254",
-          dataId: this.ziliaoId,
+          dataId: "1386025423408103425",
           informationName: this.ziliaoName,
           releaseTime: this.ziliaoTime,
           carService: this.carS,
@@ -417,6 +417,7 @@ export default {
     },
 
     initialData: function () {
+      console.log(this.fileName,this.$route.query.informationName)
       this.ziliaoName = this.fileName;
       this.ziliaoId = this.LinkData.informationId;
 
@@ -426,13 +427,15 @@ export default {
 
       this.carT = this.LinkData.carPlatformName;
       let time = this.LinkData.publishDate; //发布时间
-      if (time.length > 4) {
+      if(time != null){
+        if (time.length > 4) {
         let y = time.slice(0, 4);
         let m = time.slice(5, 7);
         let d = time.slice(8, 10);
         let temp = y + "-" + m + "-" + d;
         this.ziliaoTime = temp;
       }
+      }
 
       //publishPlatformName 发布渠道
       this.releaseC = this.LinkData.publishPlatformName;

+ 1 - 1
src/views/data/InforList.vue

@@ -210,7 +210,7 @@ export default {
         overflow: "hidden",
       },
       onlineUrl: env_url, //'http://8.140.188.129:8080'线上 //http://8.136.230.133:8080 //测试
-      userId: localStorage.getItem("userId"),
+      userId: localStorage.getItem("userId") || '',
       endDate: "",
       localReport: "",
     };

+ 4 - 4
src/views/data/UploadLink.vue

@@ -284,7 +284,7 @@ export default {
       file: "",
       dictList: [],
       onlineUrl: env_url, //'http://8.140.188.129:8080'线上 //http://8.136.230.133:8080 //测试
-      userId: 254,
+      userId: '',
       //截止日期
       endTime: "",
       nowDate: 0
@@ -702,7 +702,7 @@ export default {
     viewHistoryRecord: function (obj, index) {
       this.$router.push({
         path: "uploadLink/sonUploadLink",
-        query: { informationName: obj.informationName, id: obj.id, i: index },
+        query: { informationName: obj.informationName, informationId: obj.informationId, i: index },
       });
     },
     isFather: function () {
@@ -717,8 +717,8 @@ export default {
       console.log("经销商ID", localUserId);
       this.userId = localUserId;
     } else {
-      console.log("经销商ID 254");
-      this.userId = 254;
+      console.log("经销商ID '-");
+      this.userId = '';
     }
     // this.getPlatform();
     //分页取数据

+ 3 - 1
src/views/data/UploadLink/sonUploadLink.vue

@@ -93,6 +93,7 @@
       v-if="showModalAdd"
       v-on:closeme="closemeAdd"
       @update="editTitle"
+      :fileName='sfileName'
     ></Modal>
 
     <!-- 弹窗: 确定删除? -->
@@ -131,6 +132,7 @@ export default {
   },
   data() {
     return {
+      sfileName: this.$route.query.informationName,
       publishCount: "",
       platform: [],
       platformVal: "",
@@ -279,7 +281,7 @@ export default {
           accountId: this.accountId,
           // month: d,
           // publishPlatformId: config,
-          informationId: "1386028803438313473",
+          informationId: this.$route.query.informationId,
           page: this.currentPage,
           rows: this.pageSize
         },

+ 1 - 1
src/views/data/components/UploadLinkEditModal.vue

@@ -129,7 +129,7 @@ export default {
     },
     userId: {
       type: String,
-      default: "254",
+      default: "",
     },
   },
   data() {