修改 表头下拉
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user