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