|
|
|
@ -102,14 +102,10 @@ |
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="auth" label="项目权限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ founderKeys[scope.row.founder] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="creater" label="创建人" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ permissionsKeys[scope.row.permissions] }} |
|
|
|
|
{{ permissionsKeys[scope.row.projectPermissions] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="createUser" label="创建人" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -202,10 +198,6 @@ import { mapState, mapActions } from "vuex"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
founderKeys: { |
|
|
|
|
0: "系统", |
|
|
|
|
1: "老师" |
|
|
|
|
}, |
|
|
|
|
permissionsKeys: { |
|
|
|
|
0: "练习", |
|
|
|
|
1: "考核", |
|
|
|
@ -392,7 +384,7 @@ export default { |
|
|
|
|
this.$get(`${this.api.projectListByCourseId}?cid=${this.form.curriculumId}&permissions=1&projectName=${this.keyword}`).then(res => { |
|
|
|
|
let { status, data } = res; |
|
|
|
|
if (status === 200 && data) { |
|
|
|
|
let list = data.records; |
|
|
|
|
let list = data; |
|
|
|
|
let result = []; |
|
|
|
|
list.map(n => { |
|
|
|
|
n.enable || result.push(n); |
|
|
|
|