|
|
@@ -6,23 +6,49 @@
|
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
|
:inline="true" style="width:100%;">
|
|
|
<el-form-item label="" prop="queryParamsData1">
|
|
|
- <el-input
|
|
|
- maxLength="30"
|
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
- placeholder="请输入"
|
|
|
- style="width: 200px"
|
|
|
- />
|
|
|
+ <el-select v-model="queryParams.queryParamsData1" placeholder="学年" style="width: 140px">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in optionListA"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.disciplineName"
|
|
|
+ :value="dict.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="" prop="queryParamsData2">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="请选择" style="width: 200px">
|
|
|
+ <el-select v-model="queryParams.queryParamsData2" placeholder="学院单位" style="width: 140px">
|
|
|
<el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
+ v-for="dict in optionListB"
|
|
|
+ :key="dict.deptId"
|
|
|
+ :label="dict.deptName"
|
|
|
+ :value="dict.deptId"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="" prop="queryParamsData3">
|
|
|
+ <el-select v-model="queryParams.queryParamsData3" placeholder="考试类型" style="width: 160px">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in optionListC"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.examTypeName"
|
|
|
+ :value="dict.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="" prop="queryParamsData4">
|
|
|
+ <el-select v-model="queryParams.queryParamsData4" placeholder="是否补考" style="width: 140px">
|
|
|
+ <el-option label="补考" value="1"/>
|
|
|
+ <el-option label="不补考" value="2"/>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="" prop="queryParamsData5">
|
|
|
+ <el-input
|
|
|
+ maxLength="30"
|
|
|
+ v-model="queryParams.queryParamsData5"
|
|
|
+ placeholder="考试名称"
|
|
|
+ style="width: 200px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="" prop="state">
|
|
|
<el-date-picker
|
|
|
:clearable="false"
|
|
|
@@ -38,6 +64,9 @@
|
|
|
</el-form-item>
|
|
|
<p class="page-inquire-common-style-button" @click="handleQuery">查询</p>
|
|
|
<p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
|
+ <el-form-item style="float: right;">
|
|
|
+ <export-component :exportConfig="exportConfig"></export-component>
|
|
|
+ </el-form-item>
|
|
|
<p class="page-submit-common-style-button"
|
|
|
style="float: right;"
|
|
|
@click="tableButton(1)"
|
|
|
@@ -47,45 +76,27 @@
|
|
|
</div>
|
|
|
<div class="page-content-box">
|
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
|
- <el-table-column label="名称" prop="name" show-overflow-tooltip/>
|
|
|
- <el-table-column label="内容" prop="content" width="200" show-overflow-tooltip/>
|
|
|
- <el-table-column label="状态" prop="state" width="100" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-switch
|
|
|
- @click.native="tableButton(5,scope.row)"
|
|
|
- class="switch captcha-img"
|
|
|
- :active-value="true"
|
|
|
- :inactive-value="false"
|
|
|
- active-color="#0183FA"
|
|
|
- inactive-color="#999"
|
|
|
- v-model="scope.row.state"
|
|
|
- active-text="启用"
|
|
|
- inactive-text="停用"
|
|
|
- disabled
|
|
|
- ></el-switch>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="考试名称" prop="name" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="考试类型" prop="content" width="200" show-overflow-tooltip/>
|
|
|
<el-table-column label="创建时间" prop="createTime" width="200" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}至{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="200" show-overflow-tooltip v-if="tableButtonType">
|
|
|
+ <el-table-column label="参加人数" prop="content" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="合格人数" prop="content" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="缺考人数" prop="content" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="补考人数" prop="content" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="操作" width="200" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(2,scope.row)"
|
|
|
- v-hasPermiRouter="['demo:demo:detail']"
|
|
|
- >详情</p>
|
|
|
+ >查看成绩</p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(3,scope.row)"
|
|
|
- v-hasPermiRouter="['demo:demo:edit']"
|
|
|
- >编辑</p>
|
|
|
- <p class="table-button-p"
|
|
|
- @click="tableButton(4,scope.row)"
|
|
|
- v-hasPermiRouter="['demo:demo:del']"
|
|
|
- >删除</p>
|
|
|
+ >学习情况</p>
|
|
|
<p class="table-button-null"></p>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -108,11 +119,13 @@
|
|
|
//import { systemUserSelect } from "@/api/commonality/permission";
|
|
|
//import { getInfo } from "@/api/basicsModules/index";
|
|
|
//import addPage from "./addPage.vue";
|
|
|
+ import { examElExamTypeList,systemDeptCurrentDept, } from "@/api/safetyEducationExaminationNew/index";
|
|
|
+ import exportComponent from "@/components/exportComponent/exportComponent.vue";
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
- //components: {
|
|
|
- // addPage
|
|
|
- //},
|
|
|
+ components: {
|
|
|
+ exportComponent,
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
|
|
|
@@ -121,13 +134,18 @@
|
|
|
//页面遮罩
|
|
|
loading:false,
|
|
|
//下拉列表数据
|
|
|
- optionList:[{value:true,label:'启用'},{value:false,label:'停用'}],
|
|
|
+ optionListA:[],
|
|
|
+ optionListB:[],
|
|
|
+ optionListC:[],
|
|
|
//查询条件
|
|
|
queryParams:{
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
- queryParamsData1:"",
|
|
|
+ queryParamsData1:null,
|
|
|
queryParamsData2 :null,
|
|
|
+ queryParamsData3 :null,
|
|
|
+ queryParamsData4 :null,
|
|
|
+ queryParamsData5 :'',
|
|
|
},
|
|
|
//时间数据
|
|
|
dateRange:[],
|
|
|
@@ -137,6 +155,15 @@
|
|
|
total:0,
|
|
|
//组件传参
|
|
|
propsData:{},
|
|
|
+ //导出配置
|
|
|
+ exportConfig:{
|
|
|
+ api:'system/user/student/export', //导出接口地址
|
|
|
+ ids:'', //勾选导出,勾选的IDS
|
|
|
+ fileName:'导出文件名', //导出文件的命名
|
|
|
+ customKey:null, //自定义参数KEY(非必填)
|
|
|
+ customValue:null, //自定义参数VALUE(非必填)
|
|
|
+ screenData:{} //导出筛选数据(非必要-如有该参数组件会显示导出筛选数据按钮)
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
@@ -144,6 +171,8 @@
|
|
|
},
|
|
|
mounted () {
|
|
|
//this.getList();
|
|
|
+ this.examElExamTypeList();
|
|
|
+ this.systemDeptCurrentDept();
|
|
|
},
|
|
|
methods: {
|
|
|
//查询按钮
|
|
|
@@ -157,8 +186,11 @@
|
|
|
this.$set(this,'queryParams',{
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
- queryParamsData1:"",
|
|
|
+ queryParamsData1:null,
|
|
|
queryParamsData2 :null,
|
|
|
+ queryParamsData3 :null,
|
|
|
+ queryParamsData4 :null,
|
|
|
+ queryParamsData5 :'',
|
|
|
});
|
|
|
this.getList();
|
|
|
},
|
|
|
@@ -231,6 +263,18 @@
|
|
|
this.getList();
|
|
|
}
|
|
|
},
|
|
|
+ //查询全部考试类型
|
|
|
+ examElExamTypeList(){
|
|
|
+ examElExamTypeList({}).then(response => {
|
|
|
+ this.$set(this,'optionListC',response.data);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //学院列表
|
|
|
+ systemDeptCurrentDept(){
|
|
|
+ systemDeptCurrentDept({}).then(response => {
|
|
|
+ this.$set(this,'optionListB',response.data);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|