diff --git a/src/components/form/areaCascard/index.vue b/src/components/form/areaCascard/index.vue index 11c241f6..d7cd4744 100644 --- a/src/components/form/areaCascard/index.vue +++ b/src/components/form/areaCascard/index.vue @@ -5,7 +5,7 @@ :options='options' :props='isMultiple?baseMultipleCascader:baseCascader' @change='change' - clearable + collapse-tags collapse-tags-tooltip /> @@ -14,76 +14,19 @@ diff --git a/src/views/pqs/supervise/harmonicSurvey/index.vue b/src/views/pqs/supervise/harmonicSurvey/index.vue index 13b536ab..d8116b93 100644 --- a/src/views/pqs/supervise/harmonicSurvey/index.vue +++ b/src/views/pqs/supervise/harmonicSurvey/index.vue @@ -34,7 +34,8 @@ const layout = mainHeight(63) as any watch(() => route.query.t, async (newValue, oldValue) => { if (route.fullPath.includes('supervision/harmonicmanagement')) { let type = (route.query.type as string) || 'null' - if (type == 'null' || type == '1') { + if (type == 'null') { } + else if (type == '1') { activeName.value = '1' } else { activeName.value = '2' diff --git a/src/views/pqs/supervise/interfere/index.vue b/src/views/pqs/supervise/interfere/index.vue index 48ac7f38..0c974aba 100644 --- a/src/views/pqs/supervise/interfere/index.vue +++ b/src/views/pqs/supervise/interfere/index.vue @@ -2,21 +2,21 @@
- + - +
diff --git a/src/views/pqs/supervise/technology/components/earlyWarn.vue b/src/views/pqs/supervise/technology/components/earlyWarn.vue index 317c4fab..aa0f73ca 100644 --- a/src/views/pqs/supervise/technology/components/earlyWarn.vue +++ b/src/views/pqs/supervise/technology/components/earlyWarn.vue @@ -281,13 +281,23 @@ const deleteEven = () => { message: '请选择要删除的数据' }) } else { - deleteWarningLeaflet(tableStore.table.selection.map(item => item.id)).then(res => { - ElMessage({ - type: 'success', - message: '删除成功!' + + ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + deleteWarningLeaflet(tableStore.table.selection.map(item => item.id)).then(res => { + ElMessage({ + type: 'success', + message: '删除成功!' + }) + tableStore.index() }) - tableStore.index() + }) + } } /**取消流程操作*/ @@ -325,10 +335,10 @@ const handleAudit = (instanceId: any, historyInstanceId: any) => { const props = defineProps(['id','businessKey']) watch(() => props.id, async (newValue, oldValue) => { if (newValue === 'null') return // 直接返回,避免后续逻辑执行 - const fullId = newValue.split('@')[0] + let fullId = newValue.split('@')[0] let nowTime = Date.now() const routeTime = Number(newValue.split('@')[1]) - if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT) return // 路由时间超过500ms,则不执行 + if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT || fullId == 'null') return // 路由时间超过500ms,则不执行 await getById(fullId).then(res => { if (res && res.code == 'A0000') { if(props.businessKey == '3'){ diff --git a/src/views/pqs/supervise/technology/feedbackPopup.vue b/src/views/pqs/supervise/technology/feedbackPopup.vue index 8f429e78..f4e5e1b1 100644 --- a/src/views/pqs/supervise/technology/feedbackPopup.vue +++ b/src/views/pqs/supervise/technology/feedbackPopup.vue @@ -3,22 +3,12 @@ - + - + @@ -38,26 +28,12 @@ - + - + @@ -70,8 +46,8 @@ 取消 - 保存 - 提交审批 + 保存 + 提交审批 @@ -160,8 +136,8 @@ const open = async ( } form.value.id = id form.value.status = status - form.value.issueDetail = issueDetail - form.value.reformAdvice = reformAdvice + form.value.issueDetail = issueDetail || '' + form.value.reformAdvice = reformAdvice || '' reportFilePath.value = reportPath //判断附件是否存在,如果存在则回显出让用户可以点击下载 if (problemPath) { @@ -207,7 +183,7 @@ const close = () => { /** * 提交用户表单数据 */ -const submit =async (flag: boolean) => { +const submit = async (flag: boolean) => { loading.value = true if (flag) { let subForm = JSON.parse(JSON.stringify(form.value)) @@ -292,6 +268,7 @@ const uploadFileName = val => { .el-select { min-width: 180px; } + .elView { cursor: pointer; margin-right: 10px; diff --git a/src/views/pqs/supervise/technology/index.vue b/src/views/pqs/supervise/technology/index.vue index 17422e7e..89c3ea32 100644 --- a/src/views/pqs/supervise/technology/index.vue +++ b/src/views/pqs/supervise/technology/index.vue @@ -27,13 +27,14 @@ defineOptions({ name: 'supervision/supervision/manage' }) -const activeName: any = ref(null) +const activeName: any = ref('3') watch(() => route.query.t, async (newValue, oldValue) => { if (route.fullPath.includes('supervision/supervision/manage')) { let type = (route.query.type as string) || 'null' - if (type == 'null' || type == '0' || type == '3') { + if (type == 'null') { } + else if (type == '0' || type == '3') { activeName.value = '3' } else { activeName.value = '4' @@ -42,7 +43,7 @@ watch(() => route.query.t, async (newValue, oldValue) => { key.value = (route.query.key as string) || 'null' id.value = id.value + '@' + route.query.t } -}, {deep: true, immediate: true}) +}, { deep: true, immediate: true }) const layout = mainHeight(63) as any diff --git a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue index 26c3a6cc..1ac96dab 100644 --- a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue +++ b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue @@ -109,6 +109,8 @@ const tableStore = new TableStore({ name: '电网拓扑', code: 'Power_Network' } + + tableStore.table.params.runFlag = [] if(tableStore.table.params.runF!=null){ tableStore.table.params.runFlag = [tableStore.table.params.runF] } @@ -121,7 +123,7 @@ tableStore.table.params.runF=null tableStore.table.params.runFlag=[] tableStore.table.params.searchValue='' -const runFlagList = [{id:0,name:'运行'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}] +const runFlagList = [{id:0,name:'投运'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}] provide('tableStore', tableStore) diff --git a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue index 494e8dc8..a286f7fd 100644 --- a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue +++ b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue @@ -254,13 +254,23 @@ const deleteEven = () => { message: '请选择要删除的数据' }) } else { - deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => { - ElMessage({ - type: 'success', - message: '删除成功!' + + ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + + deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => { + ElMessage({ + type: 'success', + message: '删除成功!' + }) + tableStore.index() }) - tableStore.index() }) + } } /**取消流程操作*/ diff --git a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue index d5b69ee9..ca83b4e1 100644 --- a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue +++ b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue @@ -205,13 +205,22 @@ const deleteEven = () => { message: '请选择要删除的数据' }) } else { - deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => { - ElMessage({ - type: 'success', - message: '删除成功!' + ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + + deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => { + ElMessage({ + type: 'success', + message: '删除成功!' + }) + tableStore.index() }) - tableStore.index() }) + } } diff --git a/src/views/pqs/supervise/terminal/index.vue b/src/views/pqs/supervise/terminal/index.vue index b7a5765b..bef8d7b7 100644 --- a/src/views/pqs/supervise/terminal/index.vue +++ b/src/views/pqs/supervise/terminal/index.vue @@ -1,20 +1,20 @@ - - + + - + @@ -142,19 +110,19 @@ const tableStore = new TableStore({ source() } }, - { - name: 'edit', - title: '范围查看', - type: 'primary', + // { + // name: 'edit', + // title: '范围查看', + // type: 'primary', - icon: 'el-icon-Plus', - render: 'basicButton' - } + // icon: 'el-icon-Plus', + // render: 'basicButton' + // } ] } ], - loadCallback: () => {} + loadCallback: () => { } }) tableStore.table.params.searchValue = '' provide('tableStore', tableStore) @@ -169,7 +137,7 @@ onMounted(() => { }) // 启动关联分析 -const firing = () => {} +const firing = () => { } // 暂降源定位 const source = () => { queryEventDetailByAssId(form.value).then(res => { @@ -243,7 +211,8 @@ const positioningexport = () => { sheetName: 'Sheet1', type: 'xlsx', //导出文件类型 xlsx 和 csv useStyle: true, - data: dialogAnalysis.value, // 数据源 // 过滤那个字段导出 + download: false, + data: AnalysisData.value, // 数据源 // 过滤那个字段导出 columnFilterMethod: function (column, $columnIndex) { return !(column.$columnIndex === 0) } @@ -256,4 +225,6 @@ const positioningexport = () => { min-width: 128px; } } + + diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue index 632741a2..28fd9acd 100644 --- a/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue @@ -4,7 +4,7 @@ class="cn-operate-dialog" v-model="incomingDialogVisible" :title="title" - style="width: 415px; height: 300px" + style="width: 415px;" > diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue index 4d2d1deb..587c694b 100644 --- a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue @@ -1,6 +1,6 @@ @@ -30,8 +30,8 @@ const { query } = useRoute() onMounted(() => { governTotalContent.value.style.height = mainHeight().height - schemeContent.value.style.height = mainHeight(45).height - schemeContent.value.style.maxheight = mainHeight(45).height + schemeContent.value.style.height = mainHeight(65).height + schemeContent.value.style.maxheight = mainHeight(65).height schemeContent.value.style.overflowY = 'scroll' schemeContent.value.style.overflowX = 'hidden' }) diff --git a/src/views/pqs/voltageSags/sagGovern/scheme/index.vue b/src/views/pqs/voltageSags/sagGovern/scheme/index.vue index 5b0df796..b8a685a4 100644 --- a/src/views/pqs/voltageSags/sagGovern/scheme/index.vue +++ b/src/views/pqs/voltageSags/sagGovern/scheme/index.vue @@ -61,12 +61,12 @@ const tableStore = new TableStore({ method: 'POST', column: [ { title: '序号', type: 'seq', width: 80 }, - { title: '用户', field: 'userName', width: 160 }, - { title: '生产线名称', field: 'productLineName', width: 160 }, - { title: '期望回报(年)', field: 'payBackPeriod', width: 150 }, - { title: '数据时间范围', field: 'timeScope', width: 170 }, + { title: '用户', field: 'userName', minWidth: 160 }, + { title: '生产线名称', field: 'productLineName', minWidth: 160 }, + { title: '期望回报(年)', field: 'payBackPeriod', minWidth: 150 }, + { title: '数据时间范围', field: 'timeScope', minWidth: 170 }, { - title: '治理容量(kW)', field: 'governPower', width: 150, type: 'html', + title: '治理容量(kW)', field: 'governPower', minWidth: 150, type: 'html', formatter: (obj: any) => { const val = obj.row.governPower const id = obj.row.productLineId @@ -77,7 +77,7 @@ const tableStore = new TableStore({ title: '最佳方案', children: [ { - title: '方案名称', width: '110', field: 'schemeType', + title: '方案名称', minWidth: '110', field: 'schemeType', formatter: (obj: any) => { let temp switch (obj.row.schemeType) { @@ -97,13 +97,13 @@ const tableStore = new TableStore({ } }, { - title: '初期投资(万元)', width: '150', field: 'initialInvest', + title: '初期投资(万元)', minWidth: '150', field: 'initialInvest', formatter: (obj: any) => { - return Number(obj.row.schemeEquipment) + Number(obj.row.schemeMaintain) + return (Number(obj.row.schemeEquipment) + Number(obj.row.schemeMaintain)).toFixed(2) } }, - { title: '投资回收期(年)', width: '150', field: 'payBackYear' }, - { title: '治理效果(万元/年)', width: '150', field: 'governEffect' } + { title: '投资回收期(年)', minWidth: '150', field: 'payBackYear' }, + { title: '治理效果(万元/年)', minWidth: '150', field: 'governEffect' } ] }, { @@ -149,11 +149,11 @@ const tableStore = new TableStore({ if (tableStore.table.params.addr) { tableStore.table.params.addrStrOption = tableStore.table.params.addr.map(tempArray => tempArray.join('/')) } - for (let key in tableStore.table.params) { - if (tableStore.table.params[key] === '') { - delete tableStore.table.params[key] - } - } + // for (let key in tableStore.table.params) { + // if (tableStore.table.params[key] === '') { + // delete tableStore.table.params[key] + // } + // } } }) diff --git a/src/views/system/auth/menu/api.vue b/src/views/system/auth/menu/api.vue index 791a6251..b8aa07b0 100644 --- a/src/views/system/auth/menu/api.vue +++ b/src/views/system/auth/menu/api.vue @@ -45,7 +45,9 @@ const tableStore = new TableStore({ url: '/user-boot/function/getButtonById', publicHeight: 60, column: [ - { title: '普通接口/接口名称', field: 'name' }, + { title: '普通接口/接口名称', field: 'name', formatter: row => { + return row.cellValue == 1 ? '普通接口' : '公用接口' + } }, { title: '接口类型', field: 'type' }, { title: 'URL接口路径', field: 'path' }, {