|
|
|
@ -17,7 +17,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-form label-width="80px"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-form-item label="创建人"> |
|
|
|
|
<el-select v-model="queryData.founder" clearable placeholder="请选择创建人" |
|
|
|
|
@change="initData"> |
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-form-item label="状态"> |
|
|
|
|
<el-select v-model="queryData.state" clearable placeholder="请选择状态" @change="initData"> |
|
|
|
|
<el-option v-for="(item,index) in stateList" :key="index" :label="item.label" |
|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-form-item label="权限"> |
|
|
|
|
<el-select v-model="queryData.permissions" placeholder="请选择" @change="initData"> |
|
|
|
|
<el-option |
|
|
|
@ -48,7 +48,8 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-input placeholder="请输入项目名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
|
<el-input placeholder="请输入项目名称" prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
@ -137,7 +138,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { mapState, mapActions } from 'vuex'; |
|
|
|
|
|
|
|
|
|
import Setting from "@/setting"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -153,20 +154,16 @@ export default { |
|
|
|
|
status: '', |
|
|
|
|
listData: [], |
|
|
|
|
total: 0, |
|
|
|
|
permissionsList: [ |
|
|
|
|
{ |
|
|
|
|
permissionsList: [{ |
|
|
|
|
value: '', |
|
|
|
|
label: '不限' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: '练习' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: '考核' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 2, |
|
|
|
|
label: '竞赛' |
|
|
|
|
} |
|
|
|
@ -176,12 +173,13 @@ export default { |
|
|
|
|
1: '考核', |
|
|
|
|
2: '竞赛' |
|
|
|
|
}, |
|
|
|
|
founderList: [ |
|
|
|
|
{ |
|
|
|
|
founderList: [{ |
|
|
|
|
value: 2, |
|
|
|
|
label: '全部' |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: '系统' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: '老师' |
|
|
|
|
} |
|
|
|
@ -190,16 +188,13 @@ export default { |
|
|
|
|
0: '系统', |
|
|
|
|
1: '老师' |
|
|
|
|
}, |
|
|
|
|
stateList: [ |
|
|
|
|
{ |
|
|
|
|
stateList: [{ |
|
|
|
|
value: '', |
|
|
|
|
label: '不限' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 0, |
|
|
|
|
label: '草稿箱' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
}, { |
|
|
|
|
value: 1, |
|
|
|
|
label: '已发布' |
|
|
|
|
} |
|
|
|
@ -226,6 +221,12 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
console.log(this.$route.query.founder) |
|
|
|
|
if (this.$route.query.founder && this.$route.query.founder != 'undefined'){ |
|
|
|
|
this.queryData.founder = +this.$route.query.founder |
|
|
|
|
}else{ |
|
|
|
|
this.queryData.founder = 2 |
|
|
|
|
} |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -253,10 +254,10 @@ export default { |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
add() { // 新增项目 |
|
|
|
|
this.$router.push(`/projectAdd?systemId=${this.systemId}`); |
|
|
|
|
this.$router.push(`/projectAdd?systemId=${this.systemId}&founder=${this.queryData.founder}&isDetails=${this.$route.query.show}`); |
|
|
|
|
}, |
|
|
|
|
edit(row) { // 编辑 |
|
|
|
|
this.$router.push(`/projectAdd?systemId=${this.systemId}&projectId=${row.projectId}`); |
|
|
|
|
this.$router.push(`/projectAdd?systemId=${this.systemId}&projectId=${row.projectId}&founder=${this.queryData.founder}&isDetails=${this.$route.query.show}`); |
|
|
|
|
}, |
|
|
|
|
handleSelectionChange(val) { // 处理多选 |
|
|
|
|
this.multipleSelection = val; |
|
|
|
|