diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 106069d1..63428b1f 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -13,11 +13,10 @@ import 'echarts-liquidfill' import 'echarts/lib/component/dataZoom' import { color, gradeColor3 } from './color' import { useConfig } from '@/stores/config' -import { saveAs } from 'file-saver' -import { t } from 'vxe-table' +const config = useConfig() // import { nextTick } from 'process' -const config = useConfig() + color[0] = config.layout.elementUiPrimary[0] const chartRef = ref() diff --git a/src/views/pqs/harmonicMonitoring/area/SteadyState/components/charts.vue b/src/views/pqs/harmonicMonitoring/area/SteadyState/components/charts.vue new file mode 100644 index 00000000..e04e9591 --- /dev/null +++ b/src/views/pqs/harmonicMonitoring/area/SteadyState/components/charts.vue @@ -0,0 +1,266 @@ + + + diff --git a/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue new file mode 100644 index 00000000..fe4227ba --- /dev/null +++ b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue @@ -0,0 +1,212 @@ + + + diff --git a/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue new file mode 100644 index 00000000..407d04b9 --- /dev/null +++ b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue @@ -0,0 +1,189 @@ + + diff --git a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/components/charts.vue b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/components/charts.vue index 5087132c..af2f5c60 100644 --- a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/components/charts.vue +++ b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/components/charts.vue @@ -1,10 +1,6 @@ diff --git a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue index 502e0758..95451349 100644 --- a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue @@ -1,105 +1,35 @@ @@ -33,39 +23,38 @@ - +
- + - + diff --git a/src/views/pqs/supervise/retire/terminal.vue b/src/views/pqs/supervise/retire/terminal.vue index d928b9ce..98902976 100644 --- a/src/views/pqs/supervise/retire/terminal.vue +++ b/src/views/pqs/supervise/retire/terminal.vue @@ -5,21 +5,13 @@ -
+
@@ -40,8 +33,8 @@ import { useRouter } from 'vue-router' import { useDictData } from '@/stores/dictData' import { getLoadTypeUserList } from '@/api/process-boot/interference' import { - getMointorPointTempLinedebugDetail, - setTempLinedebugLedgerSync + getMointorPointTempLinedebugDetail, + setTempLinedebugLedgerSync } from '@/api/supervision-boot/jointDebugList/index' import debug from './debug.vue' import { cancelMointorPointTempLinedebug } from '@/api/supervision-boot/jointDebugList/index' @@ -61,7 +54,7 @@ const tableStore = new TableStore({ publicHeight: 65, method: 'POST', column: [ - { + { width: '60', type: 'checkbox' }, @@ -267,21 +260,21 @@ const deleteEven = () => { } else { ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }) - .then(() => { - - deleteTempLineDebugReport(tableStore.table.selection.map(item => item.id)).then(res => { - ElMessage({ - type: 'success', - message: '删除成功!' - }) - tableStore.index() - }) - + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' }) + .then(() => { + + deleteTempLineDebugReport(tableStore.table.selection.map(item => item.id)).then(res => { + ElMessage({ + type: 'success', + message: '删除成功!' + }) + tableStore.index() + }) + + }) } } onMounted(() => { @@ -340,19 +333,19 @@ watch( } ) -const props = defineProps({id: {type: String, default: 'null'}}) +const props = defineProps({ id: { type: String, default: 'null' } }) watch(() => props.id, async (newValue, oldValue) => { - if (newValue === 'null') return // 直接返回,避免后续逻辑执行 - const 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,则不执行 - await getMointorPointTempLinedebugDetail({id:fullId}).then(res => { - if (res && res.code == 'A0000') { - debugForms.value.open('重新发起', res.data) - } - }) -}, {immediate: true}) + if (newValue === 'null') return // 直接返回,避免后续逻辑执行 + const 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,则不执行 + await getMointorPointTempLinedebugDetail({ id: fullId }).then(res => { + if (res && res.code == 'A0000') { + debugForms.value.open('重新发起', res.data) + } + }) +}, { immediate: true })