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

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

@@ -487,7 +487,7 @@ const getProviteData = async () => {
}
// 入网评估报告
if (detailData.value.netInReport.length > 0) {
if (detailData.value.netInReport.length > 0 && detailData.value.netInReport[0] != null) {
netInReportList.value = []
detailData.value.netInReport.forEach((item: any) => {
getFileNamePath(item, 'netInReport')

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

View File

@@ -96,14 +96,24 @@ 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: [
// ]
// },
{
title: '报告',
minWidth: '150',
title: '操作',
minWidth: '220',
align: 'center',
render: 'buttons',
fixed: 'right',
buttons: [
{
{
name: 'productSetting',
title: '查看报告',
type: 'primary',
@@ -130,16 +140,7 @@ const tableStore = new TableStore({
click: row => {
window.open(row.filePath)
}
}
]
},
{
title: '操作',
minWidth: '220',
align: 'center',
render: 'buttons',
fixed: 'right',
buttons: [
},
{
name: 'productSetting',
title: '发送督办单',

View File

@@ -33,8 +33,9 @@ const tableStore = new TableStore({
isWebPaging: true,
paramsPOST: true,
column: [
{ field: 'substationName', title: '变电站名称', minWidth: 100 },
{ field: 'deptName', title: '所在地市', minWidth: 100 },
{ field: 'substationName', title: '变电站名称', minWidth: 100 },
{
field: 'dwLineList',
title: '电网侧监测点名称',

View File

@@ -1356,6 +1356,9 @@ watch(
}
)
onMounted(() => {
//初始化数据
resetForm()
console.log()
})
// 上传报告

View File

@@ -141,15 +141,17 @@ const tableStore = new TableStore({
buttons: [
{
name: 'productSetting',
title: '流程详情',
title: '查看报告',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
handleAudit(row.processInstanceId, row.historyInstanceId)
},
disabled: row => {
return !row.processInstanceId
return row.testRunReport == null || row.testRunReport.length == 0
},
click: row => {
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
window.open(window.location.origin + '/#/previewFile?' + row.testRunReport)
}
},
{
@@ -165,6 +167,20 @@ const tableStore = new TableStore({
return row.testRunReport == null || row.testRunReport.length == 0
}
},
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
handleAudit(row.processInstanceId, row.historyInstanceId)
},
disabled: row => {
return !row.processInstanceId
}
},
{
name: 'productSetting',
title: '重新试运行',
@@ -317,7 +333,7 @@ const startRunTest = () => {
// 下载报告
const downloadTheReport = (url: string) => {
getFileNameAndFilePath({ filePath: url }).then((res: any) => {
console.log(res.data.url,"res");
console.log(res.data.url, 'res')
const link = document.createElement('a')
link.href = res.data.url
link.download = res.data.name