feat:type判定

This commit is contained in:
songwc
2022-11-03 12:20:30 +08:00
parent 3d71e680ff
commit 892fe4ec56
2 changed files with 28 additions and 5 deletions

View File

@@ -621,7 +621,7 @@ export default {
projectId: 28,
projectTaskId: 0,
stageId: 3,
type: 0,
type: 6,
})
.then((res) => {
console.log("调用项目添加接口后", res.data);

View File

@@ -882,7 +882,30 @@ export default {
data.map((value) => {
let obj = {
id: value.projectTaskId,
lei: value.type == 0 ? "直播" : "-",
lei:
value.type == 1
? "在线"
: value.type == 2
? "面授"
: value.type == 3
? "案例"
: value.type == 4
? "作业"
: value.type == 5
? "考试"
: value.type == 6
? "直播"
: value.type == 7
? "外链"
: value.type == 8
? "讨论"
: value.type == 10
? "测评"
: value.type == 11
? "评估"
: value.type == 12
? "投票"
: "-",
creater: value.name == "" ? "管理者课程" : "-",
cretime: value.duration,
checked1: value.flag ? true : false,