mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
fix:删除12个抽屉的console
This commit is contained in:
@@ -222,28 +222,12 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
import { reactive, toRefs } from "vue";
|
||||
import * as api from "../../api/indexActivity";
|
||||
import * as apiTask from "../../api/indexTaskadd";
|
||||
import { RouterEditTask } from "@/api/indexTask";
|
||||
import { message } from "ant-design-vue";
|
||||
import dayjs from "dayjs";
|
||||
const rowSelection = ref({
|
||||
checkStrictly: false,
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
console.log(
|
||||
`selectedRowKeys: ${selectedRowKeys}`,
|
||||
"selectedRows: ",
|
||||
selectedRows
|
||||
);
|
||||
},
|
||||
onSelect: (record, selected, selectedRows) => {
|
||||
console.log(record, selected, selectedRows);
|
||||
},
|
||||
onSelectAll: (selected, selectedRows, changeRows) => {
|
||||
console.log(selected, selectedRows, changeRows);
|
||||
},
|
||||
});
|
||||
export default {
|
||||
name: "AddActive",
|
||||
// components: {
|
||||
@@ -299,7 +283,6 @@ export default {
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
//console.log("学习路径",props.isStudiscuss);
|
||||
const state = reactive({
|
||||
inputV1: "",
|
||||
inputV2: "",
|
||||
@@ -330,17 +313,9 @@ export default {
|
||||
localStorage.setItem("chapterId", props.isactive);
|
||||
};
|
||||
const queryActive = () => {
|
||||
console.log(
|
||||
"props.EditActiveId======",
|
||||
props.EditActiveId,
|
||||
props.chooseStageId,
|
||||
props.routerTaskId
|
||||
);
|
||||
api
|
||||
.getActivity(props.EditActiveId)
|
||||
.then((res) => {
|
||||
console.log("获取讨论信息成功", res.data.data.standardSettings);
|
||||
|
||||
//更新讨论信息
|
||||
state.inputV1 = res.data.data.activityName;
|
||||
state.textV1 = res.data.data.activityNotice;
|
||||
@@ -357,8 +332,7 @@ export default {
|
||||
dayjs(res.data.data.activityEndTime, "YYYY-MM-DD"),
|
||||
];
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取讨论信息失败", err);
|
||||
.catch(() => {
|
||||
});
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
@@ -382,11 +356,11 @@ export default {
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
type: 9,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("新增关卡任务成功", res);
|
||||
.then(() => {
|
||||
message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("新增关卡任务失败", err);
|
||||
.catch(() => {
|
||||
message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 2) {
|
||||
apiTask
|
||||
@@ -399,14 +373,14 @@ export default {
|
||||
stageId: props.chooseStageId,
|
||||
type: 9,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("更新任务列表成功", res);
|
||||
.then(() => {
|
||||
message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("更新任务列表失败", err);
|
||||
.catch(() => {
|
||||
message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("模板库更新更新任务列表");
|
||||
console.log("");
|
||||
}
|
||||
};
|
||||
//创建活动
|
||||
@@ -455,9 +429,10 @@ export default {
|
||||
closeDrawer();
|
||||
updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
message.success("更新成功");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("更新失败", err);
|
||||
.catch(() => {
|
||||
message.error("更新失败");
|
||||
});
|
||||
} else {
|
||||
//新建活动信息
|
||||
@@ -469,8 +444,8 @@ export default {
|
||||
updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("创建失败", err);
|
||||
.catch(() => {
|
||||
message.error("创建失败");
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -479,7 +454,6 @@ export default {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
rowSelection,
|
||||
cloradio1,
|
||||
updateActivityInfo,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user