|
@@ -30,18 +30,18 @@
|
|
|
<!--用户数据-->
|
|
|
<el-col :span="20" :xs="24">
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="用户名称" prop="userName">
|
|
|
+ <el-form-item label="用户名称" prop="name">
|
|
|
<el-input
|
|
|
- v-model="queryParams.userName"
|
|
|
+ v-model="queryParams.name"
|
|
|
placeholder="请输入用户名称"
|
|
|
clearable
|
|
|
style="width: 240px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="手机号码" prop="phonenumber">
|
|
|
+ <el-form-item label="手机号码" prop="mobile">
|
|
|
<el-input
|
|
|
- v-model="queryParams.phonenumber"
|
|
|
+ v-model="queryParams.mobile"
|
|
|
placeholder="请输入手机号码"
|
|
|
clearable
|
|
|
style="width: 240px"
|
|
@@ -139,10 +139,10 @@
|
|
|
<el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
<el-table-column label="用户编号" align="center" key="userId" prop="id" v-if="columns[0].visible" />
|
|
|
- <el-table-column label="用户名称" align="center" key="userName" prop="name" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="用户名称" align="center" key="name" prop="name" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
|
<el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
|
<el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
|
|
|
+ <el-table-column label="手机号码" align="center" key="mobile" prop="mobile" v-if="columns[4].visible" width="120" />
|
|
|
<el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
@@ -219,8 +219,8 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="手机号码" prop="phonenumber">
|
|
|
- <el-input v-model="form.phonenumber" placeholder="请输入手机号码" maxlength="11" />
|
|
|
+ <el-form-item label="手机号码" prop="mobile">
|
|
|
+ <el-input v-model="form.mobile" placeholder="请输入手机号码" maxlength="11" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -231,8 +231,8 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item v-if="form.userId == undefined" label="用户名称" prop="userName">
|
|
|
- <el-input v-model="form.userName" placeholder="请输入用户名称" maxlength="30" />
|
|
|
+ <el-form-item v-if="form.userId == undefined" label="用户名称" prop="name">
|
|
|
+ <el-input v-model="form.name" placeholder="请输入用户名称" maxlength="30" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -272,9 +272,9 @@
|
|
|
<el-select v-model="form.postIds" multiple placeholder="请选择岗位">
|
|
|
<el-option
|
|
|
v-for="item in postOptions"
|
|
|
- :key="item.postId"
|
|
|
+ :key="item.id"
|
|
|
:label="item.postName"
|
|
|
- :value="item.postId"
|
|
|
+ :value="item.id"
|
|
|
:disabled="item.status == 1"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
@@ -285,9 +285,9 @@
|
|
|
<el-select v-model="form.roleIds" multiple placeholder="请选择角色">
|
|
|
<el-option
|
|
|
v-for="item in roleOptions"
|
|
|
- :key="item.roleId"
|
|
|
+ :key="item.id"
|
|
|
:label="item.roleName"
|
|
|
- :value="item.roleId"
|
|
|
+ :value="item.id"
|
|
|
:disabled="item.status == 1"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
@@ -407,8 +407,8 @@ export default {
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- userName: undefined,
|
|
|
- phonenumber: undefined,
|
|
|
+ name: undefined,
|
|
|
+ mobile: undefined,
|
|
|
status: undefined,
|
|
|
deptId: undefined
|
|
|
},
|
|
@@ -443,7 +443,7 @@ export default {
|
|
|
trigger: ["blur", "change"]
|
|
|
}
|
|
|
],
|
|
|
- phonenumber: [
|
|
|
+ mobile: [
|
|
|
{
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
message: "请输入正确的手机号码",
|
|
@@ -517,7 +517,7 @@ export default {
|
|
|
userName: undefined,
|
|
|
nickName: undefined,
|
|
|
password: undefined,
|
|
|
- phonenumber: undefined,
|
|
|
+ mobile: undefined,
|
|
|
email: undefined,
|
|
|
sex: undefined,
|
|
|
status: "0",
|
|
@@ -573,7 +573,7 @@ export default {
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
- const userId = row.userId || this.ids;
|
|
|
+ const userId = row.id || this.ids;
|
|
|
getUser(userId).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.postOptions = response.posts;
|
|
@@ -587,7 +587,7 @@ export default {
|
|
|
},
|
|
|
/** 重置密码按钮操作 */
|
|
|
handleResetPwd(row) {
|
|
|
- this.$prompt('请输入"' + row.userName + '"的新密码', "提示", {
|
|
|
+ this.$prompt('请输入"' + row.name + '"的新密码', "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
closeOnClickModal: false,
|