server_commit

This commit is contained in:
zhaoxinyu
2024-09-23 16:41:19 +08:00
parent c4026668af
commit 875a84cfb2
6 changed files with 31 additions and 21 deletions
@@ -329,22 +329,20 @@ layout("/layouts/platform.html"){
window.open(loc() + '/doDownLoadZipByUnionId?zbId=' + this.pageForm.zbId + '&unionId=' + row.id)
}
},
downloadFilesByUnion(row) {
const result = this.validateHasFiles({unionId: row.id, zbId: this.pageForm.zbId})
if (!result) {
return
async downloadFilesByUnion(row) {
const result = await this.validateHasFiles({unionId: row.id, zbId: this.pageForm.zbId})
if (result) {
window.open(loc() + '/exportFilesByUnionId?zbId=' + this.pageForm.zbId + '&unionId=' + row.id)
}
window.open(loc() + '/exportFilesByUnionId?zbId=' + this.pageForm.zbId + '&unionId=' + row.id)
},
downloadByPeoId(row) {
window.open(loc() + '/exportByPeoId?peoId=' + row.id)
},
async downloadFilesByPeoId(row) {
const result = this.validateHasFiles({peoId: row.id})
if (!result) {
return
const result = await this.validateHasFiles({peoId: row.id})
if (result) {
window.open(loc() + '/exportFilesByPeoId?peoId=' + row.id)
}
window.open(loc() + '/exportFilesByPeoId?peoId=' + row.id)
},
async validateHasFiles(data) {
const res = await $.post('/platform/wakeshome/review/statistics/validateHasFiles', {