|
@ -20,10 +20,10 @@ |
|
|
:formConfigOptions="{ dFormData: { eventState: '0' } }" @handleSearch="handleSearch" /> |
|
|
:formConfigOptions="{ dFormData: { eventState: '0' } }" @handleSearch="handleSearch" /> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 内容 --> |
|
|
<!-- 内容 --> |
|
|
<Table :data="tableData" height="100%" style="width:500"> |
|
|
<Table :data="tableData" height="100%" style="width:1880px"> |
|
|
<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] }} |
|
@ -114,7 +114,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", |
|
@ -152,7 +152,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"; |
|
@ -173,7 +173,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 |
|
@ -201,6 +201,7 @@ export default { |
|
|
request({ |
|
|
request({ |
|
|
url: `/business/manage/statisticsList`, |
|
|
url: `/business/manage/statisticsList`, |
|
|
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); |
|
@ -208,7 +209,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; |
|
|