修改技术监督 问题
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user