fix:更新调试项目、学习路径图共享文档编辑

This commit is contained in:
wyx
2023-02-16 16:55:55 +08:00
parent 3000423281
commit 5591a98e33
4 changed files with 17 additions and 12 deletions

View File

@@ -1374,7 +1374,7 @@ import { getRouterOverview } from "@/api/indexLearningPath";
import { handleLearnPath } from "../../api/index1";
import { GetRouterDetail } from "@/api/indexTask";
import * as api from "../../api/index1";
import { editRoutered } from "../../api/indexLearningPath";
import { editRouteredDoc } from "../../api/indexLearningPath";
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
import TableStudent from "@/components/student/TableStudent";
import { getStuPage, moveStudent } from "@/api/index1";
@@ -2255,12 +2255,12 @@ export default {
attachSwitch: data ? 1 : -1,
});
// 更新开关状态
editRoutered({
editRouteredDoc({
attach: JSON.stringify(state.fileList),
name: state.styTitle,
picUrl: state.picUrl,
remark: state.remark,
routerId: state.routerId,
id: state.routerId,
status: state.action,
attachSwitch: data ? 1 : -1,
})
@@ -2355,12 +2355,12 @@ export default {
let str = JSON.stringify(list);
console.log(str);
//要编辑路径图
editRoutered({
editRouteredDoc({
attach: str,
name: state.styTitle,
picUrl: state.picUrl,
remark: state.remark,
routerId: state.routerId,
id: state.routerId,
status: state.action,
attachSwitch: state.docChecked ? 1 : -1,
})
@@ -2480,12 +2480,12 @@ export default {
state.fileList.splice(index, 1);
let str = JSON.stringify(state.fileList);
//要编辑路径图
editRoutered({
editRouteredDoc({
attach: str,
name: state.styTitle,
picUrl: state.picUrl,
remark: state.remark,
routerId: state.routerId,
id: state.routerId,
status: state.action,
})
.then((res) => {