编辑
- 发布
- 撤销发布
();
const getMapValue = (value: any) => {
@@ -466,8 +464,8 @@ const saveupdate = async (row?: ActivityVO, type) => {
const res = await getActivity(_id);
const arr = await activityprocess({ activityId: _id });
Object.assign(form.value, res.data);
- form.value.status = type == 1 ? 2 : 0;
- const test = type == 1 ? '发布' : '撤销发布';
+ form.value.status = type == 0 ? 1 : 0;
+ const test = type == 0 ? '发布' : '撤销发布';
const _ids = row?.activityName || ids.value;
await proxy?.$modal.confirm('是否确认' + test + '活动名称 为' + _ids + '的数据项?').finally(() => (loading.value = false));
await updateActivity(form.value).finally(() => (buttonLoading.value = false));