|
|
@ -198,7 +198,13 @@ const buttonBaseClick = (val, item) => { |
|
|
|
handleExport() |
|
|
|
} else if (val == 'refresh') { |
|
|
|
// 刷新 |
|
|
|
getList() |
|
|
|
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
|
searchFormClick({ |
|
|
|
filters: tableObject.params.filters |
|
|
|
}) |
|
|
|
} else { |
|
|
|
getList() |
|
|
|
} |
|
|
|
} else if (val == 'filtrate') { |
|
|
|
// 筛选 |
|
|
|
} else { |
|
|
@ -320,7 +326,7 @@ const handleClose = async (id: number) => { |
|
|
|
await InspectionJobMainApi.closeInspectionJobMain(id) |
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
/** 发布按钮操作 */ |
|
|
@ -332,7 +338,7 @@ const handleRelease = async (id: number) => { |
|
|
|
await InspectionJobMainApi.releaseInspectionJobMain(id) |
|
|
|
message.success('发布成功!') |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
// 承接 |
|
|
@ -344,7 +350,7 @@ const handleAccept = async (id: number) => { |
|
|
|
await InspectionJobMainApi.acceptInspectionJobMain(id) |
|
|
|
message.success(t('common.acceptSuccess')) |
|
|
|
// 刷新列表(TB反馈,取消承接后刷新页面) |
|
|
|
// await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
// 放弃任务 |
|
|
@ -356,7 +362,7 @@ const handleAbandon = async (id: number) => { |
|
|
|
await InspectionJobMainApi.abandonInspectionJobMain(id) |
|
|
|
message.success(t('common.giveupSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
@ -400,7 +406,11 @@ const submitForm = async (formType, data) => { |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
formRef.value.formLoading = false |
|
|
|
// 刷新当前列表 |
|
|
|
getList() |
|
|
|
if (formType === 'create') { |
|
|
|
getList() |
|
|
|
}else{ |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
} finally { |
|
|
|
formRef.value.formLoading = false |
|
|
|
} |
|
|
|