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