fix: 提交审核页面逻辑修改

This commit is contained in:
若拙_233 2025-12-18 22:38:13 +08:00
parent f17c1678c8
commit 4110dca428
3 changed files with 1647 additions and 1288 deletions

View File

@ -23,6 +23,7 @@ export default {
getHistoryList: (params) => request.get('/app-valuations/', { params }),
valuations: (data = {}) => request.post('/app-valuations/', data),
deleteValuations: (params = {}) => request.delete(`/app-valuations/${params.id}`),
getValuation: (id) => request.get(`/app-valuations/${id}`),
// profile
updatePassword: (data = {}) => request.post('/base/update_password', data),
// users

File diff suppressed because it is too large Load Diff

View File

@ -141,34 +141,44 @@ const columns = [
NSpace,
{ size: 8, justify: 'center' },
{
default: () => [
h(
NButton,
{
text: true,
type: 'primary',
size: 'small',
onClick: (e) => {
e.stopPropagation()
handleDownloadReport(row)
},
},
{ default: () => '下载报告' }
),
h(
NButton,
{
text: true,
type: 'primary',
size: 'small',
onClick: (e) => {
e.stopPropagation()
handleDownloadCertificate(row)
},
},
{ default: () => '下载证书' }
),
],
default: () => {
let arr = []
if (row.report_download_urls.length) {
arr.push(
h(
NButton,
{
text: true,
type: 'primary',
size: 'small',
onClick: (e) => {
e.stopPropagation()
handleDownloadReport(row)
},
},
{ default: () => '下载报告' }
)
)
}
if (row.certificate_download_urls.length)
arr.push(
h(
NButton,
{
text: true,
type: 'primary',
size: 'small',
onClick: (e) => {
e.stopPropagation()
handleDownloadCertificate(row)
},
},
{ default: () => '下载证书' }
)
)
return arr
},
}
),
},