|
|
@ -216,6 +216,19 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
if(type == "update"){ |
|
|
|
Itemarea.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'areaCode') { |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
}}) |
|
|
|
}else { |
|
|
|
Itemarea.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'areaCode') { |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|