|
@@ -25,7 +25,7 @@
|
|
|
<el-row :span="24" type="flex" justify="space-between" align="middle">
|
|
|
<el-col :span="4"><h3>用户管理</h3></el-col>
|
|
|
<el-col :span="20" style="text-align: right;">
|
|
|
- <el-button v-has-dw-role="'DWSURVEY_SUPER_ADMIN'" type="primary" size="medium" @click="dialogTitle = '创建用户';userFormRules.pwd = { required: false };userForm.id=null;dialogFormVisible = true">添加用户</el-button>
|
|
|
+ <el-button v-has-dw-role="'DWSURVEY_SUPER_ADMIN'" type="primary" size="medium" @click="openCreateUser()">添加用户</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -172,6 +172,15 @@ export default {
|
|
|
handleCurrentChange (val) {
|
|
|
this.queryList(val)
|
|
|
},
|
|
|
+ openCreateUser () {
|
|
|
+ this.dialogTitle = '创建用户'
|
|
|
+ this.dialogFormVisible = true
|
|
|
+ this.userFormRules.pwd = [
|
|
|
+ {required: true, message: '请输入登录密码', trigger: 'blur'},
|
|
|
+ {min: 6, max: 18, message: '长度在 6 到 18 个字符', trigger: 'blur'}
|
|
|
+ ]
|
|
|
+ this.userForm.id=null
|
|
|
+ },
|
|
|
queryList (pageNo) {
|
|
|
const {status, loginName} = this.formInline
|
|
|
dwAdminUserList(this.pageSize, pageNo, status, loginName).then((response) => {
|