|
|
@@ -58,7 +58,7 @@
|
|
|
plain
|
|
|
icon="el-icon-bar-chart"
|
|
|
size="mini"
|
|
|
- @click="showStatistics = true"
|
|
|
+ @click="showStatisticsDialog"
|
|
|
>文章统计</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
@@ -261,6 +261,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handlePending() {
|
|
|
+ if (!this.queryParams.tenantId) {
|
|
|
+ this.$message.warning('请先选择租户')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.loading = true
|
|
|
listPendingArticles().then(response => {
|
|
|
this.articleList = response.rows
|
|
|
@@ -325,12 +329,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
showStatisticsDialog() {
|
|
|
+ if (!this.queryParams.tenantId) {
|
|
|
+ this.$message.warning('请先选择租户')
|
|
|
+ return
|
|
|
+ }
|
|
|
getArticleStatistics().then(response => {
|
|
|
this.statistics = response.data
|
|
|
this.showStatistics = true
|
|
|
})
|
|
|
},
|
|
|
handleExport() {
|
|
|
+ if (!this.queryParams.tenantId) {
|
|
|
+ this.$message.warning('请先选择租户')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.exportLoading = true
|
|
|
exportAllArticles(this.queryParams).then(response => {
|
|
|
this.download(response.msg)
|