添加打包命令 区分 冀北还是其他地方的页面

This commit is contained in:
GGJ
2024-08-08 11:04:59 +08:00
parent ac07f7ec17
commit f4f9c4c5b5
17 changed files with 208 additions and 64 deletions

View File

@@ -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: '查看信息',