权限控制

master
Caps 6 years ago
parent 49c3aeb4c1
commit ac187368d9

@ -26,6 +26,10 @@
<span class="name-font" style="width: 80px;display: inline-block">账号</span>
<i-input disabled placeholder="请输入账号" style="width: 300px;" v-model="modifyFrom.account"/>
</Form-Item>
<Form-Item prop="mobil">
<span class="name-font" style="width: 80px;display: inline-block">手机号</span>
<i-input placeholder="请输入手机号" style="width: 300px;" v-model="modifyFrom.mobil"/>
</Form-Item>
<Form-Item prop="password">
<span class="name-font" style="width: 80px;display: inline-block" >密码</span>
<i-input placeholder="请输入密码" style="width: 300px;" v-model="modifyFrom.password" @on-change="check" type="password"/>
@ -91,6 +95,7 @@
shopId: this.$route.query.shopId,
type:this.$route.query.type,
companyId: this.$route.query.companyId,
mobil: this.$route.query.mobil,
},
passwordCheck:[
{required:true,message:'密码不能为空',trigger:'blur'},
@ -103,6 +108,11 @@
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
modifyValidate: {
mobil: [
{required: true, message: '手机号不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9]*$/g, message: '只可以输入数字', trigger: 'blur'},
],
userName:[
{required:true,message:'用户名不能为空',trigger:'blur'},
{ min: 1, max: 8, message: '长度在 1 到 8 个字符', trigger: 'blur' },

@ -95,6 +95,11 @@
key: 'account',
width: '150px',
},
{
title: '手机号',
key: 'mobil',
width: '150px',
},
{
title: '系统角色',
key: 'roleName',
@ -121,7 +126,6 @@
},
on: {
click: () => {
debugger
this.$router.push({
path: '/account/management/modify',
query: {
@ -135,6 +139,7 @@
roleCode: params.row.roleCode,
shopId: params.row.shopId,
companyId:params.row.orgId,
mobil:params.row.mobil,
}
});
}

@ -28,6 +28,10 @@
<span class="name-font" style="width: 80px;display: inline-block">账号</span>
<i-input placeholder="请输入账号" style="width: 300px;" v-model="addFrom.account"/>
</Form-Item>
<Form-Item prop="mobil">
<span class="name-font" style="width: 80px;display: inline-block">手机号</span>
<i-input placeholder="请输入手机号" style="width: 300px;" v-model="addFrom.mobil"/>
</Form-Item>
<Form-Item prop="password">
<span class="name-font" style="width: 80px;display: inline-block">密码</span>
<i-input type="password" placeholder="请输入密码" style="width: 300px;" v-model="addFrom.password"/>
@ -94,6 +98,7 @@
shopId: null,
type: null,
companyId: null,
mobil: null,
},
addValidate: {
userName: [
@ -106,6 +111,11 @@
{min: 2, max: 8, message: '长度在 2 到 8 个字符', trigger: 'blur'},
{pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母', trigger: 'blur'},
],
mobil: [
{required: true, message: '手机号不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9]*$/g, message: '只可以输入数字', trigger: 'blur'},
],
password: [
{required: true, message: '密码不能为空', trigger: 'blur'},
{min: 6, max: 18, message: '长度在 6 到 18 个字符', trigger: 'blur'},

Loading…
Cancel
Save