修改技术监督 问题

This commit is contained in:
GGJ
2024-07-25 14:12:34 +08:00
parent 33814bf712
commit 5c324435c5
4 changed files with 18 additions and 8 deletions

View File

@@ -136,7 +136,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return !row.problemId
return !row.problemId || row.problemType != 1
},
click: async row => {
dialogVisible.value = true
@@ -248,10 +248,16 @@ const tableStore = new TableStore({
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.problemType != 2
return !(row.problemType == 2 || row.problemType == 4)
},
click: row => {
window.open(row.filePath)
if (row.problemType == 2) {
window.open(row.filePath)
} else {
getFileNameAndFilePath({ filePath: row.reportPath }).then(res => {
window.open(res.data.url)
})
}
}
},
{