预告警查看报告
This commit is contained in:
@@ -234,16 +234,17 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
if (VITE_FLAG) {
|
// if (VITE_FLAG) {
|
||||||
return !(row.problemType == 2 || row.problemType == 4)
|
return !(row.problemType == 2 || row.problemType == 4)
|
||||||
}
|
// }
|
||||||
return true;
|
// return true;
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
if (row.problemType == 2) {
|
if (row.problemType == 2) {
|
||||||
const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||||
|
|
||||||
window.open(window.location.origin + '/#/previewFile?' + match[1])
|
// window.open(window.location.origin + '/#/previewFile?' + match[1])
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
} else {
|
} else {
|
||||||
if (row.problemPath == null) {
|
if (row.problemPath == null) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
@@ -251,7 +252,8 @@ const tableStore = new TableStore({
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
window.open(window.location.origin + '/#/previewFile?/' + row.problemPath)
|
//window.open(window.location.origin + '/#/previewFile?/' + row.problemPath)
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||||
// // window.open(res.data.url)
|
// // window.open(res.data.url)
|
||||||
// })
|
// })
|
||||||
|
|||||||
@@ -151,16 +151,17 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
if (VITE_FLAG) {
|
// if (VITE_FLAG) {
|
||||||
return row.problemType != 2;
|
return row.problemType != 2;
|
||||||
}
|
// }
|
||||||
return true;
|
// return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
click: row => {
|
click: row => {
|
||||||
const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||||
|
|
||||||
window.open(window.location.origin + '/#/previewFile?' + match[1])
|
// window.open(window.location.origin + '/#/previewFile?' + match[1])
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user