|
|
|
@ -86,8 +86,8 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="edit(scope.row,'0')">查看</el-button> |
|
|
|
|
<el-button v-if="scope.row.founder != 0" type="text" @click="edit(scope.row,'1')">编辑</el-button> |
|
|
|
|
<el-button type="text" @click="edit(scope.row,'0',queryData.founder)">查看</el-button> |
|
|
|
|
<el-button v-if="scope.row.founder != 0" type="text" @click="edit(scope.row,'1',queryData.founder)">编辑</el-button> |
|
|
|
|
<el-button v-if="scope.row.founder != 0" type="text" @click="handleDelete(scope.row.projectId)">删除</el-button> |
|
|
|
|
<el-button v-if="auth('复制')" type="text" @click="copyData(scope.row.projectId)">复制</el-button> |
|
|
|
|
<!-- <el-switch--> |
|
|
|
@ -147,16 +147,13 @@ export default { |
|
|
|
|
{ |
|
|
|
|
value: "", |
|
|
|
|
label: "不限" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: "练习" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: "考核" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 2, |
|
|
|
|
label: "竞赛" |
|
|
|
|
} |
|
|
|
@ -168,17 +165,15 @@ export default { |
|
|
|
|
}, |
|
|
|
|
founderList: [ |
|
|
|
|
{ |
|
|
|
|
value: 2, |
|
|
|
|
label: "全部" |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: "系统" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: "老师" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: 2, |
|
|
|
|
label: "全部" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
founderKeys: { |
|
|
|
|
0: "系统", |
|
|
|
@ -188,12 +183,10 @@ export default { |
|
|
|
|
{ |
|
|
|
|
value: "", |
|
|
|
|
label: "不限" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: "草稿箱" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: "已发布" |
|
|
|
|
} |
|
|
|
@ -243,6 +236,11 @@ export default { |
|
|
|
|
if(this.queryDataStatus.platformId) { |
|
|
|
|
this.queryData = this.queryDataStatus |
|
|
|
|
} |
|
|
|
|
if(this.$route.query.founder){ |
|
|
|
|
this.queryData.founder = +this.$route.query.founder |
|
|
|
|
}else{ |
|
|
|
|
this.queryData.founder = 2 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapActions("project", [ |
|
|
|
@ -293,7 +291,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
edit(row,item) { // 编辑 |
|
|
|
|
this.setSystemId(row.systemId); |
|
|
|
|
this.$router.push(`/project/add?projectId=${row.projectId}&item=${item}`); |
|
|
|
|
this.$router.push(`/project/add?projectId=${row.projectId}&item=${item}&founder=${this.queryData.founder}`); |
|
|
|
|
}, |
|
|
|
|
handleSelectionChange(val) { // 处理多选 |
|
|
|
|
this.multipleSelection = val; |
|
|
|
|