suxinf лет назад: 4
Родитель
Сommit
e860014bb1

+ 22 - 20
src/views/account/AccountIndex.vue

@@ -85,7 +85,7 @@ export default {
       sum: 0,
       pageSize: 20,
       onlineUrl: "http://8.136.230.133:8080",
-      platIndex: 0,
+      platformId: "",
     };
   },
   computed: {
@@ -99,6 +99,8 @@ export default {
     changePage: function (page) {
       this.currentPage = page;
       let req = {
+        localArea: this.areaValue,
+        platformId: this.platformId,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -121,6 +123,8 @@ export default {
           break;
       }
       let req = {
+        localArea: this.areaValue,
+        platformId: this.platformId,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -129,6 +133,7 @@ export default {
     search: function () {
       //通过经销商或DLR CODE查询
       console.log(this.inputValue);
+      this.currentPage = 1;
       let req = {
         queryParams: this.inputValue,
         page: this.currentPage,
@@ -137,27 +142,22 @@ export default {
       this.getDealerListRequest(req);
     },
     platChange: function (e) {
-      this.platIndex = e.target.options.selectedIndex;
-    },
-    submit: function () {
-      console.log(this.platIndex);
-      let index = this.platIndex;
-      let req = {}
-      if (index > 0) {
-        let platformId = this.platesList[index - 1]["id"];
-        req = {
-          localArea: this.areaValue,
-          platformId,
-          page: this.currentPage,
-          rows: this.pageSize,
-        };
+      let platIndex = e.target.options.selectedIndex;
+      // 排除“请选择”
+      if (platIndex > 0) {
+        this.platformId = this.platesList[platIndex - 1]["id"];
+        console.log(this.platesList[platIndex - 1]["dictName"]);
       } else {
-        req = {
-          localArea: this.areaValue,
-          page: this.currentPage,
-          rows: this.pageSize,
-        }
+        this.platformId = "";
       }
+    },
+    submit: function () {
+      let req = {
+        localArea: this.areaValue,
+        platformId: this.platformId,
+        page: this.currentPage,
+        rows: this.pageSize,
+      };
       this.getDealerListRequest(req);
     },
     editData: function (i, isAttesta, fansNum, accountCode) {
@@ -170,6 +170,8 @@ export default {
       };
       this.updateMediaAccountInfo(req).then(() => {
         let dataObj = {
+          localArea: this.areaValue,
+          platformId: this.platformId,
           page: this.currentPage,
           rows: this.pageSize,
         };

+ 10 - 0
src/views/data/UploadLinks.vue

@@ -90,12 +90,18 @@ export default {
         localArea: this.areaValue,
         startTime: this.startTime,
         endTime: this.endTime,
+        page: this.currentPage,
+        rows: this.pageSize,
       };
       this.firmsLinkUpload(data);
     },
     changePage: function (page) {
       this.currentPage = page;
       let req = {
+        queryParams: this.inputValue,
+        localArea: this.areaValue,
+        startTime: this.startTime,
+        endTime: this.endTime,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -118,6 +124,10 @@ export default {
           break;
       }
       let req = {
+        queryParams: this.inputValue,
+        localArea: this.areaValue,
+        startTime: this.startTime,
+        endTime: this.endTime,
         page: this.currentPage,
         rows: this.pageSize,
       };

+ 13 - 3
src/views/data/components/UploadRecordDetail.vue

@@ -32,8 +32,8 @@
           </div>
         </div>
         <div class="detail">
-          <p style="width: 65px">资料描述:</p>
-          <p>{{ detailData.fileDiscription }}</p>
+          <div style="width: 15%">资料描述:</div>
+          <p style="width: 85%">{{ detailData.fileDiscription }}</p>
         </div>
         <div class="files">
           <p style="width: 65px">附件:</p>
@@ -147,7 +147,9 @@ export default {
       this.isShowTable = false;
     },
     seletByArea: function () {
+      let id = this.detailData["id"];
       let req = {
+        informationId: id,
         localArea: this.optionValue,
         page: this.currentPage,
         rows: this.pageSize,
@@ -160,6 +162,7 @@ export default {
       let id = this.detailData["id"];
       let req = {
         informationId: id,
+        localArea: this.optionValue,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -184,6 +187,7 @@ export default {
       let id = this.detailData["id"];
       let req = {
         informationId: id,
+        localArea: this.optionValue,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -320,8 +324,13 @@ export default {
       padding: 20px 30px 0;
       .detail {
         width: 100%;
-        min-height: 50px;
         display: flex;
+        div{
+          font-size: 12px;
+        }
+        p{
+        min-height: 50px;
+        }
       }
       .multiDetail {
         // display: flex;
@@ -346,6 +355,7 @@ export default {
       }
       .files {
         display: flex;
+        margin-top: 20px;
         .filesName {
           p {
             color: #0056a0;