mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
-- 任务
This commit is contained in:
@@ -157,7 +157,8 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-checkbox v-model:checked="completeLeave"
|
||||
@click="completeLeave = !completeLeave">学员请假后记为任务完成</a-checkbox>
|
||||
@click="completeLeave = !completeLeave">学员请假后记为任务完成
|
||||
</a-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -166,8 +167,10 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-checkbox v-model:checked="innerPersion"
|
||||
@click="innerPersion = !innerPersion">允许项目内人员临时到场参加</a-checkbox>
|
||||
<a-checkbox v-model:checked="outPersion" @click="outPersion = !outPersion">允许项目外人员临时到场参加</a-checkbox>
|
||||
@click="innerPersion = !innerPersion">允许项目内人员临时到场参加
|
||||
</a-checkbox>
|
||||
<a-checkbox v-model:checked="outPersion" @click="outPersion = !outPersion">允许项目外人员临时到场参加
|
||||
</a-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item2">
|
||||
@@ -246,7 +249,8 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-upload @change="handleChange" action="/manageApi/file/upload" v-model:file-list="fileList">
|
||||
<button class="xkbtn">上传附件</button></a-upload>
|
||||
<button class="xkbtn">上传附件</button>
|
||||
</a-upload>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -274,6 +278,7 @@ import dayjs from "dayjs";
|
||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||
// import { toDate } from "../../api/method";、
|
||||
import {addTempTask} from "../../api/indexTaskadd";
|
||||
|
||||
export default {
|
||||
name: "AddFaceteach",
|
||||
components: {
|
||||
@@ -518,15 +523,16 @@ export default {
|
||||
testId: state.EditTestId
|
||||
};
|
||||
console.log("obj============", obj, "6" + "9");
|
||||
console.log("222222222");
|
||||
|
||||
editPlan(obj)
|
||||
.then((res) => {
|
||||
editPlan(obj).then(async (res) => {
|
||||
message.destroy();
|
||||
message.sucsess(`添加成功`);
|
||||
updateTask(res);
|
||||
message.success(`添加成功`);
|
||||
await updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
closeDrawer();
|
||||
}).catch(() => {
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
message.destroy();
|
||||
message.error(`添加失败`);
|
||||
});
|
||||
@@ -537,7 +543,7 @@ export default {
|
||||
|
||||
//更新任务列表
|
||||
// 新增编辑或新增项目任务
|
||||
const updateTask = (res) => {
|
||||
const updateTask = async (res) => {
|
||||
console.log("props.isLevel=====", props.isLevel);
|
||||
if (props.isLevel == 1) {
|
||||
let editObj1 = {
|
||||
@@ -548,7 +554,7 @@ export default {
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
type: 2,
|
||||
};
|
||||
RouterEditTask(editObj1)
|
||||
await RouterEditTask(editObj1)
|
||||
.then(() => {
|
||||
//message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`);
|
||||
|
||||
@@ -569,7 +575,7 @@ export default {
|
||||
type: 2,
|
||||
};
|
||||
// 新增编辑或新增项目
|
||||
ProjectEditTask(editObj)
|
||||
await ProjectEditTask(editObj)
|
||||
.then(() => {
|
||||
message.success(`${props.EditFaceId ? "编辑" : "新增"}阶段任务成功`);
|
||||
|
||||
@@ -579,7 +585,7 @@ export default {
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("dddddddddddd33333333");
|
||||
addTempTask({
|
||||
await addTempTask({
|
||||
courseId: res.data.data.offcoursePlanId,
|
||||
name: res.data.data.name,
|
||||
duration: res.data.data.duration,
|
||||
|
||||
Reference in New Issue
Block a user