|
@@ -70,13 +70,13 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
- <el-table :data="userList">
|
|
|
|
|
|
|
+ <el-table :data="userList" size="small">
|
|
|
<el-table-column label="用户编号" align="center" key="id" prop="id"/>
|
|
<el-table-column label="用户编号" align="center" key="id" prop="id"/>
|
|
|
<el-table-column label="用户名称" align="center" key="userName" prop="userName"
|
|
<el-table-column label="用户名称" align="center" key="userName" prop="userName"
|
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="登录账号" align="center" key="account" prop="account"
|
|
<el-table-column label="登录账号" align="center" key="account" prop="account"
|
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="部门" align="center" key="deptName" prop="dept.deptName"
|
|
|
|
|
|
|
+ <el-table-column label="部门" align="center" key="deptName" prop="deptName"
|
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="手机号码" align="center" key="phone" prop="phone"
|
|
<el-table-column label="手机号码" align="center" key="phone" prop="phone"
|
|
|
width="120"/>
|
|
width="120"/>
|
|
@@ -86,6 +86,7 @@
|
|
|
v-model="scope.row.status"
|
|
v-model="scope.row.status"
|
|
|
active-value="0"
|
|
active-value="0"
|
|
|
inactive-value="1"
|
|
inactive-value="1"
|
|
|
|
|
+ :disabled="scope.row.id === 1"
|
|
|
@change="handleStatusChange(scope.row)"
|
|
@change="handleStatusChange(scope.row)"
|
|
|
></el-switch>
|
|
></el-switch>
|
|
|
</template>
|
|
</template>
|
|
@@ -98,7 +99,7 @@
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="操作"
|
|
label="操作"
|
|
|
align="center"
|
|
align="center"
|
|
|
- width="160"
|
|
|
|
|
|
|
+ width="200"
|
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope" v-if="scope.row.id !== 1">
|
|
<template slot-scope="scope" v-if="scope.row.id !== 1">
|
|
@@ -350,7 +351,7 @@ export default {
|
|
|
// 用户状态修改
|
|
// 用户状态修改
|
|
|
handleStatusChange(row) {
|
|
handleStatusChange(row) {
|
|
|
let text = row.status === "0" ? "启用" : "停用";
|
|
let text = row.status === "0" ? "启用" : "停用";
|
|
|
- this.$modal.confirm('确认要"' + text + '""' + row.userName + '"用户吗?').then(function () {
|
|
|
|
|
|
|
+ this.$confirm('确认要"' + text + '""' + row.userName + '"用户吗?').then(function () {
|
|
|
return changeUserStatus({id: row.id, status: row.status});
|
|
return changeUserStatus({id: row.id, status: row.status});
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.$message.success(text + "成功");
|
|
this.$message.success(text + "成功");
|