+
-
-
-
+
+
@@ -223,11 +222,14 @@ const resetQuery = () => {
/** 添加/修改操作 */
const formRef = ref()
-const openForm = (type: string, id?: number) => {
+const formVisible = ref(false)
+const openForm = async (type: string, id?: number) => {
if (type == 'create' && !queryParams.brand) {
message.error('请选择一个模具型号')
return
}
+ formVisible.value = true
+ await nextTick()
formRef.value.open(type, id, queryParams.brand)
}