|
@ -20,11 +20,12 @@ |
|
|
:formConfigOptions="{ dFormData: { eventState: '0' } }" @handleSearch="handleSearch" /> |
|
|
:formConfigOptions="{ dFormData: { eventState: '0' } }" @handleSearch="handleSearch" /> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 内容 --> |
|
|
<!-- 内容 --> |
|
|
|
|
|
|
|
|
<div class="body"> |
|
|
<div class="body"> |
|
|
<Table :data="tableData"> |
|
|
<Table :data="tableData"> |
|
|
<el-table-column label="序号" type="index" :index="indexMethod" width="100" align="center" |
|
|
<el-table-column label="序号" type="index" :index="indexMethod" width="100" align="center" |
|
|
header-align="center" /> |
|
|
header-align="center" /> |
|
|
|
|
|
|
|
|
<ElTableColumn label="发布渠道" prop="publishChannels" width="120" align="center" header-align="center"> |
|
|
<ElTableColumn label="发布渠道" prop="publishChannels" width="120" align="center" header-align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
{{ enum_channels[scope.row.publishChannels-1] }} |
|
|
{{ enum_channels[scope.row.publishChannels-1] }} |
|
@ -115,7 +116,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
onDelete(id){ |
|
|
onDelete(id){ |
|
|
const self = this; |
|
|
const self = this; |
|
|
this.$confirm("是否删除?"+id, "警告", { |
|
|
this.$confirm("是否删除?", "警告", { |
|
|
confirmButtonText: "确定", |
|
|
confirmButtonText: "确定", |
|
|
cancelButtonText: "取消", |
|
|
cancelButtonText: "取消", |
|
|
type: "warning", |
|
|
type: "warning", |
|
@ -153,7 +154,7 @@ export default { |
|
|
responseType: 'blob', |
|
|
responseType: 'blob', |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
|
|
|
|
|
|
const url = window.URL.createObjectURL(new Blob([res])); |
|
|
const url = window.URL.createObjectURL(new Blob([res])); |
|
|
let link = document.createElement("a"); |
|
|
let link = document.createElement("a"); |
|
|
link.style.display = "none"; |
|
|
link.style.display = "none"; |
|
@ -174,7 +175,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleSearch(data) { |
|
|
handleSearch(data) { |
|
|
let daterange = data.daterange; |
|
|
let daterange = data.daterange; |
|
|
|
|
|
|
|
|
let _searchData = { |
|
|
let _searchData = { |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
pageNum: 1 |
|
|
pageNum: 1 |
|
@ -202,6 +203,7 @@ export default { |
|
|
request({ |
|
|
request({ |
|
|
url: `/business/manage/statisticsList?pageNum=${this.searchData.pageNum}&pageSize=${this.searchData.pageSize}`, |
|
|
url: `/business/manage/statisticsList?pageNum=${this.searchData.pageNum}&pageSize=${this.searchData.pageSize}`, |
|
|
method: "post", |
|
|
method: "post", |
|
|
|
|
|
params: { pageNum: this.searchData.pageNum, pageSize: this.searchData.pageSize }, |
|
|
data: this.searchData, |
|
|
data: this.searchData, |
|
|
}).then((result) => { |
|
|
}).then((result) => { |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
@ -209,7 +211,7 @@ export default { |
|
|
this.total = result.total; |
|
|
this.total = result.total; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onSizeChange(pageSize) { |
|
|
onSizeChange(pageSize) { |
|
|
this.tableData = []; |
|
|
this.tableData = []; |
|
|
this.searchData.pageSize = pageSize; |
|
|
this.searchData.pageSize = pageSize; |
|
|