BUG 30991
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
<ai-dialog title="功能分配" :visible.sync="dialog" width="800px" @open="initDialogData" @onConfirm="updateAccount">
|
<ai-dialog title="功能分配" :visible.sync="dialog" width="800px" @open="initDialogData" @onConfirm="updateAccount">
|
||||||
<el-form ref="updateAccountForm" :model="dialogForm" :rules="rules" size="small"
|
<el-form ref="updateAccountForm" :model="dialogForm" :rules="rules" size="small"
|
||||||
label-width="120px">
|
label-width="120px">
|
||||||
<el-form-item label="姓名" prop="name" v-if="dialogForm.sysUserIds.length==1">
|
<el-form-item label="姓名" prop="name" v-if="isBatchAllot">
|
||||||
<el-input placeholder="请输入姓名" v-model="dialogForm.name" clearable/>
|
<el-input placeholder="请输入姓名" v-model="dialogForm.name" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item required label="角色" prop="roleId">
|
<el-form-item required label="角色" prop="roleId">
|
||||||
@@ -89,6 +89,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
|
isBatchAllot: v => v.dialogForm.sysUserIds?.length > 1,
|
||||||
cascaderProps() {
|
cascaderProps() {
|
||||||
return {
|
return {
|
||||||
value: 'id',
|
value: 'id',
|
||||||
@@ -185,14 +186,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取党组织树形
|
// 获取党组织树形
|
||||||
searchSysAll() {
|
searchSysAll() {
|
||||||
if (this.user.info.organizationId && this.optionsParty.length == 0) {
|
if (this.user.info.organizationId && this.optionsParty?.length == 0) {
|
||||||
this.instance.post('/app/partyOrganization/queryPartyOrganizationServiceList').then((res) => {
|
this.instance.post('/app/partyOrganization/queryPartyOrganizationServiceList').then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
res.data = res.data.map(a => {
|
res.data = res.data.map(a => {
|
||||||
return {...a, label: a.name}
|
return {...a, label: a.name}
|
||||||
});
|
});
|
||||||
this.optionsParty = res.data.filter(e => !e.parentId)
|
this.optionsParty = this.$arr2tree(res.data, {parent: "parentId"})
|
||||||
this.optionsParty.map(t => this.addChild(t, res.data));
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user