| | |
| | | </div> |
| | | <el-table v-loading="loading" :data="expertList"> |
| | | <el-table-column label="姓名" align="center" prop="name" /> |
| | | <el-table-column label="身份证号" align="center" prop="idcard" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="身份证号" align="center" prop="idcard" :show-overflow-tooltip="true" width="170" /> |
| | | <el-table-column label="性别" align="center" prop="sex" > |
| | | <template #default="scope"> |
| | | <span>{{scope.row.sex == 0 ? '男' : '女'}}</span> |
| | | <span>{{scope.row.sex == 1 ? '男' : scope.row.sex == 2?'女':'未知'}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="手机号" align="center" prop="phone" /> |
| | | <el-table-column label="实名认证照" align="center" prop="photo" > |
| | | <el-table-column label="实名认证照" align="center" prop="photo" width="120" > |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageIndex" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | |
| | | :visible.sync="learningDialog" |
| | | :modal-append-to-body="false" |
| | | :close-on-click-modal="false" |
| | | width="850px" |
| | | width="900px" |
| | | append-to-body |
| | | :before-close="handleCloseLearning"> |
| | | <learning-record ref="learnRef" ></learning-record> |
| | | <learning ref="learnRef" ></learning> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="考试记录" |
| | | :visible.sync="dialogVisible" |
| | | :modal-append-to-body="false" |
| | | :close-on-click-modal="false" |
| | | width="850px" |
| | | width="900px" |
| | | :before-close="handleClose"> |
| | | <exam-manage ref="examRef" ></exam-manage> |
| | | <examRecord ref="examRef" ></examRecord> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import examManage from '@/views/onlineEducation/examManage/index.vue' |
| | | import learningRecord from '@/views/onlineEducation/learnRecord/index.vue' |
| | | import examRecord from '../studentSupervision/compontents/examlRecord.vue' |
| | | import learning from '../studentSupervision/compontents/learningRecord.vue' |
| | | import { listStudent } from '@/api/onlineEducation/student' |
| | | import noPic from '@/assets/images/none.png' |
| | | import Cookies from 'js-cookie' |
| | | import { listPlat } from '@/api/onlineEducation/plat' |
| | | export default { |
| | | name: "nPeopleManage", |
| | | dicts: [], |
| | | components: {learningRecord,examManage}, |
| | | components: {learning,examRecord}, |
| | | data() { |
| | | return { |
| | | loading: false, |
| | |
| | | expertTypes: [], |
| | | expertList: [], |
| | | queryParams: { |
| | | pageIndex: 1, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | idcard: '', |
| | | name: '' |
| | |
| | | this.loading = true; |
| | | listStudent( this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.expertList = res.rows |
| | | this.expertList = res.rows.map(item => { |
| | | return { |
| | | ...item, |
| | | authPhoto: item.authPhoto !='-' ? item.authPhoto : noPic, |
| | | } |
| | | }) |
| | | this.total = res.total |
| | | this.loading = false; |
| | | } |
| | |
| | | }, |
| | | viewLearnRecord(data){ |
| | | this.learningDialog = true |
| | | Cookies.set('learnRecord',true) |
| | | setTimeout(() => { |
| | | this.$refs.learnRef.getList(data) |
| | | },10) |
| | | }, |
| | | viewExamRecord(data){ |
| | | this.dialogVisible = true |
| | | Cookies.set('examRecord',true) |
| | | setTimeout(() => { |
| | | this.$refs.examRef.getList(data) |
| | | },10) |
| | | |
| | | }, |
| | | handleClose() { |
| | | Cookies.remove('examRecord') |
| | | this.dialogVisible = false; |
| | | }, |
| | | handleCloseLearning() { |
| | | Cookies.remove('learnRecord') |
| | | this.learningDialog = false; |
| | | } |
| | | |