Browse Source

刷新

linshi20240813
王宇飞 6 months ago
parent
commit
c563305018
  1. 22
      src/views/qms/inspectionJob/index.vue

22
src/views/qms/inspectionJob/index.vue

@ -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
}

Loading…
Cancel
Save