diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index 9b35d5e5..c080f782 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -23,7 +23,7 @@ - + @@ -81,7 +81,7 @@ import { mainHeight } from '@/utils/layout' import { useDictData } from '@/stores/dictData' import { Search, RefreshLeft } from '@element-plus/icons-vue' import { defineProps } from 'vue' -const emit = defineEmits(['selectChange']) +const emit = defineEmits(['selectChange','areaChange']) const tableStore = inject('tableStore') as TableStore const tableHeader = ref() const datePickerRef = ref() @@ -132,11 +132,17 @@ const headerFormSecondStyleClose = { padding: '0' } +const onAreaChange = (data) => { + + emit('areaChange', {label: data.label}) +} + watch( () => tableStore?.table.params.deptIndex, newVal => { setTimeout(() => { areaRef.value && areaRef.value.change() + }, 0) } ) diff --git a/src/stores/monitoringPoint.ts b/src/stores/monitoringPoint.ts index 3c4c81fb..9ef8069d 100644 --- a/src/stores/monitoringPoint.ts +++ b/src/stores/monitoringPoint.ts @@ -25,6 +25,7 @@ export const useMonitoringPoint = defineStore( val: any ) => { state[key] = val + } const setShowCheckBox = (val: boolean) => { if (val && state.lineIds.length === 0) { @@ -35,6 +36,7 @@ export const useMonitoringPoint = defineStore( } state.showCheckBox = val } + return { state, setValue, setShowCheckBox } }, { diff --git a/src/views/pqs/harmonicMonitoring/area/powerAssessment/index.vue b/src/views/pqs/harmonicMonitoring/area/powerAssessment/index.vue index 2e506d5c..72567408 100644 --- a/src/views/pqs/harmonicMonitoring/area/powerAssessment/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/powerAssessment/index.vue @@ -121,8 +121,8 @@ :show-arrow="false" :offset="-0" :content="item1.name" - popper-class="atooltip" placement="bottom-start" + >
{{ item1.name }} diff --git a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue index 04bad8ea..141dbe58 100644 --- a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue +++ b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue @@ -18,6 +18,8 @@ placeholder="电站名称,终端名称,型号" v-model="tableStore.table.params.searchValue" clearable + maxlength="32" + show-word-limit > diff --git a/src/views/pqs/supervise/terminal/components/monitorLedgerTable.vue b/src/views/pqs/supervise/terminal/components/monitorLedgerTable.vue index 31a2e8ec..b71924af 100644 --- a/src/views/pqs/supervise/terminal/components/monitorLedgerTable.vue +++ b/src/views/pqs/supervise/terminal/components/monitorLedgerTable.vue @@ -18,6 +18,8 @@ placeholder="电站名称,终端编号,监测点名称、电压等级、终端厂家、干扰源类型" v-model="tableStore.table.params.searchValue" clearable + maxlength="32" + show-word-limit > diff --git a/src/views/pqs/voltageSags/Region/components/Tableabove.vue b/src/views/pqs/voltageSags/Region/components/Tableabove.vue index 34feee11..a37d004a 100644 --- a/src/views/pqs/voltageSags/Region/components/Tableabove.vue +++ b/src/views/pqs/voltageSags/Region/components/Tableabove.vue @@ -1,7 +1,7 @@