|
@@ -2,109 +2,41 @@
|
|
|
<div>
|
|
|
<div class="headerRow headerRowLeftRight">
|
|
|
<div class="headerRow">
|
|
|
- <el-input
|
|
|
- placeholder="请输入用户名或账号搜索"
|
|
|
- v-model="searchKeyLin"
|
|
|
- @keyup.enter.native="onSubmit"
|
|
|
- style="width: 260px"
|
|
|
- >
|
|
|
- <el-button
|
|
|
- slot="append"
|
|
|
- icon="el-icon-search"
|
|
|
- @click="onSubmit"
|
|
|
- ></el-button>
|
|
|
+ <el-input placeholder="请输入用户名或账号搜索" v-model="searchKeyLin" @keyup.enter.native="onSubmit" style="width: 260px">
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="onSubmit"></el-button>
|
|
|
</el-input>
|
|
|
|
|
|
- <el-select
|
|
|
- v-model="value"
|
|
|
- @change="onSubmit"
|
|
|
- placeholder="用户状态"
|
|
|
- style="width: 120px"
|
|
|
- class="mrl"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- >
|
|
|
+ <el-select v-model="value" @change="onSubmit" placeholder="用户状态" style="width: 120px" class="mrl">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
|
|
|
- <el-select
|
|
|
- v-model="groupValue"
|
|
|
- @change="onSubmit"
|
|
|
- placeholder="年级选择"
|
|
|
- style="width: 120px"
|
|
|
- class="mrl"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in groupOptions"
|
|
|
- :key="item.id"
|
|
|
- :label="item.groupName"
|
|
|
- :value="item.id"
|
|
|
- >
|
|
|
+ <el-select v-model="groupValue" @change="onSubmit" placeholder="年级选择" style="width: 120px" class="mrl">
|
|
|
+ <el-option v-for="item in groupOptions" :key="item.id" :label="item.groupName" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
|
|
|
- <el-button
|
|
|
- class="ml10"
|
|
|
- icon="el-icon-refresh"
|
|
|
- @click="reset"
|
|
|
- ></el-button>
|
|
|
- <el-button
|
|
|
- class="ml10"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- @click="exportUser"
|
|
|
- >批量导入</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="systemVersion != 'lan'"
|
|
|
- class="ml10"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-s-check"
|
|
|
- @click="allUserCheck"
|
|
|
- >一键审核</el-button>
|
|
|
+ <el-button class="ml10" icon="el-icon-refresh" @click="reset"></el-button>
|
|
|
+ <el-button class="ml10" type="primary" icon="el-icon-plus" @click="exportUser">批量导入</el-button>
|
|
|
+ <el-button v-if="systemVersion != 'lan'" class="ml10" type="primary" icon="el-icon-s-check"
|
|
|
+ @click="allUserCheck">一键审核</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-table :data="tableData" border style="width: 100%; margin-top: 20px">
|
|
|
- <el-table-column
|
|
|
- prop="petName"
|
|
|
- label="用户名称"
|
|
|
- align="center"
|
|
|
- >
|
|
|
+ <el-table-column prop="petName" label="用户名称" align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="phone" label="账号" width="auto" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="gender"
|
|
|
- label="性别"
|
|
|
- align="center"
|
|
|
- :formatter="sexFormat"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column prop="gender" label="性别" align="center" :formatter="sexFormat"></el-table-column>
|
|
|
<el-table-column prop="birthday" label="生日" width="auto" align="center">
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column prop="institutionName" label="所属学校" width="auto" align="center">
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column
|
|
|
- prop="profession"
|
|
|
- label="职业"
|
|
|
- align="center"
|
|
|
- >
|
|
|
+ <el-table-column prop="profession" label="职业" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="gid"
|
|
|
- label="年级名称"
|
|
|
- align="center"
|
|
|
- >
|
|
|
+ <el-table-column prop="gid" label="年级名称" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="userStatus"
|
|
|
- label="用户状态"
|
|
|
- align="center"
|
|
|
- :formatter="statusFormat"
|
|
|
- >
|
|
|
+ <el-table-column prop="userStatus" label="用户状态" align="center" :formatter="statusFormat">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="300px" align="center">
|
|
|
<!-- <template slot-scope="scope">-->
|
|
@@ -119,11 +51,7 @@
|
|
|
style="margin-top: 10px"
|
|
|
>查看详情
|
|
|
</el-button> -->
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="handleResetPwd(scope.$index, scope.row)"
|
|
|
- >重置密码
|
|
|
+ <el-button type="primary" size="small" @click="handleResetPwd(scope.$index, scope.row)">重置密码
|
|
|
</el-button>
|
|
|
<!-- <el-dialog title="重置密码" :visible.sync="personalSecurityDialog" width="40%">-->
|
|
|
<!-- <el-form :model="updatePersonalSecurity" status-icon :rules="personalSecurityRules" ref="ruleFormSecurity">-->
|
|
@@ -141,18 +69,10 @@
|
|
|
<!-- </el-form-item>-->
|
|
|
<!-- </el-form>-->
|
|
|
<!-- </el-dialog>-->
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="danger"
|
|
|
- @click="handleDelete(scope.$index, scope.row)"
|
|
|
- >删除
|
|
|
+ <el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">删除
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="scope.row.userStatus != '2' && scope.row.userStatus != '4'"
|
|
|
- size="small"
|
|
|
- @click="editUser(scope.row)"
|
|
|
- >审核通过
|
|
|
+ <el-button type="primary" v-if="scope.row.userStatus != '2' && scope.row.userStatus != '4'" size="small"
|
|
|
+ @click="editUser(scope.row)">审核通过
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<!-- <!–<template slot-scope="scope">-->
|
|
@@ -171,41 +91,20 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="txt-center" style="margin-top: 20px">
|
|
|
- <el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-sizes="[10, 20, 50, 100]"
|
|
|
- :page-size="pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="total"
|
|
|
- >
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
+ :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
- <el-dialog
|
|
|
- :title="addUserEditFlag"
|
|
|
- :visible.sync="addUser"
|
|
|
- width="40%"
|
|
|
- center
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
+ <el-dialog :title="addUserEditFlag" :visible.sync="addUser" width="40%" center :close-on-click-modal="false">
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="24">
|
|
|
- <el-form
|
|
|
- :inline="true"
|
|
|
- :model="ruleForm"
|
|
|
- label-position="left"
|
|
|
- :rules="rules"
|
|
|
- ref="ruleForm"
|
|
|
- class="demo-form-inline demo-ruleForm"
|
|
|
- >
|
|
|
+ <el-form :inline="true" :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm"
|
|
|
+ class="demo-form-inline demo-ruleForm">
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="签字" prop="signature">
|
|
|
- <el-input
|
|
|
- v-model="ruleForm.signature"
|
|
|
- placeholder="签字"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="ruleForm.signature" placeholder="签字"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -220,13 +119,8 @@
|
|
|
<!-- <el-row :gutter="24">
|
|
|
<el-col :span="12"> -->
|
|
|
<el-form-item label="请选择签名照" prop="signature">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
- :show-file-list="false"
|
|
|
- :on-success="handleAvatarSuccess"
|
|
|
- :before-upload="beforeAvatarUpload"
|
|
|
- >
|
|
|
+ <el-upload class="avatar-uploader" action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
|
|
|
<img v-if="imageUrl" :src="imageUrl" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
@@ -238,44 +132,35 @@
|
|
|
</el-row>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="2"><div class="grid-content bg-purple"></div></el-col>
|
|
|
- <el-col :span="6"
|
|
|
- ><div class="grid-content bg-purple">
|
|
|
- <el-button type="primary" @click="addUser = false"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
- </div></el-col
|
|
|
- >
|
|
|
- <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
|
|
|
- <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
|
|
|
- <el-col :span="6"
|
|
|
- ><div class="grid-content bg-purple">
|
|
|
+ <el-col :span="2">
|
|
|
+ <div class="grid-content bg-purple"></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
+ <el-button type="primary" @click="addUser = false">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <div class="grid-content bg-purple"></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <div class="grid-content bg-purple"></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
<el-button @click="addUser = false">取 消</el-button>
|
|
|
- </div></el-col
|
|
|
- >
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 批量导入 -->
|
|
|
- <el-dialog
|
|
|
- :close-on-click-modal="false"
|
|
|
- title="批量导入"
|
|
|
- :visible.sync="dialogTableVisible"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- class="txt-center"
|
|
|
- :action="uploadUrl"
|
|
|
- multiple
|
|
|
- :before-upload="uploadVa"
|
|
|
- :limit="3"
|
|
|
- :show-file-list="false"
|
|
|
- :on-success="uploadSuccess"
|
|
|
- :on-error="uploadFail"
|
|
|
- :file-list="fileList"
|
|
|
- :data="{
|
|
|
+ <el-dialog :close-on-click-modal="false" title="批量导入" :visible.sync="dialogTableVisible">
|
|
|
+ <el-upload class="txt-center" :action="uploadUrl" multiple :before-upload="uploadVa" :limit="3"
|
|
|
+ :show-file-list="false" :on-success="uploadSuccess" :on-error="uploadFail" :file-list="fileList" :data="{
|
|
|
institutionNo: institutionNo,
|
|
|
- }"
|
|
|
- >
|
|
|
+ userId:createUserId,
|
|
|
+ }">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<div slot="tip" class="el-upload__tip">请上传.xls,.xlsx类型的文件</div>
|
|
|
</el-upload>
|
|
@@ -283,16 +168,8 @@
|
|
|
<el-link type="primary">点击下载模板</el-link>
|
|
|
</div>
|
|
|
<el-table v-if="userList.length > 0" :data="userList">
|
|
|
- <el-table-column
|
|
|
- property="date"
|
|
|
- label="日期"
|
|
|
- width="150"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- property="name"
|
|
|
- label="姓名"
|
|
|
- width="200"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column property="date" label="日期" width="150"></el-table-column>
|
|
|
+ <el-table-column property="name" label="姓名" width="200"></el-table-column>
|
|
|
<el-table-column property="address" label="地址"></el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
@@ -366,7 +243,7 @@ export default {
|
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
|
pageSize: 10,
|
|
|
- createUserId:'',
|
|
|
+ createUserId: '',
|
|
|
updatePersonalSecurity: {},
|
|
|
rules: {
|
|
|
signature: [
|
|
@@ -551,7 +428,7 @@ export default {
|
|
|
this.getData();
|
|
|
|
|
|
//部分未成功也会在此提示
|
|
|
- this.$alert(`${ res.msg }`, '提示', {
|
|
|
+ this.$alert(`${res.msg}`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'warning',
|
|
|
center: true,
|
|
@@ -567,7 +444,7 @@ export default {
|
|
|
// 批量导入失败
|
|
|
uploadFail(res) {
|
|
|
// this.$message.error(res.msg);
|
|
|
- this.$alert(`${ res.msg }`, '提示', {
|
|
|
+ this.$alert(`${res.msg}`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'error',
|
|
|
center: true,
|
|
@@ -587,14 +464,14 @@ export default {
|
|
|
statusFormat(row) {
|
|
|
if (row.userStatus == 2) {
|
|
|
return "已审核";
|
|
|
- } else if(row.userStatus == 1){
|
|
|
+ } else if (row.userStatus == 1) {
|
|
|
return "未审核";
|
|
|
- } else if(row.userStatus == 3){
|
|
|
+ } else if (row.userStatus == 3) {
|
|
|
return "待登录";
|
|
|
- } else if(row.userStatus == 4){
|
|
|
+ } else if (row.userStatus == 4) {
|
|
|
return "待补充";
|
|
|
- }else {
|
|
|
- return "--";
|
|
|
+ } else {
|
|
|
+ return "--";
|
|
|
}
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
@@ -645,13 +522,13 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.$http.get("/user/updateStatusAll?institutionNo=" + this.institutionNo, {}, (res) => {
|
|
|
|
|
|
- if(res && res.code == '200'){
|
|
|
+ if (res && res.code == '200') {
|
|
|
this.getData();
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "一键审核成功!",
|
|
|
});
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: "error",
|
|
|
message: "一键审核失败!",
|
|
@@ -680,7 +557,7 @@ export default {
|
|
|
// this.ruleForm=[];
|
|
|
// },
|
|
|
//删除用户
|
|
|
- deleteUser() {},
|
|
|
+ deleteUser() { },
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
this.imageUrl = URL.createObjectURL(file.raw);
|
|
|
},
|
|
@@ -700,17 +577,19 @@ export default {
|
|
|
this.searchKeyLin = this.searchKey;
|
|
|
this.$http.get(
|
|
|
"/user/getUserListByInstitutionNo?institutionNo=" +
|
|
|
- this.institutionNo +
|
|
|
- "&searchKey=" +
|
|
|
- this.searchKey +
|
|
|
- "&pageNum=" +
|
|
|
- this.currentPage +
|
|
|
- "&pageSize=" +
|
|
|
- this.pageSize +
|
|
|
- "&status=" +
|
|
|
- this.value +
|
|
|
- "&groupId=" +
|
|
|
- this.groupValue,
|
|
|
+ this.institutionNo +
|
|
|
+ "&searchKey=" +
|
|
|
+ this.searchKey +
|
|
|
+ "&pageNum=" +
|
|
|
+ this.currentPage +
|
|
|
+ "&pageSize=" +
|
|
|
+ this.pageSize +
|
|
|
+ "&status=" +
|
|
|
+ this.value +
|
|
|
+ "&groupId=" +
|
|
|
+ this.groupValue +
|
|
|
+ "&userId=" +
|
|
|
+ this.createUserId,
|
|
|
{},
|
|
|
(response) => {
|
|
|
this.total = response.data.allNum;
|
|
@@ -733,6 +612,7 @@ export default {
|
|
|
.bg-purple-dark {
|
|
|
background: white;
|
|
|
}
|
|
|
+
|
|
|
.grid-content {
|
|
|
border-radius: 4px;
|
|
|
min-height: 36px;
|