|
@@ -65,6 +65,11 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="最新登录时间" prop="loginDate" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.loginDate) }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="220" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
@@ -121,7 +126,7 @@
|
|
|
<el-input v-model="form.userName" placeholder="请输入登录名称" maxlength="30" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="12" v-if="pwdVisible">
|
|
|
<el-form-item label="用户密码" prop="password">
|
|
|
<el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/>
|
|
|
</el-form-item>
|
|
@@ -187,7 +192,8 @@ export default {
|
|
|
// 非多个禁用
|
|
|
multiple: true,
|
|
|
// 显示搜索条件
|
|
|
- showSearch: true,
|
|
|
+ showSearch: true,
|
|
|
+ pwdVisible: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
// 角色表格数据
|
|
@@ -297,7 +303,8 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
- this.title = "添加用户";
|
|
|
+ this.title = "添加用户";
|
|
|
+ this.pwdVisible = true
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -306,8 +313,10 @@ export default {
|
|
|
getUserByIdApi(userId).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
- this.title = "修改用户";
|
|
|
- this.form.password = "";
|
|
|
+ this.title = "修改用户";
|
|
|
+ this.pwdVisible = false
|
|
|
+ // this.$set(this.form, 'password', '')
|
|
|
+ // this.form.password = "";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|