修改 表头下拉

This commit is contained in:
GGJ
2025-04-16 09:43:27 +08:00
parent 8bca1bfd38
commit 0063c53ec6
9 changed files with 146 additions and 80 deletions

View File

@@ -6,6 +6,7 @@ interface MonitoringPoint {
pid: string
lineIds: string[]
showCheckBox: boolean
comFlag: number
}
export const useMonitoringPoint = defineStore(
@@ -16,9 +17,13 @@ export const useMonitoringPoint = defineStore(
lineName: '',
pid: '',
lineIds: [],
showCheckBox: false
showCheckBox: false,
comFlag: 0
})
const setValue = (key: keyof Pick<MonitoringPoint, 'lineId' | 'lineName' | 'lineIds' | 'pid'>, val: any) => {
const setValue = (
key: keyof Pick<MonitoringPoint, 'lineId' | 'lineName' | 'lineIds' | 'pid' | 'comFlag'>,
val: any
) => {
state[key] = val
}
const setShowCheckBox = (val: boolean) => {