|
@@ -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
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|