From 6305a38e9d78191100f1d6224500ae548784a40a Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 28 Jul 2025 13:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tree/pqs/pointTree.vue | 2 +- .../area/getIntegrityData/index.vue | 11 +++--- .../runManage/runEvaluate/components/run.vue | 2 +- .../components/terminalOperation.vue | 3 +- src/views/system/auth/department/index.vue | 12 +++++-- .../system/auth/department/popupForm.vue | 11 +++++- src/views/system/auth/role/popupForm.vue | 34 +++++++++++++------ src/views/system/reportForms/form.vue | 11 +++++- 8 files changed, 61 insertions(+), 25 deletions(-) diff --git a/src/components/tree/pqs/pointTree.vue b/src/components/tree/pqs/pointTree.vue index e7da3168..83e779f6 100644 --- a/src/components/tree/pqs/pointTree.vue +++ b/src/components/tree/pqs/pointTree.vue @@ -63,7 +63,7 @@ const loadData = () => { form.statisticalType = classificationData.find((item: any) => item.id == form.statisticalType) let nodeKey = '' getTerminalTreeForFive(form).then(res => { - console.log('---',res) + //console.log('---',res) if (obj.code == 'Power_Network') { res.data = [ { diff --git a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue index 2b8a5b38..0e384ac9 100644 --- a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue @@ -217,6 +217,7 @@ const tableStore = new TableStore({ showPage: false, url: '/device-boot/LineIntegrityData/getLineIntegrityData', method: 'POST', + column: [ { title: formData.value.statisticalType.name, @@ -229,7 +230,7 @@ const tableStore = new TableStore({ return row.cellValue ? row.cellValue : '/' } }, - { + { title: formData.value.statisticalType.name, field: 'name', align: 'left', @@ -454,11 +455,11 @@ watch( () => tableStore.table, (val) => { if(val.data.length > 0){ - tableStore.table.column[0].visible = true - tableStore.table.column[1].visible = false + tableStore.table.column[0].visible = true + tableStore.table.column[1].visible = false }else{ - tableStore.table.column[0].visible = false - tableStore.table.column[1].visible = true + tableStore.table.column[0].visible = false + tableStore.table.column[1].visible = true } }, { diff --git a/src/views/pqs/runManage/runEvaluate/components/run.vue b/src/views/pqs/runManage/runEvaluate/components/run.vue index d1c89520..80ef4b57 100644 --- a/src/views/pqs/runManage/runEvaluate/components/run.vue +++ b/src/views/pqs/runManage/runEvaluate/components/run.vue @@ -75,6 +75,7 @@ const info = () => { clickRow(List.value[0], 0) setTime() }) + } const setTime = () => { timer.value = setInterval(() => { @@ -83,7 +84,6 @@ const setTime = () => { } else { rowColor.value += 1 } - clickRow(List.value[rowColor.value], rowColor.value) }, 1000 * 5) } diff --git a/src/views/pqs/runManage/runEvaluate/components/terminalOperation.vue b/src/views/pqs/runManage/runEvaluate/components/terminalOperation.vue index 1d148760..45da3c47 100644 --- a/src/views/pqs/runManage/runEvaluate/components/terminalOperation.vue +++ b/src/views/pqs/runManage/runEvaluate/components/terminalOperation.vue @@ -15,7 +15,6 @@ const height = mainHeight(330, 3) const chartRef = ref() const info = (item: any) => { let chart = echarts.init(chartRef.value as HTMLDivElement) - let everyDepartment = { stages: [ { name: '在线率', max: 100 }, @@ -24,7 +23,7 @@ const info = (item: any) => { ], scores: [item.onLineRate, item.passRate, item.integrityRate] } - + function contains(arr, obj) { var i = arr.length while (i--) { diff --git a/src/views/system/auth/department/index.vue b/src/views/system/auth/department/index.vue index 3acbe745..24596252 100644 --- a/src/views/system/auth/department/index.vue +++ b/src/views/system/auth/department/index.vue @@ -124,9 +124,15 @@ const tableStore = new TableStore({ }) }) } else { - deleteDept([row.id]).then(response => { - ElMessage.success('删除成功') - tableStore.index() + ElMessageBox.confirm('是否确认删除该部门', '提示', { + confirmButtonText: '确认删除', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteDept([row.id]).then(response => { + ElMessage.success('删除成功') + tableStore.index() + }) }) } } diff --git a/src/views/system/auth/department/popupForm.vue b/src/views/system/auth/department/popupForm.vue index fb5f1095..db6658b0 100644 --- a/src/views/system/auth/department/popupForm.vue +++ b/src/views/system/auth/department/popupForm.vue @@ -6,7 +6,7 @@ - + @@ -144,5 +144,14 @@ const submit = () => { }) } + +const handleInput = ( value: string) => { + // 过滤空格 + const filteredValue = value.replace(/\s/g, '') + if (filteredValue !== value) { + form.name = filteredValue + } +} + defineExpose({ open }) diff --git a/src/views/system/auth/role/popupForm.vue b/src/views/system/auth/role/popupForm.vue index d742233e..c7137bcd 100644 --- a/src/views/system/auth/role/popupForm.vue +++ b/src/views/system/auth/role/popupForm.vue @@ -1,9 +1,9 @@