| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> |
| | | <!-- <el-form-item label="用户姓名" prop="userName">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.userName"--> |
| | | <!-- placeholder="请输入用户姓名"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="身份证号" prop="idCard">--> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.idCard"--> |
| | | <!-- placeholder="请输入身份证号"--> |
| | | <!-- clearable--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item>--> |
| | | <!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>--> |
| | | <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-form>--> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="工种类型" prop="userName"> |
| | | <el-cascader |
| | | v-model="queryParams.operateTypeId " |
| | | :options="typeList" |
| | | style="width: 100%" |
| | | :props="{ expandTrigger: 'hover', value: 'id',label: 'name',emitPath: false,checkStrictly: true}"></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-upload" |
| | | size="mini" |
| | | @click="openUpload" |
| | | v-hasPermi="['system:experts:add']" |
| | | >导入</el-button> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | |
| | | {{ scope.row.sex == 0?'男':'女' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="身份证号" align="center" prop="code" /> |
| | | <el-table-column label="身份证号" align="center" prop="code"> |
| | | <template #default="scope"> |
| | | {{scope.row.code | peridcardtm}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="手机号" align="center" prop="mobilePhone" /> |
| | | <el-table-column label="最高学历" align="center" prop="eduLevel"> |
| | | <template #default="scope"> |
| | | {{getDegreeName(scope.row.eduLevel)}} |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageIndex" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getPage" |
| | | /> |
| | |
| | | import axios from "axios"; |
| | | import {getToken} from "@/utils/auth"; |
| | | import {delPeople} from "@/api/coalMine/people"; |
| | | import {getOperatePage} from "@/api/coalMine/operateType"; |
| | | |
| | | export default { |
| | | name: "cTeacherManage", |
| | |
| | | typeVisible: false, |
| | | workType: [], |
| | | dataList: [], |
| | | typeList: [], |
| | | total: 0, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | operateTypeId: 0, |
| | | isCm: '1' |
| | | } |
| | | }; |
| | |
| | | created() { |
| | | const t = this |
| | | t.getPage() |
| | | t.getList() |
| | | }, |
| | | methods: { |
| | | async getPage(){ |
| | |
| | | } |
| | | this.loading = false |
| | | }, |
| | | |
| | | async getList() { |
| | | this.loading = true; |
| | | const res = await getOperatePage({name: ''}) |
| | | if(res.code == 200){ |
| | | this.typeList = this.handleTree(res.data, "id"); |
| | | }else{ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res.msg |
| | | }); |
| | | } |
| | | this.loading = false; |
| | | }, |
| | | openDialog(data,type){ |
| | | this.$refs.teacherDialog.openDialog(data,type) |
| | | }, |
| | | openUpload(){ |
| | | this.$message.error('请联系开发人员规范导入') |
| | | }, |
| | | openWorkType(row){ |
| | | this.workType = row.operateTypes |
| | |
| | | |
| | | }, |
| | | handleQuery(){ |
| | | |
| | | this.queryParams.pageNum = 1 |
| | | this.getPage() |
| | | }, |
| | | resetQuery(){ |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | operateTypeId: 0, |
| | | isCm: 1 |
| | | } |
| | | this.getPage() |