Browse Source

'批量改跳转'

魏志佳 4 years ago
parent
commit
518b145b5b

+ 12 - 6
src/views/modules/Statistics/refuseData.vue

@@ -51,19 +51,19 @@
       @cancel="handleCancel">
       <a-textarea v-model="editWord" autosize />
     </a-modal>
-    <!-- <a-modal v-model="visible" title="错误信息" onOk="handleOk" :footer="null">
-      <div v-if="visibleData">
-        修改条数:{{ visibleData.totalCount }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;失败条数:{{
-              visibleData.failCount
+    <a-modal v-model="visibleFail" title="重提信息" :footer="null">
+      <div v-if="fail">
+        修改成功条数:{{ fail.successCount }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;失败条数:{{
+              fail.failCount
             }}
         <div style="margin-top:20px">
-          <p v-for="(item, index) of visibleData.failInfo" :key="index">
+          <p v-for="(item, index) of fail.failInfo" :key="index">
             <span>名称:{{ item.campaignName?item.campaignName:item.unitName }}</span><br />
             <span>错误信息:{{ item.message }}</span>
           </p>
         </div>
       </div>
-    </a-modal> -->
+    </a-modal>
   </div>
 </template>
 
@@ -169,6 +169,8 @@
     data: function () {
       return {
         title: '被拒创意列表',
+        visibleFail: false,
+        fail: null,
         appId: null,
         loading: false,
         columns,
@@ -222,9 +224,13 @@
             this.loadingList = false
             this.selectedRowKeysValue = []
             this.selectedRowKeys = []
+            this.visibleFail = true
+            this.fail = res.result
             this.addUser()
           } else {
             this.loadingList = false
+            this.visibleFail = true
+            this.fail = res.result
             this.$message.error(res.message)
           }
         })

+ 46 - 0
src/views/modules/Statistics/xiaoshouStatistics.vue

@@ -820,6 +820,52 @@
       }
     },
     methods: {
+      showClick(record) {
+        this.visible = true
+        this.loadingChild = true
+        if (this.tabKey == 1) {
+
+          this.columnsChildren = [...accountColumns, ...bytedanceColumns]
+          var params = {
+            startDate: this.dateRange[0].format('YYYY-MM-DD'),
+            endDate: this.dateRange[1].format('YYYY-MM-DD'),
+            projectId: record.projectId,
+            pageNum: '1',
+            pageSize: '10'
+          }
+          postAction('/ctop/report/getBytedanceAccountInfoByProjectId', params).then(res => {
+
+            if (res.success) {
+              this.loadingChild = false
+              this.tableDataChild = res.result.list
+              this.ipaginationCount.total = res.result.total
+            } else {
+              this.loadingChild = false
+            }
+          })
+
+
+        } else if (this.tabKey == 2) {
+          this.columnsChildren = [...accountColumns, ...publicColumns]
+          var params = {
+            startDate: this.dateRange[0].format('YYYY-MM-DD'),
+            endDate: this.dateRange[1].format('YYYY-MM-DD'),
+            projectId: record.projectId,
+            pageNum: '1',
+            pageSize: '10'
+          }
+          postAction('/kuaishou/getKuaishouAccountInfoByProjectId', params).then(res => {
+
+            if (res.success) {
+              this.loadingChild = false
+              this.tableDataChild = res.result.list
+              this.ipaginationCount.total = res.result.total
+            } else {
+              this.loadingChild = false
+            }
+          })
+        }
+      },
       click(record, index) {
         return {
           on: {

+ 15 - 1
src/views/modules/kuaishouapp/account/accountIndex.vue

@@ -270,7 +270,21 @@
       dataIndex: 'putStatus',
       scopedSlots: {
         customRender: 'putStatus'
-      }
+      },
+      filters: [{
+          text: '投放中',
+          value: '1'
+        },
+        {
+          text: '暂停',
+          value: '2'
+        }
+      ],
+      onFilter: (value, record) =>
+        record.putStatus
+        .toString()
+        .toLowerCase()
+        .includes(value.toLowerCase()),
     },
     {
       title: '创建时间',

+ 15 - 1
src/views/modules/kuaishouapp/account/advertisingGroup.vue

@@ -396,7 +396,21 @@
       dataIndex: 'putStatus',
       scopedSlots: {
         customRender: 'putStatus'
-      }
+      },
+      filters: [{
+          text: '投放中',
+          value: '1'
+        },
+        {
+          text: '暂停',
+          value: '2'
+        }
+      ],
+      onFilter: (value, record) =>
+        record.putStatus
+        .toString()
+        .toLowerCase()
+        .includes(value.toLowerCase()),
     },
     {
       title: '创建渠道',