mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
Merge branch 'master' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage
This commit is contained in:
@@ -225,6 +225,7 @@
|
|||||||
import { reactive, toRefs, ref } from "vue";
|
import { reactive, toRefs, ref } from "vue";
|
||||||
import * as api from "../../api/indexActivity";
|
import * as api from "../../api/indexActivity";
|
||||||
import * as apiTask from "../../api/indexTaskadd";
|
import * as apiTask from "../../api/indexTaskadd";
|
||||||
|
import { RouterEditTask } from "@/api/indexTask"
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { toDate } from "../../api/method.js";
|
import { toDate } from "../../api/method.js";
|
||||||
const rowSelection = ref({
|
const rowSelection = ref({
|
||||||
@@ -252,8 +253,13 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
isStudiscuss: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
//console.log("学习路径",props.isStudiscuss);
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
inputV1: "",
|
inputV1: "",
|
||||||
inputV2: "",
|
inputV2: "",
|
||||||
@@ -347,6 +353,25 @@ export default {
|
|||||||
state.textV2 = "";
|
state.textV2 = "";
|
||||||
state.time = "";
|
state.time = "";
|
||||||
ctx.emit("update:addactiveVisible", false);
|
ctx.emit("update:addactiveVisible", false);
|
||||||
|
console.log("学习路径",props.isStudiscuss);
|
||||||
|
if(props.isStudiscuss){
|
||||||
|
let editObj1 = {
|
||||||
|
chapterId:36,
|
||||||
|
courseId: 0,
|
||||||
|
duration: obj.activityDuration,
|
||||||
|
flag: true,
|
||||||
|
name: obj.activityName,
|
||||||
|
routerId: 92,
|
||||||
|
routerTaskId: 0,
|
||||||
|
type: 9,
|
||||||
|
}
|
||||||
|
RouterEditTask(editObj1).then(res => {
|
||||||
|
console.log("新增关卡任务成功",res);
|
||||||
|
closeDrawer();
|
||||||
|
}).catch(err => {
|
||||||
|
console.log("新增关卡任务失败",err);
|
||||||
|
})
|
||||||
|
}else{
|
||||||
apiTask
|
apiTask
|
||||||
.addTask({
|
.addTask({
|
||||||
courseId: 0,
|
courseId: 0,
|
||||||
@@ -368,6 +393,8 @@ export default {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log("创建失败",err);
|
console.log("创建失败",err);
|
||||||
|
|||||||
@@ -291,6 +291,7 @@ import { message } from "ant-design-vue";
|
|||||||
import * as api from "../../api/indexLiveBroadcast";
|
import * as api from "../../api/indexLiveBroadcast";
|
||||||
import * as apiTask from "../../api/indexTaskadd";
|
import * as apiTask from "../../api/indexTaskadd";
|
||||||
import { toDate } from "@/api/method";
|
import { toDate } from "@/api/method";
|
||||||
|
import { RouterEditTask } from "@/api/indexTask";
|
||||||
// import { useRouter } from "vue-router";
|
// import { useRouter } from "vue-router";
|
||||||
function getBase64(img, callback) {
|
function getBase64(img, callback) {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
@@ -329,6 +330,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
isStudy: {
|
||||||
|
type: Number,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
// const router = useRouter();
|
// const router = useRouter();
|
||||||
@@ -441,6 +446,7 @@ export default {
|
|||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:addliveVisible", false);
|
ctx.emit("update:addliveVisible", false);
|
||||||
|
console.log(props, "props");
|
||||||
state.radioV1 = "";
|
state.radioV1 = "";
|
||||||
state.playback = false;
|
state.playback = false;
|
||||||
state.inputV6 = "";
|
state.inputV6 = "";
|
||||||
@@ -565,7 +571,7 @@ export default {
|
|||||||
updateTime: "",
|
updateTime: "",
|
||||||
updateUser: 0,
|
updateUser: 0,
|
||||||
};
|
};
|
||||||
|
let name = state.inputV1;
|
||||||
api
|
api
|
||||||
.createLiveBroadcast(state.obj)
|
.createLiveBroadcast(state.obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -573,6 +579,27 @@ export default {
|
|||||||
// console.log(state, 2222);
|
// console.log(state, 2222);
|
||||||
message.success("提交成功");
|
message.success("提交成功");
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
|
|
||||||
|
if (props.isStudy == 1) {
|
||||||
|
console.log("hhhhh", name);
|
||||||
|
let objj = {
|
||||||
|
chapterId: 36,
|
||||||
|
courseId: 0,
|
||||||
|
duration: state.obj.liveDuration,
|
||||||
|
flag: true,
|
||||||
|
name: name,
|
||||||
|
routerId: 92,
|
||||||
|
routerTaskId: 0,
|
||||||
|
type: 6,
|
||||||
|
};
|
||||||
|
RouterEditTask(objj)
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res, 11111);
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err, 1111);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
apiTask
|
apiTask
|
||||||
.addTask({
|
.addTask({
|
||||||
courseId: 0,
|
courseId: 0,
|
||||||
@@ -595,6 +622,7 @@ export default {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err, 2222);
|
console.log(err, 2222);
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ import { reactive, toRefs, ref } from "vue";
|
|||||||
import * as api from "../../api/indexExternalChain";
|
import * as api from "../../api/indexExternalChain";
|
||||||
import * as apiTask from "../../api/indexTaskadd";
|
import * as apiTask from "../../api/indexTaskadd";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
|
import { RouterEditTask } from "@/api/indexTask";
|
||||||
const rowSelection = ref({
|
const rowSelection = ref({
|
||||||
checkStrictly: false,
|
checkStrictly: false,
|
||||||
onChange: (selectedRowKeys, selectedRows) => {
|
onChange: (selectedRowKeys, selectedRows) => {
|
||||||
@@ -106,6 +107,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
isStudy: {
|
||||||
|
type: Number,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
@@ -114,6 +119,7 @@ export default {
|
|||||||
textV1: "",
|
textV1: "",
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
console.log(props, 1111);
|
||||||
ctx.emit("update:addrefVisible", false);
|
ctx.emit("update:addrefVisible", false);
|
||||||
state.inputV2 = "";
|
state.inputV2 = "";
|
||||||
state.inputV1 = "";
|
state.inputV1 = "";
|
||||||
@@ -144,6 +150,25 @@ export default {
|
|||||||
message.success("提交成功");
|
message.success("提交成功");
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
|
|
||||||
|
if (props.isStudy == 1) {
|
||||||
|
let objj = {
|
||||||
|
chapterId: 36,
|
||||||
|
courseId: 0,
|
||||||
|
duration: 0,
|
||||||
|
flag: true,
|
||||||
|
name: obj.linkName,
|
||||||
|
routerId: 92,
|
||||||
|
routerTaskId: 0,
|
||||||
|
type: 7,
|
||||||
|
};
|
||||||
|
RouterEditTask(objj)
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res, 11111);
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err, 1111);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
apiTask
|
apiTask
|
||||||
.addTask({
|
.addTask({
|
||||||
courseId: 0,
|
courseId: 0,
|
||||||
@@ -156,15 +181,16 @@ export default {
|
|||||||
type: 7,
|
type: 7,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("调用项目添加接口后111", res.data);
|
console.log("调用项目添加接口后111", res.data, 11111);
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
//重新获取任务列表
|
//重新获取任务列表
|
||||||
// apiTask.getTask({ projectId: 28 });
|
// apiTask.getTask({ projectId: 28 });
|
||||||
// router.push("/taskadd");
|
// router.push("/taskadd");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err, 111111);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
@@ -534,7 +534,7 @@
|
|||||||
<!-- 添加活动侧弹窗 -->
|
<!-- 添加活动侧弹窗 -->
|
||||||
<div>
|
<div>
|
||||||
<add-active
|
<add-active
|
||||||
v-model:addactiveVisible="addactivevisible"
|
v-model:addactiveVisible="addactivevisible" v-model:isStudiscuss="isStudiscuss"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 添加活动侧弹窗 -->
|
<!-- 添加活动侧弹窗 -->
|
||||||
@@ -569,8 +569,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<!-- 添加直播抽屉 -->
|
<!-- 添加直播抽屉 -->
|
||||||
<add-live v-model:addliveVisible="addlivevisible" />
|
<add-live
|
||||||
<add-ref v-model:addrefVisible="addrefvisible" />
|
v-model:addliveVisible="addlivevisible"
|
||||||
|
v-model:isStudy="isStudy"
|
||||||
|
/>
|
||||||
|
<!-- 添加外链抽屉 -->
|
||||||
|
<add-ref v-model:addrefVisible="addrefvisible" v-model:isStudy="isStudy" />
|
||||||
<!-- 是否确认删除任务弹窗 -->
|
<!-- 是否确认删除任务弹窗 -->
|
||||||
<!-- 确认删除阶段弹窗 -->
|
<!-- 确认删除阶段弹窗 -->
|
||||||
<a-modal
|
<a-modal
|
||||||
@@ -843,6 +847,7 @@ export default {
|
|||||||
deleteModal: false, // 删除弹窗
|
deleteModal: false, // 删除弹窗
|
||||||
deleteID: "", // 要删除的任务的id
|
deleteID: "", // 要删除的任务的id
|
||||||
editID: "", // 要编辑的任务id
|
editID: "", // 要编辑的任务id
|
||||||
|
isStudy: 1,
|
||||||
cC: false,
|
cC: false,
|
||||||
value1: "",
|
value1: "",
|
||||||
value2: "",
|
value2: "",
|
||||||
@@ -870,6 +875,7 @@ export default {
|
|||||||
};
|
};
|
||||||
const showDrawerAddActive = () => {
|
const showDrawerAddActive = () => {
|
||||||
state.addactivevisible = true;
|
state.addactivevisible = true;
|
||||||
|
state.isStudiscuss = true;
|
||||||
};
|
};
|
||||||
//新建关卡
|
//新建关卡
|
||||||
const editChapter = () => {
|
const editChapter = () => {
|
||||||
@@ -1093,8 +1099,10 @@ export default {
|
|||||||
<span
|
<span
|
||||||
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
console.log("编辑id",e.record.routerTaskId);
|
||||||
|
console.log("编辑类型",e.record.lei);
|
||||||
state.editID = e.record.routerTaskId;
|
state.editID = e.record.routerTaskId;
|
||||||
state.addhomeworkvisible = true;
|
//state.addhomeworkvisible = true;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
@@ -1126,6 +1134,7 @@ export default {
|
|||||||
"直播",
|
"直播",
|
||||||
"外链",
|
"外链",
|
||||||
"讨论",
|
"讨论",
|
||||||
|
"活动",
|
||||||
"测评",
|
"测评",
|
||||||
"评估",
|
"评估",
|
||||||
"投票",
|
"投票",
|
||||||
|
|||||||
Reference in New Issue
Block a user