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 @@
- 统计区域: 中国 统计时间: {{ Time[0] + '至' + Time[1] }} 统计次数: {{ frequency + '次' }}
+ 统计区域: {{ areaName }} 统计时间: {{ Time[0] + '至' + Time[1] }} 统计次数: {{ frequency + '次' }}
@@ -51,6 +51,7 @@ const areaData: any = ref([])
const levelData: any = ref([])
const shareData: any = ref([])
const Time: any = ref([])
+const areaName = ref('中国')
const tableHeaderAera = ref([
{ prop: 'areaName', label: '区域名称', width: '120px' },
@@ -58,6 +59,7 @@ const tableHeaderAera = ref([
{ prop: 'frequency', label: '电压暂降次数', sortable: true },
{ prop: 'sarfi9', label: 'SARFI-90', sortable: true }
])
+
const tableHeaderLevel = ref([
{ prop: 'voltageLevel', label: '电压等级(kV)', width: '150px' },
{ prop: 'monitoringPoints', label: '监测点数' },
@@ -66,9 +68,11 @@ const tableHeaderLevel = ref([
const frequency = ref(875)
-const info = (list: any, searchBeginTime: any, searchEndTime: any) => {
+const info = (list: any, searchBeginTime: any, searchEndTime: any,selectedAreaName: string) => {
Time.value = [searchBeginTime, searchEndTime]
frequency.value = list.areaStatistics.frequencySum
+ areaName.value = selectedAreaName // 更新区域名称
+
areaData.value = [
{
areaName: '总计',
diff --git a/src/views/pqs/voltageSags/Region/overview/index.vue b/src/views/pqs/voltageSags/Region/overview/index.vue
index b299be37..df94d138 100644
--- a/src/views/pqs/voltageSags/Region/overview/index.vue
+++ b/src/views/pqs/voltageSags/Region/overview/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -26,6 +26,7 @@ const echarts = ref()
const Picker = ref()
const table = ref()
const dictData = useDictData()
+const currentAreaName = ref('中国')
const tableStore = new TableStore({
url: '/event-boot/areaStatistics/getAreaCalculation',
@@ -35,7 +36,8 @@ const tableStore = new TableStore({
table.value.info(
tableStore.table.data,
tableStore.table.params.searchBeginTime,
- tableStore.table.params.searchEndTime
+ tableStore.table.params.searchEndTime,
+ currentAreaName.value // 传递当前区域名称
)
echarts.value.Processing(tableStore.table.data.areaStatistics)
echarts.value.Grade(tableStore.table.data.voltageStatistics)
@@ -54,6 +56,12 @@ onMounted(() => {
const handleClick = () => {
tableStore.index()
}
+
+
+const onAreaChange = (data) => {
+ currentAreaName.value = data.label
+}
+
const layout = mainHeight(123) as any
diff --git a/src/views/pqs/voltageSags/monitoringPoint/online/index.vue b/src/views/pqs/voltageSags/monitoringPoint/online/index.vue
index 1528eed6..6e7d9190 100644
--- a/src/views/pqs/voltageSags/monitoringPoint/online/index.vue
+++ b/src/views/pqs/voltageSags/monitoringPoint/online/index.vue
@@ -40,11 +40,14 @@ const navigationRef = ref()
const monitoringPoint = useMonitoringPoint()
const height = mainHeight(82)
const activeName = ref('1')
+
watch(
() => router.currentRoute.value.query.lineId,
(newLineId, oldLineId) => {
+
if (!newLineId) return
// 在这里处理 lineId 的变化
+
monitoringPoint.setValue('lineId', router.currentRoute.value.query.lineId)
monitoringPoint.setValue('lineName', router.currentRoute.value.query.lineName)
setTimeout(() => {
@@ -59,6 +62,7 @@ watch(
watch(
() => monitoringPoint.state.lineId,
() => {
+
// 刷新页面
isReload.value = true
nextTick(() => {
diff --git a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/index.vue b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/index.vue
index 42566977..6eef1581 100644
--- a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/index.vue
+++ b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/index.vue
@@ -47,6 +47,7 @@ const mapList: any = ref([])
const flag = ref(true)
const showTree = ref(false)
onMounted(() => {
+
const dom = document.getElementById('navigation-splitpanes')
if (dom) {
size.value = Math.round((180 / dom.offsetHeight) * 120)
@@ -65,16 +66,14 @@ onMounted(() => {
})
const handleNodeClick = (data: any, node: any) => {
- console.log("🚀 ~ handleNodeClick ~ data:", data)
+
if (data.level === 6) {
if (window.localStorage.getItem('BMAP_SECKEY') == null) {
flag.value = false
}
-
+
monitoringPoint.setValue('lineId', data.id)
monitoringPoint.setValue('lineName', data.alias)
-
-
}
setTimeout(() => {
flag.value = true
diff --git a/src/views/system/auth/role/popupForm.vue b/src/views/system/auth/role/popupForm.vue
index 83e9fd8a..04b9f0ff 100644
--- a/src/views/system/auth/role/popupForm.vue
+++ b/src/views/system/auth/role/popupForm.vue
@@ -3,13 +3,13 @@
-
+
-
+
-
+
diff --git a/src/views/system/auth/userList/popupEdit.vue b/src/views/system/auth/userList/popupEdit.vue
index edc4bd2b..23b646a3 100644
--- a/src/views/system/auth/userList/popupEdit.vue
+++ b/src/views/system/auth/userList/popupEdit.vue
@@ -2,7 +2,7 @@
-
+
@@ -211,7 +211,7 @@ const queryRole = () => {
}
queryRole()
const dialogVisible = ref(false)
-const title = ref('新增菜单')
+const title = ref('新增用户')
const open = (text: string, data?: anyObj) => {
title.value = text
dialogVisible.value = true