suxinf vor 4 Jahren
Ursprung
Commit
efb86e1ebc

+ 0 - 102
src/views/account/AccountManage.vue

@@ -60,31 +60,9 @@ export default {
       tableData: [],
       editData: {},
       accountId: "",
-      // dictList: [],
-      // mediaPlatName: [],
     };
   },
   methods: {
-    // addDataList: function (account, fansNum, flag, editData) {
-    //   console.log(account, fansNum, flag, editData);
-    //   this.$http({
-    //     url: "/sys/mediaAccount/addMediaAccountInfo",
-    //     method: "post",
-    //     data: {
-    //       accountId: account,
-    //       fansCount: fansNum,
-    //     },
-    //   })
-    //     .then((res) => {
-    //       console.log(res);
-    //       if (res.data.code === 200) {
-    //         //  this.tableData = res.data.data;
-    //       }
-    //     })
-    //     .catch((err) => {
-    //       console.log(err);
-    //     });
-    // },
     editForm: function (account, fansNum, flag, editData) {
       console.log(account, fansNum, flag, editData);
       //alert("编辑");
@@ -115,86 +93,6 @@ export default {
     hiddenImg: function () {
       this.imgFlag = false;
     },
-    //
-    /*    getDataList: function () {
-      this.$http({
-        //url: "/sys/mediaAccount/selectMediaAccountPage",
-        url: "/sys/mediaAccount/addMediaAccountInfo",
-        method: "post",
-        data: {},
-      })
-        .then((res) => {
-          console.log(res);
-          if (res.data.code === 200) {
-            //  this.tableData = res.data.data;
-          }
-        })
-        .catch((err) => {
-          console.log(err);
-        });
-    }, */
-
-    // 获取内容分类、媒体平台、常用参数接口的标识,再调接口时需要用到
-    // selectSysDataDictList: function () {
-    //   return new Promise((resolve, reject) => {
-    //     this.$http({
-    //       method: "post",
-    //       url: "/sys/dataDict/selectSysDataDictList",
-    //       data: {},
-    //     })
-    //       .then((res) => {
-    //         if (res.data && res.data.code === 200) {
-    //           this.dictList = res.data.data;
-    //           resolve();
-    //         } else {
-    //           console.log(res);
-    //           reject();
-    //         }
-    //       })
-    //       .catch((err) => {
-    //         console.log(err);
-    //         reject();
-    //       });
-    //   });
-    // },
-    // 获取列表数据   接口
-    // getDateList: function () {
-    //   this.$http({
-    //     method: "post",
-    //     url: "/sys/dataDict/selectSysDataDictPage",
-    //     data: {
-    //       dictCode: this.dictList[3]["dictCode"],
-    //       parentId: this.dictList[3]["id"],
-    //     },
-    //   })
-    //     .then((res) => {
-    //       if (res.data && res.data.code === 200) {
-    //         this.mediaPlatName = res.data.data;
-    //         //console.log(this.mediaPlatName);
-    //         //取媒体平台名称
-    //         let arr = [];
-    //         let len1 = this.mediaPlatName.length;
-    //         let len2 = this.tableData.length;
-    //         for (let i = 0; i < len1; i++) {
-    //           arr.push(this.mediaPlatName[i].dictName);
-    //         }
-    //         //console.log(arr);
-    //         while(len1 > len2){
-    //           this.tableData.push({})
-    //         }
-    //         //渲染,传递到页面数组
-    //         for (let i = 0; i < this.tableData.length; i++) {
-    //           this.tableData[i].dlrName=arr[i];
-    //         }
-    //       } else {
-    //         console.log(res);
-    //       }
-    //     })
-    //     .catch((err) => {
-    //       console.log(err);
-    //     });
-    // },
-    //
     // 获取列表数据  接口
     selectMediaAccountPage: function (data) {
       this.$http({

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

@@ -133,6 +133,7 @@ export default {
         data: data,
       })
         .then((res) => {
+          console.log(res.data.data)
           this.tableData = res.data.data;
           this.sum = res.data.count;
         })

+ 10 - 3
src/views/data/UploadRecord.vue

@@ -58,6 +58,7 @@ export default {
       currentPage: 1,
       pageSize: 20,
       tableData: [],
+      asc: false,
       onlineUrl: "http://8.136.230.133:8080",
     };
   },
@@ -80,16 +81,16 @@ export default {
       if (this.inputValue !== "请输入要搜索的资料名") {
         data = {
           informationName: this.inputValue,
+          asc: this.asc
         };
       }
       this.getFirmsUploadList(data);
       this.inputValue = "请输入要搜索的资料名";
     },
     sort: function () {
-      // ASC降序
-      let asc = this.order === "DESC" ? false : true;
+      this.asc = this.order === "DESC" ? true : false;
       let data = {
-        asc: asc,
+        asc: this.asc,
         page: this.currentPage,
         rows: this.pageSize,
       };
@@ -100,6 +101,7 @@ export default {
       let req = {
         page: this.currentPage,
         rows: this.pageSize,
+        asc: this.asc
       };
       this.getFirmsUploadList(req);
     },
@@ -122,6 +124,7 @@ export default {
       let req = {
         page: this.currentPage,
         rows: this.pageSize,
+        asc: this.asc
       };
       this.getFirmsUploadList(req);
     },
@@ -135,9 +138,11 @@ export default {
     delet: function (i) {
       let id = this.tableData[i].id;
       this.deleteInformationInfo(id).then(() => {
+        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         let req = {
           page: this.currentPage,
           rows: this.pageSize,
+          asc: this.asc
         };
         this.getFirmsUploadList(req);
       }).catch((err) => {
@@ -190,6 +195,7 @@ export default {
               alert("删除成功");
               resolve();
             } else {
+              alert('删除失败,请重试')
               console.log(res.message);
               rejecct();
             }
@@ -205,6 +211,7 @@ export default {
     let res = {
       page: 1,
       rows: this.pageSize,
+      asc: this.asc
     };
     this.getFirmsUploadList(res);
   },

+ 2 - 2
src/views/data/components/UploadLinksTable.vue

@@ -42,8 +42,8 @@
           <td>{{ obj.publishPlatformName || '-' }}</td>
           <td>{{ obj.publishSourceName }}</td>
           <td>{{ obj.projectTypeName || '-'}}</td>
-          <td>{{ obj.contentTypeName }}</td>
-          <td>{{ obj.contentClass2 || '-'}}</td>
+          <td>{{ obj.mediaTypeName }}</td>
+          <td>{{ obj.contentTypeName || '-'}}</td>
           <td style="width: 240px">
             <div class="blueStyle" @click="ulrJump(obj.mediaUrl)">
               {{ obj.mediaTitle }}

+ 4 - 4
src/views/parameter/components/Grouping/GroupMember.vue

@@ -91,7 +91,7 @@ export default {
     // 点击删除
     deleteData(index) {
       let req = {
-        id: this.tableData[index]["id"],
+        agentId: this.tableData[index]["id"],
         groupId: this.groupId,
       };
       this.deleteAgentInfo(req).then(() => {
@@ -146,7 +146,7 @@ export default {
       return new Promise((resolve, reject) => {
         this.$http({
           method: "post",
-          url: "/sys/agent/deleteAgentInfo",
+          url: "/sys/agentGroup/deleteAgentGroup",
           data,
         })
           .then((res) => {
@@ -154,12 +154,12 @@ export default {
               console.log(res);
               resolve();
             } else {
-              alert("编辑失败,请重试");
+              alert("删除失败,请重试");
               console.log(res);
             }
           })
           .catch((err) => {
-            alert("编辑失败,请重试");
+            alert("删除失败,请重试");
             console.log(err);
             reject(err);
           });