This commit is contained in:
Paidax
2024-08-02 18:15:19 +08:00
parent efdedc3405
commit aa444a21ae
5 changed files with 101 additions and 7 deletions
@@ -83,7 +83,7 @@ layout("/layouts/platform.html"){
fixed="right">
<template scope="{row}">
<el-button size="mini" @click="openView(row)">查看</el-button>
<el-button v-if="canDownload()" size="mini" type="primary" @click="openView(row)">查看</el-button>
<el-button v-if="canDownload" size="mini" type="primary" @click="doDownLoad(row)">导出</el-button>
</template>
</el-table-column>
</el-table>
@@ -246,6 +246,9 @@ layout("/layouts/platform.html"){
'wakes-home-review': httpVueLoader('/components/wakeshome/review/ReviewResult.vue?v=' + moment(new Date()).unix()),
},
methods: {
doDownLoad(row){
window.open(loc() + '/doDownLoad?zbId=' + this.pageForm.zbId + '&unionId=' + row.id)
},
async getReviewResultNum(row) {
const res = await $.post(loc() + "/getReviewResultNum", {
zbId: this.userPageForm.zbId,
@@ -254,8 +257,6 @@ layout("/layouts/platform.html"){
this.reviewResultData = res.data
},
async openUserView(row) {
// const res = await $.post(loc() + "/getBzById", {peoId: row.id})
// this.zpxx = res.data
this.userDrawer = true
this.$nextTick(() => {
this.$refs.wakesHomeReview.findOne(row.id)
@@ -309,6 +310,12 @@ layout("/layouts/platform.html"){
this.doSearch()
},
},
computed: {
canDownload() {
const data = this.zbList.find(v=> v.id === this.pageForm.zbId)
return data.commentTarget===3 && data.unionIds
}
},
async created() {
await this.getZbList()
this.unions = await getUnions(null)