添加打包命令 区分 冀北还是其他地方的页面
This commit is contained in:
@@ -40,6 +40,7 @@ import { cancelFeedback } from '@/api/supervision-boot/leaflet'
|
||||
import { useAdminInfo } from '@/stores/adminInfo'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||
|
||||
import detail from '@/views/pqs/supervise/harmonicSurvey/test/detail.vue'
|
||||
const dictData = useDictData()
|
||||
|
||||
@@ -121,14 +122,78 @@ const tableStore = new TableStore({
|
||||
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
||||
}
|
||||
},
|
||||
// {
|
||||
// title: '报告',
|
||||
// minWidth: '150',
|
||||
// align: 'center',
|
||||
// render: 'buttons',
|
||||
// fixed: 'right',
|
||||
// buttons: [
|
||||
// {
|
||||
// name: 'productSetting',
|
||||
// title: '查看报告',
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-EditPen',
|
||||
// render: 'basicButton',
|
||||
// disabled: row => {
|
||||
// return !(row.problemType == 2 || row.problemType == 4)
|
||||
// },
|
||||
// click: row => {
|
||||
// if (row.problemType == 2) {
|
||||
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||
|
||||
// window.open(window.location.origin + '/#/previewFile?' + match[1])
|
||||
// } else {
|
||||
// if (row.problemPath == null) {
|
||||
// ElMessage({
|
||||
// message: '暂无报告!',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// } else {
|
||||
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||
// // window.open(res.data.url)
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// name: 'productSetting',
|
||||
// title: '报告下载',
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-EditPen',
|
||||
// render: 'basicButton',
|
||||
// disabled: row => {
|
||||
// return !(row.problemType == 2 || row.problemType == 4)
|
||||
// },
|
||||
// click: row => {
|
||||
// if (row.problemType == 2) {
|
||||
// window.open(row.filePath)
|
||||
// } else {
|
||||
// if (row.problemPath == null) {
|
||||
// ElMessage({
|
||||
// message: '暂无报告!',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// } else {
|
||||
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||
// window.open(res.data.url)
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
|
||||
{
|
||||
title: '报告',
|
||||
minWidth: '150',
|
||||
title: '操作',
|
||||
minWidth: '220',
|
||||
align: 'center',
|
||||
render: 'buttons',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
{
|
||||
name: 'productSetting',
|
||||
title: '查看报告',
|
||||
type: 'primary',
|
||||
@@ -149,9 +214,10 @@ const tableStore = new TableStore({
|
||||
type: 'warning'
|
||||
})
|
||||
} else {
|
||||
getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||
// window.open(res.data.url)
|
||||
})
|
||||
window.open(window.location.origin + '/#/previewFile?/' + row.problemPath)
|
||||
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||
// // window.open(res.data.url)
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -181,17 +247,7 @@ const tableStore = new TableStore({
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
minWidth: '220',
|
||||
align: 'center',
|
||||
render: 'buttons',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
},
|
||||
{
|
||||
name: 'edit',
|
||||
title: '查看信息',
|
||||
|
||||
Reference in New Issue
Block a user