fix:修改课程管理页面所有表格序号展示问题

This commit is contained in:
wyx
2022-12-07 12:27:01 +08:00
parent adc1a8e61d
commit bf34366018
2 changed files with 45 additions and 22 deletions

View File

@@ -959,6 +959,7 @@ export default defineComponent({
state.projectInfo.status = res.data.data.projectTemplateInfo.status;
state.projectInfo.picUrl = res.data.data.projectTemplateInfo.picUrl;
state.projectInfo.attach = res.data.data.projectTemplateInfo.attach;
state.projectInfo.category = res.data.data.projectTemplateInfo.category;
let data = res.data.data.stageList;
console.log("data=====", data);
for (let i in data) {
@@ -1131,8 +1132,28 @@ export default defineComponent({
console.log(file);
list = state.fileList;
console.log("list", list);
let str = JSON.stringify(list);
let str = JSON.stringify(fileList);
console.log("str", str);
console.table({
name: state.projectInfo.name,
category: state.projectInfo.category,
picUrl: state.projectInfo.picUrl,
beginTime: new Date(state.projectInfo.beginTime).getTime()/1000,
endTime: new Date(state.projectInfo.endTime).getTime()/1000,
manager: state.projectInfo.manager,
managerId: state.projectInfo.managerId || 0,
sourceBelongId: state.projectInfo.sourceBelongId,
level: state.projectInfo.level,
systemId: state.projectInfo.systemId,
boeFlag: state.projectInfo.boeFlag ? 1 : 0,
courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0,
notice: state.projectInfo.notice,
noticeFlag: state.projectInfo.noticeFlag,
projectTemplateId: Number(localStorage.getItem("projectTemplateId")),
remark: state.projectInfo.remark,
status: state.projectInfo.status,
attach: str,
})
//要编辑项目
api
.templateEdit({