From 2bc59d909462d305e9c71db0c8d54b70a26c43a4 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 05 三月 2024 15:15:35 +0800 Subject: [PATCH] 修改 --- src/views/commonMod/examApply/index.vue | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/src/views/commonMod/examApply/index.vue b/src/views/commonMod/examApply/index.vue index 6cc345d..14e1f92 100644 --- a/src/views/commonMod/examApply/index.vue +++ b/src/views/commonMod/examApply/index.vue @@ -43,6 +43,18 @@ @click="openExamApply({},'add')" v-hasPermi="['system:experts:add']" >考试计划申请</el-button> + <el-button + type="primary" + plain + size="mini" + @click="openExamRegist()" + >考试报名</el-button> + <el-button + type="primary" + plain + size="mini" + @click="openGrades()" + >成绩查询</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> @@ -124,20 +136,27 @@ @pagination="getList" /> <examApply-dialog ref="examApplyDialog" @getList="getList" :typeList="typeList"></examApply-dialog> + <exam-regist-dialog ref="examRegistDialog" @getList="getList" :typeList="typeList"></exam-regist-dialog> + <exam-grades-dialog ref="examGradesDialog" @getList="getList" :typeList="typeList"></exam-grades-dialog> </div> </template> <script> import examApplyDialog from "@/views/commonMod/examApply/components/examApplyDialog"; +import examRegistDialog from '@/views/commonMod/examApply/components/examRegistDialog.vue' +import examGradesDialog from '@/views/commonMod/examApply/components/examGradesDialog.vue' import {getOperatePage} from "@/api/coalMine/operateType"; import {delExamApply, getExamPage} from "@/api/commonMod/examApply"; import {getAreaList} from "@/api/coalMine/placeManage/train"; +import store from '@/store' export default { name: "examApply", dicts: [], components: { - examApplyDialog + examApplyDialog, + examRegistDialog, + examGradesDialog }, data() { return { @@ -244,6 +263,17 @@ openExamApply(data,type){ this.$refs.examApplyDialog.openDialog(data,type); }, + openExamRegist() { + const data = {} + const userInfo = store.getters && store.getters.userInfo + data.name = userInfo.nickName + data.sex = userInfo.sex == 0 ? '男':'女' + + this.$refs.examRegistDialog.openDialog(data); + }, + openGrades() { + this.$refs.examGradesDialog.openDialog(); + }, alpop(value){ alert(value) } -- Gitblit v1.9.2