This commit is contained in:
QuAoLi 2022-02-28 11:43:01 +08:00
parent f34f090dc0
commit 2a6e8ade9e
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@
</div> </div>
<div class="table-operator"> <div class="table-operator" v-if="orgType === 1">
<div class="person-type"> <div class="person-type">
<a-radio-group v-model="isAdmin" @change="onRadioChange"> <a-radio-group v-model="isAdmin" @change="onRadioChange">
<a-radio :value="2">学员</a-radio> <a-radio :value="2">学员</a-radio>

View File

@ -226,7 +226,7 @@ export default {
if (!res.code === 200 || !res.data.length) { if (!res.code === 200 || !res.data.length) {
return return
} }
var rootParentId = res.data[0].pid var rootParentId = 0
this.expandedKeys = [] this.expandedKeys = []
this.selectedKeys = [] this.selectedKeys = []
this.orgTree = listToTree(res.data, [], rootParentId) this.orgTree = listToTree(res.data, [], rootParentId)