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