|
@@ -114,7 +114,7 @@
|
|
size="small"
|
|
size="small"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
- @click="searchForm"
|
|
|
|
|
|
+ @click="resetPageAndSearchForm"
|
|
>查询
|
|
>查询
|
|
</el-button>
|
|
</el-button>
|
|
<el-button size="small" @click="resetSearchForm"> 重置 </el-button>
|
|
<el-button size="small" @click="resetSearchForm"> 重置 </el-button>
|
|
@@ -678,7 +678,7 @@
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column width="230" label="操作">
|
|
|
|
|
|
+ <el-table-column width="200" label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="scope.row.locked">锁定中,请稍后操作</div>
|
|
<div v-if="scope.row.locked">锁定中,请稍后操作</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
@@ -687,30 +687,11 @@
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
|
|
+ icon="el-icon-edit"
|
|
@click="openUpdateDialog(scope.row)"
|
|
@click="openUpdateDialog(scope.row)"
|
|
>
|
|
>
|
|
编辑
|
|
编辑
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
- v-if="
|
|
|
|
- null != scope.row.enable &&
|
|
|
|
- !scope.row.enable &&
|
|
|
|
- rolePrivileges.change_exam_student_availability
|
|
|
|
- "
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- plain
|
|
|
|
- @click="enableExamStudent(scope.row)"
|
|
|
|
- >启用
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- v-else-if="rolePrivileges.change_exam_student_availability"
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- plain
|
|
|
|
- @click="disableExamStudent(scope.row)"
|
|
|
|
- >禁用
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
|
<el-dropdown style="margin-left: 10px;">
|
|
<el-dropdown style="margin-left: 10px;">
|
|
<el-button type="primary" plain size="mini">
|
|
<el-button type="primary" plain size="mini">
|
|
@@ -737,6 +718,30 @@
|
|
查看照片
|
|
查看照片
|
|
</el-button>
|
|
</el-button>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="
|
|
|
|
+ null != scope.row.enable &&
|
|
|
|
+ !scope.row.enable &&
|
|
|
|
+ rolePrivileges.change_exam_student_availability
|
|
|
|
+ "
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ @click="enableExamStudent(scope.row)"
|
|
|
|
+ >启用
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-else-if="
|
|
|
|
+ rolePrivileges.change_exam_student_availability
|
|
|
|
+ "
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ @click="disableExamStudent(scope.row)"
|
|
|
|
+ >禁用
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
</div>
|
|
</div>
|
|
@@ -1161,6 +1166,10 @@ export default {
|
|
this.formSearch.identityNumber = "";
|
|
this.formSearch.identityNumber = "";
|
|
this.formSearch.examSite = "";
|
|
this.formSearch.examSite = "";
|
|
},
|
|
},
|
|
|
|
+ resetPageAndSearchForm() {
|
|
|
|
+ this.currentPage = 1;
|
|
|
|
+ this.searchForm();
|
|
|
|
+ },
|
|
//查询方法
|
|
//查询方法
|
|
searchForm() {
|
|
searchForm() {
|
|
var param = new URLSearchParams(this.formSearch);
|
|
var param = new URLSearchParams(this.formSearch);
|