From 10208e6f2c2cf32e3e420651872e7d7c3b8c90bb Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Tue, 05 Mar 2024 11:46:47 +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 7e5194d..4c38f58 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