zhuxinbo 4 năm trước cách đây
mục cha
commit
2e1bb398a2

+ 1 - 1
src/views/modules/Statistics/refuseData.vue

@@ -51,7 +51,7 @@
       @cancel="handleCancel">
       <a-textarea v-model="editWord" autosize />
     </a-modal>
-    <a-modal v-model="visibleFail" title="错误信息" :footer="null">
+    <a-modal v-model="visibleFail" title="重提信息" :footer="null">
       <div v-if="fail">
         修改成功条数:{{ fail.successCount }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;失败条数:{{
               fail.failCount

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

@@ -24,8 +24,8 @@
         </div>
         <a-spin :spinning="spinning">
           <a-table :columns="columns" :data-source="tableData" :scroll="{ x: 4000 }" bordered size="middle"
-            :laoding='loading' :pagination='ipagination' @change="tableChange" :customRow="click">
-            <a slot="projectName" slot-scope="text,records">{{text}}</a>
+            :laoding='loading' :pagination='ipagination' @change="tableChange">
+            <a slot="projectName" slot-scope="text,records" @click="showClick(records)">{{text}}</a>
             <!-- <a slot="projectName" slot-scope="text,records" @click="goAccount(records)">{{text}}</a>
             <a slot="authName" slot-scope="text,records" @click="goCampaign(records)">{{text}}</a>
             <a slot="campaignName" slot-scope="text,records" @click="goUnit(records)">{{text}}</a>
@@ -820,54 +820,57 @@
       }
     },
     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: {
             click: () => {
-              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
-                  }
-                })
-              }
+
 
             }
           }

+ 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: '创建渠道',