|
@@ -169,7 +169,7 @@
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
const handlePublishDefenseNotice = async (id: number, effectState: number) => {
|
|
const handlePublishDefenseNotice = async (id: number, effectState: number) => {
|
|
|
- const message = effectState === ACTIVE_STATUS.ACTIVE ? '撤回成功' : '发布成功';
|
|
|
|
|
|
|
+ const message = effectState === ACTIVE_STATUS.ACTIVE ? '已取消发布' : '发布成功';
|
|
|
const effectStateStatus = effectState === ACTIVE_STATUS.ACTIVE ? ACTIVE_STATUS.NOT_EFFECTIVE : ACTIVE_STATUS.ACTIVE;
|
|
const effectStateStatus = effectState === ACTIVE_STATUS.ACTIVE ? ACTIVE_STATUS.NOT_EFFECTIVE : ACTIVE_STATUS.ACTIVE;
|
|
|
await publishDefenseNoticeItem({ id, effectState: effectStateStatus });
|
|
await publishDefenseNoticeItem({ id, effectState: effectStateStatus });
|
|
|
await getTableData();
|
|
await getTableData();
|