|
@@ -15,6 +15,20 @@
|
|
|
<el-form-item label="状态">
|
|
|
<StateSelect v-model="form.enable"></StateSelect>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="底照是否上传">
|
|
|
+ <el-select
|
|
|
+ v-model="form.photo"
|
|
|
+ placeholder="底照是否上传"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(val, key) in BOOLEAN_TYPE"
|
|
|
+ :key="key"
|
|
|
+ :value="key * 1"
|
|
|
+ :label="val"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="handleCurrentChange(0)"
|
|
|
>查询</el-button
|
|
@@ -35,9 +49,9 @@
|
|
|
<el-table-column width="200" label="证件号">
|
|
|
<span slot-scope="scope">{{ scope.row.identity }}</span>
|
|
|
</el-table-column>
|
|
|
- <el-table-column width="100" label="机构">
|
|
|
+ <!-- <el-table-column width="100" label="机构">
|
|
|
<span slot-scope="scope">{{ scope.row.orgName }}</span>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column width="120" label="状态">
|
|
|
<span slot-scope="scope">{{
|
|
|
scope.row.enable | zeroOneEnableDisableFilter
|
|
@@ -126,7 +140,7 @@ import {
|
|
|
resetStudentPassword,
|
|
|
} from "@/api/examwork-student";
|
|
|
import StudentManagementDialog from "./StudentManagementDialog";
|
|
|
-
|
|
|
+import { BOOLEAN_TYPE } from "@/constant/constants";
|
|
|
export default {
|
|
|
name: "StudentManagement",
|
|
|
data() {
|
|
@@ -135,6 +149,7 @@ export default {
|
|
|
name: "",
|
|
|
identity: "",
|
|
|
enable: null,
|
|
|
+ photo: null,
|
|
|
},
|
|
|
tableData: [],
|
|
|
currentPage: 1,
|
|
@@ -143,6 +158,7 @@ export default {
|
|
|
basePhotoDialogVisible: false,
|
|
|
selectedBasePhoto: null,
|
|
|
selectedStudent: {},
|
|
|
+ BOOLEAN_TYPE,
|
|
|
};
|
|
|
},
|
|
|
components: { StudentManagementDialog },
|
|
@@ -151,13 +167,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async searchForm() {
|
|
|
- const res = await searchStudents({
|
|
|
+ let datas = {
|
|
|
enable: this.form.enable,
|
|
|
identity: this.form.identity,
|
|
|
name: this.form.name,
|
|
|
pageNumber: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- });
|
|
|
+ };
|
|
|
+ if (this.form.photo !== null && this.form.photo !== "") {
|
|
|
+ datas.photo = !!this.form.photo;
|
|
|
+ }
|
|
|
+ const res = await searchStudents(datas);
|
|
|
this.tableData = res.data.data.records;
|
|
|
// this.tableData.forEach(
|
|
|
// (v) =>
|