模板库添加各任务 待审核课程数据及各样式 面授课修改输入

This commit is contained in:
宋文超
2022-11-25 18:21:40 +08:00
parent c1f4c833cb
commit 36da16fc0d
17 changed files with 466 additions and 235 deletions

View File

@@ -167,7 +167,7 @@ export default {
key: "opt",
align: "center",
customRender: () => {
return <div>审核日志</div>;
return <div style="color:#387DF7">审核日志</div>;
},
},
],
@@ -198,7 +198,9 @@ export default {
console.log("获取已审核课程成功", res.data.data);
let result = res.data.data.rows;
state.total = res.data.data.total;
setTableData(result);
if (res.data.data.total > 0) {
setTableData(result);
}
})
.catch((err) => {
console.log("获取已审核课程失败", err);
@@ -210,13 +212,22 @@ export default {
data.map((item) => {
let obj = {
number: item.offcourseId,
name: item.name,
name: item.name || "- ",
type: item.type == 1 ? "线上" : "线下",
content: item.categoryId,
status: item.auditStatus == 2 ? "通过" : "拒绝",
status:
item.auditStatus == 0
? "未提交"
: item.auditStatus == 1
? "提交待审核"
: item.auditStatus == 2
? "通过"
: item.auditStatus == -1
? "拒绝"
: "-",
creater: item.createName,
time: "-",
msg: item.description,
msg: item.description || "-",
};
array.push(obj);
});