mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
feat:修改开课传参
This commit is contained in:
@@ -1599,7 +1599,8 @@ import {
|
||||
addStudent,
|
||||
studentExport,
|
||||
handleStudent,
|
||||
getMemberInfoApi, copyCoursePlan,
|
||||
getMemberInfoApi,
|
||||
copyCoursePlan,
|
||||
} from "@/api/indexCourse";
|
||||
import {
|
||||
traverseArr,
|
||||
@@ -1627,7 +1628,7 @@ import FJUpload from "@/components/common/FJUpload";
|
||||
import { updateStudent } from "@/api/indexProjStu";
|
||||
import { useStore } from "vuex";
|
||||
import DropDown from "@/components/common/DropDown";
|
||||
import {checkPer} from "@/utils/utils";
|
||||
import { checkPer } from "@/utils/utils";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
//列表表格
|
||||
@@ -3714,7 +3715,7 @@ export default defineComponent({
|
||||
applyFlag: state.checked1 ? 1 : 0,
|
||||
attach: state.attach,
|
||||
beginTime: dayjs(state.xjkkinputV3[0]).format("YYYY-MM-DD HH:mm:ss"),
|
||||
endTime: dayjs(state.xjkkinputV3[1]).format( "YYYY-MM-DD HH:mm:ss"),
|
||||
endTime: dayjs(state.xjkkinputV3[1]).format("YYYY-MM-DD HH:mm:ss"),
|
||||
completeType: type,
|
||||
evalFlag: Number(state.assessmentId) > 0 && state.checked4 ? 1 : 0,
|
||||
evaluateId: Number(state.assessmentId),
|
||||
@@ -3753,15 +3754,15 @@ export default defineComponent({
|
||||
const handelEditStu = async (itm) => {
|
||||
console.log("编辑开课", itm);
|
||||
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcoursePlanId = itm.id;
|
||||
|
||||
const item = await detailPlan({
|
||||
offcoursePlanId: Number(state.offcoursePlanId),
|
||||
}).then((res) => {
|
||||
if (res.data.code === 200) return res.data.data;
|
||||
});
|
||||
|
||||
console.log("测评", item);
|
||||
if (item.evaluateId) {
|
||||
api
|
||||
.queryAppraiseDetailById({ assessmentId: item.evaluateId })
|
||||
@@ -4009,9 +4010,12 @@ export default defineComponent({
|
||||
//确认复制课程 操作
|
||||
const handleDeleteExit = async () => {
|
||||
state.addLoading = true;
|
||||
|
||||
console.log(
|
||||
"开课的复制删除面授id及开课id",
|
||||
state.offcourseId,
|
||||
state.offcoursePlanId
|
||||
);
|
||||
if (state.del_hs) {
|
||||
console.log(11111111);
|
||||
if (state.offcourseId && state.offcoursePlanId && state.studentId) {
|
||||
console.log(111111);
|
||||
handleStudent({
|
||||
@@ -4116,7 +4120,7 @@ export default defineComponent({
|
||||
}
|
||||
};
|
||||
const handleDeleteKaike = (value) => {
|
||||
state.offcoursePlanId = value.offcoursePlanId;
|
||||
state.offcoursePlanId = value.id;
|
||||
|
||||
state.delete_hs = true;
|
||||
state.del_hs = true;
|
||||
@@ -4334,9 +4338,9 @@ export default defineComponent({
|
||||
state.copy_hs = true;
|
||||
};
|
||||
const handleCopyP = async (itm) => {
|
||||
console.log(itm);
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
console.log("开课复制", itm);
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcoursePlanId = itm.id;
|
||||
|
||||
state.delete_hs = true;
|
||||
state.copy_hs = true;
|
||||
@@ -4706,6 +4710,7 @@ export default defineComponent({
|
||||
|
||||
//二维码
|
||||
const qrcodeVisible = (record, type) => {
|
||||
console.log("点击签到信息", record);
|
||||
state.codevisible = true;
|
||||
state.codeInfo = {
|
||||
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
|
||||
@@ -4717,7 +4722,7 @@ export default defineComponent({
|
||||
record.offcourseId
|
||||
: process.env.VUE_APP_BASE_API +
|
||||
`/admin/student/studentSign?taskId=${
|
||||
record.offcoursePlanId
|
||||
record.id
|
||||
}&taskType=${2}&type=${3}`,
|
||||
};
|
||||
console.log("codeInfo", state.codeInfo);
|
||||
|
||||
Reference in New Issue
Block a user