|
|
@ -193,6 +193,12 @@ const resetQuery = () => { |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
|
const openForm = (type: string, id?: number) => { |
|
|
const openForm = (type: string, id?: number) => { |
|
|
|
|
|
if(fences.value.length === 0) { |
|
|
|
|
|
getAllFences() |
|
|
|
|
|
} |
|
|
|
|
|
if(gasTypes.value.length === 0) { |
|
|
|
|
|
getAllGasTypes() |
|
|
|
|
|
} |
|
|
formRef.value.open(type, id) |
|
|
formRef.value.open(type, id) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|