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