|
@@ -4,9 +4,9 @@
|
|
<!-- 正文信息 -->
|
|
<!-- 正文信息 -->
|
|
<div class="box-body">
|
|
<div class="box-body">
|
|
<el-form
|
|
<el-form
|
|
|
|
+ ref="formSearch"
|
|
:model="formSearch"
|
|
:model="formSearch"
|
|
:inline="true"
|
|
:inline="true"
|
|
- ref="formSearch"
|
|
|
|
label-width="70px"
|
|
label-width="70px"
|
|
>
|
|
>
|
|
<el-form-item v-if="isSuperAdmin" label="学校">
|
|
<el-form-item v-if="isSuperAdmin" label="学校">
|
|
@@ -18,50 +18,50 @@
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in rootOrgList"
|
|
v-for="item in rootOrgList"
|
|
|
|
+ :key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- :key="item.id"
|
|
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="姓名">
|
|
<el-form-item label="姓名">
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入姓名"
|
|
|
|
v-model="formSearch.name"
|
|
v-model="formSearch.name"
|
|
|
|
+ placeholder="请输入姓名"
|
|
class="input"
|
|
class="input"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="学号">
|
|
<el-form-item label="学号">
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入学号"
|
|
|
|
v-model="formSearch.studentCode"
|
|
v-model="formSearch.studentCode"
|
|
|
|
+ placeholder="请输入学号"
|
|
class="input"
|
|
class="input"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="身份证">
|
|
<el-form-item label="身份证">
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入身份证"
|
|
|
|
v-model="formSearch.identityNumber"
|
|
v-model="formSearch.identityNumber"
|
|
|
|
+ placeholder="请输入身份证"
|
|
class="input"
|
|
class="input"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="学习中心">
|
|
<el-form-item label="学习中心">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ v-model="formSearch.orgId"
|
|
class="input"
|
|
class="input"
|
|
:remote-method="getOrgList4Search"
|
|
:remote-method="getOrgList4Search"
|
|
:loading="getOrgList4SearchLoading"
|
|
:loading="getOrgList4SearchLoading"
|
|
remote
|
|
remote
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- v-model="formSearch.orgId"
|
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
:disabled="pureLC"
|
|
:disabled="pureLC"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in orgList4Search"
|
|
v-for="item in orgList4Search"
|
|
|
|
+ :key="item.id"
|
|
:label="item.name + ' - ' + item.code"
|
|
:label="item.name + ' - ' + item.code"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- :key="item.id"
|
|
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -153,7 +153,7 @@
|
|
>重置学习中心所有学生密码</el-button
|
|
>重置学习中心所有学生密码</el-button
|
|
>
|
|
>
|
|
|
|
|
|
- <div style="width: 100%; margin-bottom: 10px;"></div>
|
|
|
|
|
|
+ <div style="width: 100%; margin-bottom: 10px"></div>
|
|
|
|
|
|
<!-- 重置学习中心所有学生密码-->
|
|
<!-- 重置学习中心所有学生密码-->
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -162,34 +162,34 @@
|
|
:visible.sync="resetPasswordByOrgIdDialog"
|
|
:visible.sync="resetPasswordByOrgIdDialog"
|
|
>
|
|
>
|
|
<el-form
|
|
<el-form
|
|
|
|
+ ref="resetPasswordByOrgIdForm"
|
|
:model="resetPasswordByOrgIdForm"
|
|
:model="resetPasswordByOrgIdForm"
|
|
:inline="true"
|
|
:inline="true"
|
|
- ref="resetPasswordByOrgIdForm"
|
|
|
|
label-width="80px"
|
|
label-width="80px"
|
|
:rules="resetPasswordByOrgIdRules"
|
|
:rules="resetPasswordByOrgIdRules"
|
|
>
|
|
>
|
|
<el-form-item label="学习中心" prop="orgId">
|
|
<el-form-item label="学习中心" prop="orgId">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ v-model="resetPasswordByOrgIdForm.orgId"
|
|
class="input"
|
|
class="input"
|
|
:remote-method="getOrgList4RestPassword"
|
|
:remote-method="getOrgList4RestPassword"
|
|
:loading="getOrgList4RestPasswordLoading"
|
|
:loading="getOrgList4RestPasswordLoading"
|
|
remote
|
|
remote
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- v-model="resetPasswordByOrgIdForm.orgId"
|
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
:disabled="pureLC"
|
|
:disabled="pureLC"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in orgList4RestPassword"
|
|
v-for="item in orgList4RestPassword"
|
|
|
|
+ :key="item.id"
|
|
:label="item.name + ' - ' + item.code"
|
|
:label="item.name + ' - ' + item.code"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- :key="item.id"
|
|
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div style="text-align: center; margin-top: 20px;">
|
|
|
|
|
|
+ <div style="text-align: center; margin-top: 20px">
|
|
<el-button type="primary" @click="submitResetPasswordByOrgId"
|
|
<el-button type="primary" @click="submitResetPasswordByOrgId"
|
|
>确 定</el-button
|
|
>确 定</el-button
|
|
>
|
|
>
|
|
@@ -203,7 +203,7 @@
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
border
|
|
border
|
|
- style="width: 100%; text-align: center;"
|
|
|
|
|
|
+ style="width: 100%; text-align: center"
|
|
@selection-change="selectChange"
|
|
@selection-change="selectChange"
|
|
>
|
|
>
|
|
<el-table-column type="selection" width="50"></el-table-column>
|
|
<el-table-column type="selection" width="50"></el-table-column>
|
|
@@ -216,52 +216,52 @@
|
|
<el-table-column label="考生" width="100">
|
|
<el-table-column label="考生" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popover trigger="hover" placement="left">
|
|
<el-popover trigger="hover" placement="left">
|
|
- <div style="font-size: 18px; font-family: 新宋体;">
|
|
|
|
|
|
+ <div style="font-size: 18px; font-family: 新宋体">
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">姓名</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">姓名</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.name }}
|
|
{{ scope.row.name }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">身份证号</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">身份证号</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.privateIdentityNumber }}
|
|
{{ scope.row.privateIdentityNumber }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">学号</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">学号</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.studentCodeList }}
|
|
{{ scope.row.studentCodeList }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">学习中心名称</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">学习中心名称</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.orgName }}
|
|
{{ scope.row.orgName }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">学习中心编码</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">学习中心编码</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.orgCode }}
|
|
{{ scope.row.orgCode }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">手机号</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">手机号</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.phoneNumber }}
|
|
{{ scope.row.phoneNumber }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">安全手机号</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">安全手机号</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.securityPhone }}
|
|
{{ scope.row.securityPhone }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td style="color: green;">创建时间</td>
|
|
|
|
- <td style="color: purple; padding-left: 20px;">
|
|
|
|
|
|
+ <td style="color: green">创建时间</td>
|
|
|
|
+ <td style="color: purple; padding-left: 20px">
|
|
{{ scope.row.creationTime }}
|
|
{{ scope.row.creationTime }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -290,7 +290,7 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column width="168" label="更新时间" sortable>
|
|
<el-table-column width="168" label="更新时间" sortable>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button @click="gotoOperateLog(scope.row.id)" type="text">{{
|
|
|
|
|
|
+ <el-button type="text" @click="gotoOperateLog(scope.row.id)">{{
|
|
scope.row.updateTime
|
|
scope.row.updateTime
|
|
}}</el-button>
|
|
}}</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -304,7 +304,7 @@
|
|
content="启用"
|
|
content="启用"
|
|
placement="left"
|
|
placement="left"
|
|
>
|
|
>
|
|
- <i class="el-icon-success" style="color: green;"></i>
|
|
|
|
|
|
+ <i class="el-icon-success" style="color: green"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</span>
|
|
</span>
|
|
<span v-else>
|
|
<span v-else>
|
|
@@ -314,7 +314,7 @@
|
|
content="禁用"
|
|
content="禁用"
|
|
placement="left"
|
|
placement="left"
|
|
>
|
|
>
|
|
- <i class="el-icon-error" style="color: red;"></i>
|
|
|
|
|
|
+ <i class="el-icon-error" style="color: red"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
@@ -333,8 +333,8 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
null != scope.row.enable &&
|
|
null != scope.row.enable &&
|
|
- !scope.row.enable &&
|
|
|
|
- rolePrivileges.change_student_availability
|
|
|
|
|
|
+ !scope.row.enable &&
|
|
|
|
+ rolePrivileges.change_student_availability
|
|
"
|
|
"
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -352,7 +352,7 @@
|
|
>禁用</el-button
|
|
>禁用</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">
|
|
更多
|
|
更多
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -403,13 +403,13 @@
|
|
</el-table>
|
|
</el-table>
|
|
<div class="page pull-right">
|
|
<div class="page pull-right">
|
|
<el-pagination
|
|
<el-pagination
|
|
- @current-change="handleCurrentChange"
|
|
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
- @size-change="handleSizeChange"
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total"
|
|
:total="total"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ @size-change="handleSizeChange"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -422,7 +422,7 @@
|
|
<el-table
|
|
<el-table
|
|
:data="unbindStudentCodeData.tableData"
|
|
:data="unbindStudentCodeData.tableData"
|
|
border
|
|
border
|
|
- style="width: 100%; text-align: center;"
|
|
|
|
|
|
+ style="width: 100%; text-align: center"
|
|
>
|
|
>
|
|
<el-table-column prop="name" label="姓名" />
|
|
<el-table-column prop="name" label="姓名" />
|
|
<el-table-column prop="identityNumber" label="身份证" />
|
|
<el-table-column prop="identityNumber" label="身份证" />
|
|
@@ -432,8 +432,8 @@
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="danger"
|
|
type="danger"
|
|
- @click="unbindStudentCode(scope.row)"
|
|
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
|
|
+ @click="unbindStudentCode(scope.row)"
|
|
>解绑</el-button
|
|
>解绑</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -443,10 +443,10 @@
|
|
|
|
|
|
<!-- 考试记录 -->
|
|
<!-- 考试记录 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
|
|
+ v-loading="stuExamLoading"
|
|
title="学生考试记录"
|
|
title="学生考试记录"
|
|
width="60%"
|
|
width="60%"
|
|
:visible.sync="stuExamDialog"
|
|
:visible.sync="stuExamDialog"
|
|
- v-loading="stuExamLoading"
|
|
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
>
|
|
>
|
|
<el-form
|
|
<el-form
|
|
@@ -457,26 +457,27 @@
|
|
>
|
|
>
|
|
<el-form-item label="考试" class="pull-left">
|
|
<el-form-item label="考试" class="pull-left">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ v-model="stuExamSearch.examId"
|
|
class="input"
|
|
class="input"
|
|
:remote-method="queryExams4Search"
|
|
:remote-method="queryExams4Search"
|
|
remote
|
|
remote
|
|
:loading="queryExams4SearchLoading"
|
|
:loading="queryExams4SearchLoading"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- v-model="stuExamSearch.examId"
|
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@change="handleExamChange4Search"
|
|
@change="handleExamChange4Search"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in examList4Search"
|
|
v-for="item in examList4Search"
|
|
|
|
+ :key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- :key="item.id"
|
|
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="场次" class="pull-left">
|
|
<el-form-item label="场次" class="pull-left">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ v-model="stuExamSearch.examStageId"
|
|
clearable
|
|
clearable
|
|
:disabled="examStageDisabled4Search"
|
|
:disabled="examStageDisabled4Search"
|
|
class="input"
|
|
class="input"
|
|
@@ -484,14 +485,13 @@
|
|
remote
|
|
remote
|
|
:loading="queryExamStages4SearchLoading"
|
|
:loading="queryExamStages4SearchLoading"
|
|
:filterable="true"
|
|
:filterable="true"
|
|
- v-model="stuExamSearch.examStageId"
|
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in examStageList4Search"
|
|
v-for="item in examStageList4Search"
|
|
|
|
+ :key="item.id"
|
|
:label="item.stageOrder"
|
|
:label="item.stageOrder"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- :key="item.id"
|
|
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -509,7 +509,7 @@
|
|
<el-table
|
|
<el-table
|
|
:data="stuExamList"
|
|
:data="stuExamList"
|
|
border
|
|
border
|
|
- style="width: 100%; text-align: center;"
|
|
|
|
|
|
+ style="width: 100%; text-align: center"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="studentName"
|
|
prop="studentName"
|
|
@@ -544,16 +544,16 @@
|
|
</el-table>
|
|
</el-table>
|
|
<div class="page pull-right">
|
|
<div class="page pull-right">
|
|
<el-pagination
|
|
<el-pagination
|
|
- @current-change="stuExamCurChange"
|
|
|
|
:current-page="stuExamCurPage"
|
|
:current-page="stuExamCurPage"
|
|
:page-size="stuExamPageSize"
|
|
:page-size="stuExamPageSize"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
- @size-change="handleStuExamSizeChange"
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="stuExamTotal"
|
|
:total="stuExamTotal"
|
|
|
|
+ @current-change="stuExamCurChange"
|
|
|
|
+ @size-change="handleStuExamSizeChange"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</div>
|
|
</div>
|
|
- <div style="margin-top: 10px;"></div>
|
|
|
|
|
|
+ <div style="margin-top: 10px"></div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 导入照片弹窗 -->
|
|
<!-- 导入照片弹窗 -->
|
|
@@ -564,10 +564,10 @@
|
|
>
|
|
>
|
|
<el-form>
|
|
<el-form>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-form-item style="margin-left: 30px;">
|
|
|
|
|
|
+ <el-form-item style="margin-left: 30px">
|
|
<el-upload
|
|
<el-upload
|
|
- class="form_left"
|
|
|
|
ref="upload"
|
|
ref="upload"
|
|
|
|
+ class="form_left"
|
|
list-type="picture"
|
|
list-type="picture"
|
|
:action="uploadAction"
|
|
:action="uploadAction"
|
|
:headers="uploadHeaders"
|
|
:headers="uploadHeaders"
|
|
@@ -581,15 +581,15 @@
|
|
:multiple="false"
|
|
:multiple="false"
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- size="small"
|
|
|
|
slot="trigger"
|
|
slot="trigger"
|
|
|
|
+ size="small"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
>选择文件</el-button
|
|
>选择文件</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
size="small"
|
|
size="small"
|
|
- style="margin-left: 10px;"
|
|
|
|
|
|
+ style="margin-left: 10px"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-check"
|
|
icon="el-icon-check"
|
|
@click="submitUpload"
|
|
@click="submitUpload"
|
|
@@ -607,19 +607,19 @@
|
|
<!--查看照片-->
|
|
<!--查看照片-->
|
|
<el-dialog
|
|
<el-dialog
|
|
title="照片"
|
|
title="照片"
|
|
- @close="closePhotoDialog"
|
|
|
|
:visible.sync="photoDialog"
|
|
:visible.sync="photoDialog"
|
|
width="300px"
|
|
width="300px"
|
|
:center="true"
|
|
:center="true"
|
|
|
|
+ @close="closePhotoDialog"
|
|
>
|
|
>
|
|
<img :src="photo.url" height="100%" width="100%" />
|
|
<img :src="photo.url" height="100%" width="100%" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
|
+ v-loading="studentLog.loading"
|
|
title="学生日志"
|
|
title="学生日志"
|
|
width="60%"
|
|
width="60%"
|
|
:visible.sync="stuLogDialog"
|
|
:visible.sync="stuLogDialog"
|
|
- v-loading="studentLog.loading"
|
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
>
|
|
>
|
|
@@ -627,15 +627,15 @@
|
|
<el-form inline :model="studentLog.formSearch">
|
|
<el-form inline :model="studentLog.formSearch">
|
|
<el-form-item label="操作内容">
|
|
<el-form-item label="操作内容">
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入操作内容"
|
|
|
|
v-model="studentLog.formSearch.operate"
|
|
v-model="studentLog.formSearch.operate"
|
|
- style="width: 180px;"
|
|
|
|
|
|
+ placeholder="请输入操作内容"
|
|
|
|
+ style="width: 180px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="操作时间">
|
|
<el-form-item label="操作时间">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- class="input"
|
|
|
|
v-model="studentLog.timeRange"
|
|
v-model="studentLog.timeRange"
|
|
|
|
+ class="input"
|
|
type="datetimerange"
|
|
type="datetimerange"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
range-separator="至"
|
|
range-separator="至"
|
|
@@ -664,7 +664,7 @@
|
|
border
|
|
border
|
|
resizable
|
|
resizable
|
|
stripe
|
|
stripe
|
|
- style="width: 100%;"
|
|
|
|
|
|
+ style="width: 100%"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
width="200"
|
|
width="200"
|
|
@@ -686,13 +686,13 @@
|
|
<div class="page pull-right">
|
|
<div class="page pull-right">
|
|
<el-pagination
|
|
<el-pagination
|
|
v-if="studentLog.paginationShow"
|
|
v-if="studentLog.paginationShow"
|
|
- @current-change="loghandleCurrentChange"
|
|
|
|
:current-page="studentLog.currentPage"
|
|
:current-page="studentLog.currentPage"
|
|
:page-size="studentLog.pageSize"
|
|
:page-size="studentLog.pageSize"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
:page-sizes="[10, 20, 50, 100, 200, 300]"
|
|
- @size-change="loghandleSizeChange"
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="studentLog.total"
|
|
:total="studentLog.total"
|
|
|
|
+ @current-change="loghandleCurrentChange"
|
|
|
|
+ @size-change="loghandleSizeChange"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -706,7 +706,7 @@ import {
|
|
CORE_API,
|
|
CORE_API,
|
|
EXAM_WORK_API,
|
|
EXAM_WORK_API,
|
|
EXCHANGE_API,
|
|
EXCHANGE_API,
|
|
- REPORTS_API
|
|
|
|
|
|
+ REPORTS_API,
|
|
} from "@/constants/constants.js";
|
|
} from "@/constants/constants.js";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
|
|
|
|
@@ -719,7 +719,7 @@ export default {
|
|
reset_student_password: false,
|
|
reset_student_password: false,
|
|
change_student_availability: false,
|
|
change_student_availability: false,
|
|
unbind_student_code: false,
|
|
unbind_student_code: false,
|
|
- unbind_security_phone: false
|
|
|
|
|
|
+ unbind_security_phone: false,
|
|
},
|
|
},
|
|
rootOrgList: null,
|
|
rootOrgList: null,
|
|
stuExamLoading: false,
|
|
stuExamLoading: false,
|
|
@@ -734,7 +734,7 @@ export default {
|
|
getOrgList4RestPasswordLoading: false,
|
|
getOrgList4RestPasswordLoading: false,
|
|
resetPasswordByOrgIdDialog: false,
|
|
resetPasswordByOrgIdDialog: false,
|
|
resetPasswordByOrgIdForm: {
|
|
resetPasswordByOrgIdForm: {
|
|
- orgId: ""
|
|
|
|
|
|
+ orgId: "",
|
|
},
|
|
},
|
|
formSearch: {
|
|
formSearch: {
|
|
orgId: "",
|
|
orgId: "",
|
|
@@ -743,18 +743,18 @@ export default {
|
|
studentCode: "",
|
|
studentCode: "",
|
|
identityNumber: "",
|
|
identityNumber: "",
|
|
enable: "UNDEFINED",
|
|
enable: "UNDEFINED",
|
|
- hasPhoto: "UNDEFINED"
|
|
|
|
|
|
+ hasPhoto: "UNDEFINED",
|
|
},
|
|
},
|
|
selectedStuIds: [],
|
|
selectedStuIds: [],
|
|
statusList: [
|
|
statusList: [
|
|
{
|
|
{
|
|
value: true,
|
|
value: true,
|
|
- label: "启用"
|
|
|
|
|
|
+ label: "启用",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: false,
|
|
value: false,
|
|
- label: "禁用"
|
|
|
|
- }
|
|
|
|
|
|
+ label: "禁用",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
|
|
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -767,7 +767,7 @@ export default {
|
|
|
|
|
|
unbindStudentCodeDialog: false,
|
|
unbindStudentCodeDialog: false,
|
|
unbindStudentCodeData: {
|
|
unbindStudentCodeData: {
|
|
- tableData: []
|
|
|
|
|
|
+ tableData: [],
|
|
},
|
|
},
|
|
|
|
|
|
errMessages: [],
|
|
errMessages: [],
|
|
@@ -797,7 +797,7 @@ export default {
|
|
courseName: "",
|
|
courseName: "",
|
|
infoCollector: "",
|
|
infoCollector: "",
|
|
identityNumber: "",
|
|
identityNumber: "",
|
|
- identityNumberLike: false
|
|
|
|
|
|
+ identityNumberLike: false,
|
|
},
|
|
},
|
|
resetPasswordByOrgIdRules: {
|
|
resetPasswordByOrgIdRules: {
|
|
orgId: [
|
|
orgId: [
|
|
@@ -805,9 +805,9 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
message: "请选择学习中心",
|
|
message: "请选择学习中心",
|
|
- trigger: "change"
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ trigger: "change",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
examStageDisabled4Search: true,
|
|
examStageDisabled4Search: true,
|
|
queryExamStages4SearchLoading: false,
|
|
queryExamStages4SearchLoading: false,
|
|
@@ -820,17 +820,17 @@ export default {
|
|
operate: null,
|
|
operate: null,
|
|
studentId: "",
|
|
studentId: "",
|
|
startTime: null,
|
|
startTime: null,
|
|
- endTime: null
|
|
|
|
|
|
+ endTime: null,
|
|
},
|
|
},
|
|
tableData: [],
|
|
tableData: [],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- total: 10
|
|
|
|
- }
|
|
|
|
|
|
+ total: 10,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState({ user: state => state.user }),
|
|
|
|
|
|
+ ...mapState({ user: (state) => state.user }),
|
|
stuIds() {
|
|
stuIds() {
|
|
var stuIds = "";
|
|
var stuIds = "";
|
|
for (let stuId of this.selectedStuIds) {
|
|
for (let stuId of this.selectedStuIds) {
|
|
@@ -846,8 +846,15 @@ export default {
|
|
return this.selectedStuIds.length === 0;
|
|
return this.selectedStuIds.length === 0;
|
|
},
|
|
},
|
|
isSuperAdmin() {
|
|
isSuperAdmin() {
|
|
- return this.user.roleList.some(role => role.roleCode == "SUPER_ADMIN");
|
|
|
|
- }
|
|
|
|
|
|
+ return this.user.roleList.some((role) => role.roleCode == "SUPER_ADMIN");
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.init();
|
|
|
|
+ this.uploadHeaders = {
|
|
|
|
+ key: this.user.key,
|
|
|
|
+ token: this.user.token,
|
|
|
|
+ };
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
gotoOperateLog(studentId) {
|
|
gotoOperateLog(studentId) {
|
|
@@ -895,12 +902,12 @@ export default {
|
|
this.studentLog.pageSize;
|
|
this.studentLog.pageSize;
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(url, { params: this.studentLog.formSearch })
|
|
.get(url, { params: this.studentLog.formSearch })
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.studentLog.tableData = response.data.list;
|
|
this.studentLog.tableData = response.data.list;
|
|
this.studentLog.total = response.data.total;
|
|
this.studentLog.total = response.data.total;
|
|
this.studentLog.loading = false;
|
|
this.studentLog.loading = false;
|
|
|
|
|
|
- this.$nextTick(function() {
|
|
|
|
|
|
+ this.$nextTick(function () {
|
|
this.studentLog.paginationShow = true;
|
|
this.studentLog.paginationShow = true;
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -911,7 +918,7 @@ export default {
|
|
this.resetPasswordByOrgIdForm.orgId = null;
|
|
this.resetPasswordByOrgIdForm.orgId = null;
|
|
if (this.pureLC) {
|
|
if (this.pureLC) {
|
|
this.orgList4RestPassword = [
|
|
this.orgList4RestPassword = [
|
|
- { id: this.lc_id, name: this.lc_name, code: this.lc_code }
|
|
|
|
|
|
+ { id: this.lc_id, name: this.lc_name, code: this.lc_code },
|
|
];
|
|
];
|
|
this.resetPasswordByOrgIdForm.orgId = this.lc_id;
|
|
this.resetPasswordByOrgIdForm.orgId = this.lc_id;
|
|
} else {
|
|
} else {
|
|
@@ -920,17 +927,17 @@ export default {
|
|
this.resetPasswordByOrgIdDialog = true;
|
|
this.resetPasswordByOrgIdDialog = true;
|
|
},
|
|
},
|
|
submitResetPasswordByOrgId() {
|
|
submitResetPasswordByOrgId() {
|
|
- this.$refs.resetPasswordByOrgIdForm.validate(valid => {
|
|
|
|
|
|
+ this.$refs.resetPasswordByOrgIdForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
var url =
|
|
var url =
|
|
CORE_API +
|
|
CORE_API +
|
|
"/student/resetPasswordByOrgId/" +
|
|
"/student/resetPasswordByOrgId/" +
|
|
this.resetPasswordByOrgIdForm.orgId;
|
|
this.resetPasswordByOrgIdForm.orgId;
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.put(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "重置密码成功"
|
|
|
|
|
|
+ message: "重置密码成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
this.resetPasswordByOrgIdDialog = false;
|
|
this.resetPasswordByOrgIdDialog = false;
|
|
@@ -953,11 +960,11 @@ export default {
|
|
orgName;
|
|
orgName;
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(url)
|
|
.get(url)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.getOrgList4SearchLoading = false;
|
|
this.getOrgList4SearchLoading = false;
|
|
this.orgList4Search = response.data;
|
|
this.orgList4Search = response.data;
|
|
})
|
|
})
|
|
- .catch(response => {
|
|
|
|
|
|
+ .catch((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.getOrgList4SearchLoading = false;
|
|
this.getOrgList4SearchLoading = false;
|
|
});
|
|
});
|
|
@@ -972,11 +979,11 @@ export default {
|
|
orgName;
|
|
orgName;
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(url)
|
|
.get(url)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
this.orgList4RestPassword = response.data;
|
|
this.orgList4RestPassword = response.data;
|
|
})
|
|
})
|
|
- .catch(response => {
|
|
|
|
|
|
+ .catch((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
});
|
|
});
|
|
@@ -991,7 +998,7 @@ export default {
|
|
}
|
|
}
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(EXAM_WORK_API + "/exam/queryByNameLike?enable=true&name=" + name)
|
|
.get(EXAM_WORK_API + "/exam/queryByNameLike?enable=true&name=" + name)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
if ("search" == where) {
|
|
if ("search" == where) {
|
|
this.queryExams4SearchLoading = false;
|
|
this.queryExams4SearchLoading = false;
|
|
this.examList4Search = response.data;
|
|
this.examList4Search = response.data;
|
|
@@ -1030,12 +1037,12 @@ export default {
|
|
param;
|
|
param;
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(url)
|
|
.get(url)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.stuExamList = response.data.list;
|
|
this.stuExamList = response.data.list;
|
|
this.stuExamTotal = response.data.total;
|
|
this.stuExamTotal = response.data.total;
|
|
this.stuExamLoading = false;
|
|
this.stuExamLoading = false;
|
|
})
|
|
})
|
|
- .catch(function(response) {
|
|
|
|
|
|
+ .catch(function (response) {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.stuExamLoading = false;
|
|
this.stuExamLoading = false;
|
|
});
|
|
});
|
|
@@ -1060,7 +1067,7 @@ export default {
|
|
this.$notify({
|
|
this.$notify({
|
|
showClose: true,
|
|
showClose: true,
|
|
message: "未上传照片",
|
|
message: "未上传照片",
|
|
- type: "error"
|
|
|
|
|
|
+ type: "error",
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1109,7 +1116,7 @@ export default {
|
|
this.pageSize +
|
|
this.pageSize +
|
|
"?" +
|
|
"?" +
|
|
param;
|
|
param;
|
|
- this.$httpWithMsg.get(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.get(url).then((response) => {
|
|
this.tableData = response.data.list;
|
|
this.tableData = response.data.list;
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
});
|
|
});
|
|
@@ -1133,7 +1140,7 @@ export default {
|
|
if (this.stuIds.length == 0) {
|
|
if (this.stuIds.length == 0) {
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "warning",
|
|
type: "warning",
|
|
- message: "请选择学生"
|
|
|
|
|
|
+ message: "请选择学生",
|
|
});
|
|
});
|
|
return "";
|
|
return "";
|
|
} else {
|
|
} else {
|
|
@@ -1148,7 +1155,7 @@ export default {
|
|
studentCode: cur,
|
|
studentCode: cur,
|
|
rootOrgId: row.rootOrgId,
|
|
rootOrgId: row.rootOrgId,
|
|
name: row.name,
|
|
name: row.name,
|
|
- identityNumber: row.identityNumber
|
|
|
|
|
|
+ identityNumber: row.identityNumber,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.unbindStudentCodeDialog = true;
|
|
this.unbindStudentCodeDialog = true;
|
|
@@ -1156,15 +1163,15 @@ export default {
|
|
unbindStudentCode(row) {
|
|
unbindStudentCode(row) {
|
|
var params = new URLSearchParams({
|
|
var params = new URLSearchParams({
|
|
studentCode: row.studentCode,
|
|
studentCode: row.studentCode,
|
|
- rootOrgId: row.rootOrgId
|
|
|
|
|
|
+ rootOrgId: row.rootOrgId,
|
|
});
|
|
});
|
|
this.$confirm("是否解绑学号?", "提示", {
|
|
this.$confirm("是否解绑学号?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = CORE_API + "/student/unbindStudentCode?" + params;
|
|
var url = CORE_API + "/student/unbindStudentCode?" + params;
|
|
- this.$httpWithMsg.post(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.post(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
let newTableData = [];
|
|
let newTableData = [];
|
|
for (let cur of this.unbindStudentCodeData.tableData) {
|
|
for (let cur of this.unbindStudentCodeData.tableData) {
|
|
@@ -1175,7 +1182,7 @@ export default {
|
|
this.unbindStudentCodeData.tableData = newTableData;
|
|
this.unbindStudentCodeData.tableData = newTableData;
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "解绑成功"
|
|
|
|
|
|
+ message: "解绑成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
});
|
|
});
|
|
@@ -1187,14 +1194,14 @@ export default {
|
|
this.$confirm("是否解绑安全手机号?", "提示", {
|
|
this.$confirm("是否解绑安全手机号?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = CORE_API + "/student/unbindSecurityPhone/" + stuIds;
|
|
var url = CORE_API + "/student/unbindSecurityPhone/" + stuIds;
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.put(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "解绑成功"
|
|
|
|
|
|
+ message: "解绑成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
});
|
|
});
|
|
@@ -1207,14 +1214,14 @@ export default {
|
|
this.$confirm("是否重置所选学生的密码?", "提示", {
|
|
this.$confirm("是否重置所选学生的密码?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = CORE_API + "/student/resetPass/" + stuIds;
|
|
var url = CORE_API + "/student/resetPass/" + stuIds;
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.put(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "重置密码成功"
|
|
|
|
|
|
+ message: "重置密码成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
});
|
|
});
|
|
@@ -1228,14 +1235,14 @@ export default {
|
|
this.$confirm("是否禁用所选学生?", "提示", {
|
|
this.$confirm("是否禁用所选学生?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = CORE_API + "/student/disable/" + stuIds;
|
|
var url = CORE_API + "/student/disable/" + stuIds;
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.put(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "禁用成功"
|
|
|
|
|
|
+ message: "禁用成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
});
|
|
});
|
|
@@ -1249,14 +1256,14 @@ export default {
|
|
this.$confirm("是否启用所选学生?", "提示", {
|
|
this.$confirm("是否启用所选学生?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = CORE_API + "/student/enable/" + stuIds;
|
|
var url = CORE_API + "/student/enable/" + stuIds;
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.put(url).then((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "启用成功"
|
|
|
|
|
|
+ message: "启用成功",
|
|
});
|
|
});
|
|
this.searchForm();
|
|
this.searchForm();
|
|
});
|
|
});
|
|
@@ -1277,7 +1284,7 @@ export default {
|
|
console.log(fileList);
|
|
console.log(fileList);
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "上传成功",
|
|
message: "上传成功",
|
|
- type: "success"
|
|
|
|
|
|
+ type: "success",
|
|
});
|
|
});
|
|
this.fileLoading = false;
|
|
this.fileLoading = false;
|
|
this.photoUploadDialog = false;
|
|
this.photoUploadDialog = false;
|
|
@@ -1291,7 +1298,7 @@ export default {
|
|
if (response.status == 500) {
|
|
if (response.status == 500) {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: json.desc,
|
|
message: json.desc,
|
|
- type: "error"
|
|
|
|
|
|
+ type: "error",
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.fileLoading = false;
|
|
this.fileLoading = false;
|
|
@@ -1304,14 +1311,14 @@ export default {
|
|
if (fileList.length == 0) {
|
|
if (fileList.length == 0) {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "上传文件不能为空",
|
|
message: "上传文件不能为空",
|
|
- type: "error"
|
|
|
|
|
|
+ type: "error",
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
if (fileList.length > 1) {
|
|
if (fileList.length > 1) {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "每次只能上传一个文件",
|
|
message: "每次只能上传一个文件",
|
|
- type: "error"
|
|
|
|
|
|
+ type: "error",
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -1320,7 +1327,7 @@ export default {
|
|
if (!f.endsWith(".jpg") && !f.endsWith(".png")) {
|
|
if (!f.endsWith(".jpg") && !f.endsWith(".png")) {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "上传文件必须为jpg或者png格式",
|
|
message: "上传文件必须为jpg或者png格式",
|
|
- type: "error"
|
|
|
|
|
|
+ type: "error",
|
|
});
|
|
});
|
|
this.initUpload();
|
|
this.initUpload();
|
|
return false;
|
|
return false;
|
|
@@ -1347,7 +1354,7 @@ export default {
|
|
Object.keys(this.rolePrivileges).toString()
|
|
Object.keys(this.rolePrivileges).toString()
|
|
);
|
|
);
|
|
let url = CORE_API + "/rolePrivilege/checkPrivileges?" + params;
|
|
let url = CORE_API + "/rolePrivilege/checkPrivileges?" + params;
|
|
- this.$httpWithMsg.post(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.post(url).then((response) => {
|
|
this.rolePrivileges = response.data;
|
|
this.rolePrivileges = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1367,13 +1374,13 @@ export default {
|
|
|
|
|
|
if (this.pureLC) {
|
|
if (this.pureLC) {
|
|
let url = CORE_API + "/user/" + this.user.userId;
|
|
let url = CORE_API + "/user/" + this.user.userId;
|
|
- await this.$httpWithMsg.get(url).then(response => {
|
|
|
|
|
|
+ await this.$httpWithMsg.get(url).then((response) => {
|
|
var userInfo = response.data;
|
|
var userInfo = response.data;
|
|
this.lc_id = userInfo.orgId;
|
|
this.lc_id = userInfo.orgId;
|
|
this.lc_name = userInfo.orgName;
|
|
this.lc_name = userInfo.orgName;
|
|
this.lc_code = userInfo.orgCode;
|
|
this.lc_code = userInfo.orgCode;
|
|
this.orgList4Search = [
|
|
this.orgList4Search = [
|
|
- { id: this.lc_id, name: this.lc_name, code: this.lc_code }
|
|
|
|
|
|
+ { id: this.lc_id, name: this.lc_name, code: this.lc_code },
|
|
];
|
|
];
|
|
this.formSearch.orgId = this.lc_id;
|
|
this.formSearch.orgId = this.lc_id;
|
|
});
|
|
});
|
|
@@ -1381,7 +1388,7 @@ export default {
|
|
|
|
|
|
let url = CORE_API + "/org/getRootOrgList";
|
|
let url = CORE_API + "/org/getRootOrgList";
|
|
|
|
|
|
- this.$httpWithMsg.get(url).then(response => {
|
|
|
|
|
|
+ this.$httpWithMsg.get(url).then((response) => {
|
|
this.rootOrgList = response.data;
|
|
this.rootOrgList = response.data;
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1392,7 +1399,7 @@ export default {
|
|
handleExamChange4Search(value) {
|
|
handleExamChange4Search(value) {
|
|
this.stuExamSearch.examStageId = "";
|
|
this.stuExamSearch.examStageId = "";
|
|
if (this.examList4Search.length > 0) {
|
|
if (this.examList4Search.length > 0) {
|
|
- let examArr = this.examList4Search.filter(p => p.id == value);
|
|
|
|
|
|
+ let examArr = this.examList4Search.filter((p) => p.id == value);
|
|
if (examArr && examArr.length > 0) {
|
|
if (examArr && examArr.length > 0) {
|
|
let exam = examArr[0];
|
|
let exam = examArr[0];
|
|
if (
|
|
if (
|
|
@@ -1422,7 +1429,7 @@ export default {
|
|
"&enable=true&name=" +
|
|
"&enable=true&name=" +
|
|
name
|
|
name
|
|
)
|
|
)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
if ("search" == where) {
|
|
if ("search" == where) {
|
|
this.queryExamStages4SearchLoading = false;
|
|
this.queryExamStages4SearchLoading = false;
|
|
this.examStageList4Search = response.data;
|
|
this.examStageList4Search = response.data;
|
|
@@ -1431,7 +1438,7 @@ export default {
|
|
this.examStageList4InsertOrUpdate = response.data;
|
|
this.examStageList4InsertOrUpdate = response.data;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(response => {
|
|
|
|
|
|
+ .catch((response) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
if ("search" == where) {
|
|
if ("search" == where) {
|
|
this.queryExamStages4SearchLoading = false;
|
|
this.queryExamStages4SearchLoading = false;
|
|
@@ -1439,15 +1446,8 @@ export default {
|
|
this.queryExamStages4InsertOrUpdateLoading = false;
|
|
this.queryExamStages4InsertOrUpdateLoading = false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.init();
|
|
|
|
- this.uploadHeaders = {
|
|
|
|
- key: this.user.key,
|
|
|
|
- token: this.user.token
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped>
|
|
<style scoped>
|