mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
--fix 面授课
This commit is contained in:
@@ -3619,7 +3619,7 @@ export default defineComponent({
|
||||
let type = t.concat(p);
|
||||
const postData = {
|
||||
offcourseId: state.offcourseId,
|
||||
offcoursePlanId: state.offcoursePlanId, //开课ID,不传代表新增
|
||||
id: state.offcoursePlanId, //开课ID,不传代表新增
|
||||
address: state.xjkkinputV2,
|
||||
applyFlag: state.checked1 ? 1 : 0,
|
||||
attach: state.attach,
|
||||
@@ -3660,17 +3660,10 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
//编辑开课
|
||||
const handelEditStu = async (itm) => {
|
||||
console.log(itm);
|
||||
const handelEditStu = async (item) => {
|
||||
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
|
||||
const item = await detailPlan({
|
||||
offcoursePlanId: Number(state.offcoursePlanId),
|
||||
}).then((res) => {
|
||||
if (res.data.code === 200) return res.data.data;
|
||||
});
|
||||
state.offcourseId = item.offcourseId;
|
||||
state.offcoursePlanId = item.id;
|
||||
|
||||
if (item.evaluateId) {
|
||||
api
|
||||
@@ -3692,12 +3685,9 @@ export default defineComponent({
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
console.log("res");
|
||||
console.log("获取面授课详情", item);
|
||||
|
||||
state.xjkkinputV2 = item.address;
|
||||
state.checked1 = item.applyFlag === 1 ? true : false;
|
||||
state.checked1 = item.applyFlag === 1;
|
||||
let arrss = item.attach.split(",");
|
||||
let str = "";
|
||||
for (let i = 0; i < arrss.length; i++) {
|
||||
@@ -3718,9 +3708,9 @@ export default defineComponent({
|
||||
(state.comLeave =
|
||||
item.completeType.split(",")[1] == "1" ? true : false),
|
||||
(state.checked4 = item.evalFlag === 1 ? true : false);
|
||||
state.assessmentId = String(item.evaluateId);
|
||||
state.EditTestId = String(item.testId);
|
||||
state.EditWorkId = String(item.homeWorkId);
|
||||
state.assessmentId =item.evaluateId || '';
|
||||
state.EditTestId = item.testId || '';
|
||||
state.EditWorkId = item.homeWorkId || ''
|
||||
state.xjkkinputV1 = item.name;
|
||||
if (item.signFlag === 1) {
|
||||
//是否允许未报名的签到:1是0否
|
||||
|
||||
Reference in New Issue
Block a user