zhouwenxuan
2024-03-05 10208e6f2c2cf32e3e420651872e7d7c3b8c90bb
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)
    }