|
@ -194,7 +194,7 @@ const handleDelete = async (id: number) => { |
|
|
const handleEnable = async (id: number) => { |
|
|
const handleEnable = async (id: number) => { |
|
|
try { |
|
|
try { |
|
|
await InspectionProcessPageApi.enableInspectionTemplate(id) |
|
|
await InspectionProcessPageApi.enableInspectionTemplate(id) |
|
|
message.success(t('common.delSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
// 刷新列表 |
|
|
// 刷新列表 |
|
|
await getList() |
|
|
await getList() |
|
|
} catch {} |
|
|
} catch {} |
|
@ -202,7 +202,7 @@ const handleEnable = async (id: number) => { |
|
|
const handleDisable = async (id: number) => { |
|
|
const handleDisable = async (id: number) => { |
|
|
try { |
|
|
try { |
|
|
await InspectionProcessPageApi.disableInspectionTemplate(id) |
|
|
await InspectionProcessPageApi.disableInspectionTemplate(id) |
|
|
message.success(t('common.delSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
// 刷新列表 |
|
|
// 刷新列表 |
|
|
await getList() |
|
|
await getList() |
|
|
} catch {} |
|
|
} catch {} |
|
|