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

@@ -2175,7 +2175,7 @@ import {
import { message, Modal } from "ant-design-vue";
import * as apitl from "../../api/index";
import { getTask } from "../../api/indexTaskadd";
import { editProj } from "../../api/indexTaskadd";
import { editProjDoc } from "../../api/indexTaskadd";
import { toDate } from "../../api/method";
import projSet from "../../components/Modals/projSet";
import { overview } from "../../api/indexProjStu";
@@ -4213,7 +4213,7 @@ export default {
state.docChecked = data;
state.switchopen = data;
// 更新开关状态
editProj({
editProjDoc({
attachSwitch: state.switchopen ? 1 : -1,
boeFlag: state.boeFlag,
category: state.category,
@@ -4275,7 +4275,7 @@ export default {
templateId: state.templateId || 0,
type: state.type,
});
editProj({
editProjDoc({
attachSwitch: state.switchopen ? 1 : -1,
attach: str,
boeFlag: state.boeFlag,
@@ -4548,7 +4548,7 @@ export default {
});
state.fileList.splice(index, 1);
let str = JSON.stringify(state.fileList);
editProj({
editProjDoc({
attach: str,
beginTime: state.tstartTime.slice(0, 10),
// beginTime:1668643200,