|
@@ -9,6 +9,16 @@
|
|
|
<p @click="queryTypeClick(1)" :class="queryParams.isStart == 1?'check-p':''">已开课</p>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="学院" prop="deptId" label-width="50px">
|
|
|
+ <el-select style="width:200px;" v-model="queryParams.deptId" placeholder="请选择学院" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in deptList"
|
|
|
+ :key="dict.deptId"
|
|
|
+ :label="dict.deptName"
|
|
|
+ :value="dict.deptId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="关键字" prop="name">
|
|
|
<el-input
|
|
|
maxlength="10"
|
|
@@ -81,6 +91,7 @@
|
|
|
import addDialog from './addDialog.vue'
|
|
|
import infoDialog from './infoDialog.vue'
|
|
|
import { securitycourseList,securitycourseDel,securitycourseInfo } from '@/api/trainingCourse/index'
|
|
|
+ import { listDepartments } from '@/api/system/dept'
|
|
|
export default {
|
|
|
name: 'trainingCourse',
|
|
|
components: {
|
|
@@ -96,6 +107,7 @@
|
|
|
queryParams:{
|
|
|
isStart:null,
|
|
|
searchValue:"",
|
|
|
+ deptId:"",
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
},
|
|
@@ -108,6 +120,8 @@
|
|
|
//详情弹窗数据
|
|
|
infoDialogType:false,
|
|
|
infoDialogData:{},
|
|
|
+ //学院数据
|
|
|
+ deptList:[],
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -115,6 +129,7 @@
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getList();
|
|
|
+ this.filterDept();
|
|
|
},
|
|
|
methods:{
|
|
|
//列表状态切换
|
|
@@ -124,6 +139,12 @@
|
|
|
this.getList();
|
|
|
}
|
|
|
},
|
|
|
+ //获取学院
|
|
|
+ filterDept(){
|
|
|
+ listDepartments().then(response => {
|
|
|
+ this.deptList = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
//列表搜索
|
|
|
onSearch(){
|
|
|
this.$set(this.queryParams,'page',1);
|