|
|
@ -63,6 +63,7 @@ |
|
|
|
:detailButtonIsShowAdd="true" |
|
|
|
:detailButtonIsShowEdit="true" |
|
|
|
:detailButtonIsShowDelete="true" |
|
|
|
@handleMainFefresh="handleMainFefresh" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:key="count" |
|
|
|
/> |
|
|
@ -170,9 +171,29 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let count = ref(0) |
|
|
|
const handleMainFefresh = async()=>{ |
|
|
|
count.value++; |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
if(type == "create"){ |
|
|
|
DismantlingMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if(item.field == 'workbillStatus'){ |
|
|
|
item.value = '2'; |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
DismantlingMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if(item.field == 'workbillStatus'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|