|
@@ -48,6 +48,7 @@ export default {
|
|
|
getDef() {
|
|
|
const params = { ...this.curObj }
|
|
|
const disabled = false
|
|
|
+ if (!params.is_backend) params.is_backend = '2'
|
|
|
let remoteOptionsRoles = []
|
|
|
if (params.role_arr && params.role_arr.length > 0) {
|
|
|
params.rolesIds = params.role_arr.map(item => {
|
|
@@ -59,14 +60,14 @@ export default {
|
|
|
}
|
|
|
if (this.curObj.id) {
|
|
|
this.formData = [
|
|
|
- { label: '超级管理员', key: 'is_admin', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
+ // { label: '超级管理员', key: 'is_admin', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '手机号', key: 'phone', rules: 1 },
|
|
|
{ label: '昵称', key: 'nickname', rules: 1 },
|
|
|
+ { label: '后台登录', rules: 1, key: 'is_backend', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '系统角色', key: 'rolesIds', type: 'selectRemote', multiple: true,
|
|
|
remoteParams: { skey: 'name', api: `base.admroleslist`, opKey: 'name', opVal: 'id' },
|
|
|
remoteOptions: remoteOptionsRoles
|
|
|
},
|
|
|
- { label: '后台登录', key: 'is_backend', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '楼盘角色', key: 'manage_type', type: 'select', class: 'c-2', options: this.$dictData.manage_type, },
|
|
|
{ label: '关联楼盘', key: 'estate_id', type: 'selectRemote',
|
|
|
remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
|
|
@@ -75,15 +76,15 @@ export default {
|
|
|
]
|
|
|
} else {
|
|
|
this.formData = [
|
|
|
- { label: '超级管理员', key: 'is_admin', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
+ // { label: '超级管理员', key: 'is_admin', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '手机号', key: 'phone', rules: 1 },
|
|
|
{ label: '昵称', key: 'nickname', rules: 1 },
|
|
|
{ label: '密码', key: 'password', rules: 1 },
|
|
|
+ { label: '后台登录', rules: 1, key: 'is_backend', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '系统角色', key: 'rolesIds', type: 'selectRemote', multiple: true,
|
|
|
remoteParams: { skey: 'name', api: `base.admroleslist`, opKey: 'name', opVal: 'id' },
|
|
|
remoteOptions: remoteOptionsRoles
|
|
|
},
|
|
|
- { label: '后台登录', key: 'is_backend', type: 'select', class: 'c-2', options: this.$dictData.sys_yesno, },
|
|
|
{ label: '楼盘角色', key: 'manage_type', type: 'select', class: 'c-2', options: this.$dictData.manage_type, },
|
|
|
{ label: '关联楼盘', key: 'estate_id', type: 'selectRemote',
|
|
|
remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
|