Przeglądaj źródła

页面渲染修改

liuYb 4 lat temu
rodzic
commit
5c58efdf60
1 zmienionych plików z 7 dodań i 45 usunięć
  1. 7 45
      src/views/data/UploadLink.vue

+ 7 - 45
src/views/data/UploadLink.vue

@@ -45,7 +45,7 @@
             <!-- 车型 -->
             <td>{{ obj.publishSourceName }}</td>
             <!-- 发布版块 -->
-            <td>{{ obj.projectTypeName || '-'}}</td>
+            <td>{{ obj.projectTypeName }}</td>
             <!-- 项目分类 -->
             <td>{{ obj.contentTypeName }}</td>
             <!-- 内容分类 -->
@@ -278,7 +278,6 @@ export default {
       file: "",
       dictList: [],
       onlineUrl: "http://8.136.230.133:8080",
-
     };
   },
   computed: {
@@ -401,17 +400,12 @@ export default {
           if (res.data.code === 200) {
             //this.tableData = [];
             let data = res.data.data;
-            //this.tableData.push(data[0]);
-            //Array.prototype.push.apply(this.tableData, data);
-            //this.tableData.push(data[0]);
             for (
               let i = 0, j = 0;
               i < this.tableData.length && j < data.length;
               i++, j++
             ) {
-              //this.tableData.splice(i, 1, data[j]);
               this.$set(this.tableData, i, data[j]);
-
             }
             console.log(data.length, this.tableData.length);
             console.log(this.tableData);
@@ -546,9 +540,6 @@ export default {
       //获取可发布数量
       this.getReleaseQuantity(obj.id);
 
-      //更新列表数据
-      this.getDataList(obj.id);
-
       //获取发布版块
       this.chooseReleasePlate(obj.id);
     },
@@ -579,11 +570,14 @@ export default {
             this.tableData = [];
             while (len > 0) {
               //this.tableData.push([]);
-              Array.prototype.push.apply(this.tableData, [this.emptyData]);
+              //Array.prototype.push.apply(this.tableData, [this.emptyData]);
+              this.tableData.push(this.emptyData);
               len--;
             }
             console.log(this.tableData);
             console.log(this.tableData.length);
+            //更新列表数据
+            this.getDataList(this.selectedPlatformId);
           }
         })
         .catch((err) => {
@@ -654,40 +648,7 @@ export default {
           });
         }); */
     },
-    //导入
-    /*   importFile: function () {
-      this.$http({
-        url: "/importDealerFeedback",
-        method: "get",
-        params: "反馈链接上传导入表模板(经销商).xlsx",
-      })
-        .then((res) => {
-          console.log(res);
-          if (res.data.code === 200) {
-            console.log(res.data);
-          }
-        })
-        .catch((err) => {
-          console.log(err);
-        });
-    }, */
-    //导出
-    /*    outputFile: function () {
-      this.$http({
-        url: "/exportNoFactory",
-        method: "get",
-        params: "反馈链接上传导入表模板(经销商).xlsx",
-      })
-        .then((res) => {
-          console.log(res);
-          if (res.data.code === 200) {
-            console.log(res.data);
-          }
-        })
-        .catch((err) => {
-          console.log(err);
-        });
-    }, */
+
     // 上传时间为xx个月内的资料进行反馈  获取内容分类、媒体平台、常用参数接口的标识,再调接口时需要用到
     selectSysDataDictList: function () {
       return new Promise((resolve, reject) => {
@@ -745,6 +706,7 @@ export default {
       .catch((err) => {
         console.log(err);
       });
+    //this.getPlatform();
   },
 };
 </script>