wxMainDepartmentId

This commit is contained in:
liuye
2023-05-26 11:23:51 +08:00
parent 1c24282a3e
commit fcecac4ee9

View File

@@ -13,7 +13,7 @@
</div> </div>
<div class="select-dept"> <div class="select-dept">
<AiPagePicker type="dept" :selected.sync="deptList" single nodeKey="id" @select="getListInit" isRequire="1" isAuth> <AiPagePicker type="dept" :selected.sync="deptList" single nodeKey="id" @select="getListInit" isRequire="1" isAuth>
<span class="label">{{deptList[0].name}}</span> <span class="label">{{deptList[0].name || '请选择'}}</span>
<u-icon name="arrow-down" color="#999" size="28" style="margin-left:4px;"/> <u-icon name="arrow-down" color="#999" size="28" style="margin-left:4px;"/>
</AiPagePicker> </AiPagePicker>
</div> </div>
@@ -54,7 +54,7 @@
...mapState(['user']), ...mapState(['user']),
}, },
onLoad() { onLoad() {
this.deptList = [{name: this.user.departName, id: this.user.departId}] this.deptList = [{name: '', id: this.user.wxMainDepartmentId}]
this.getList() this.getList()
this.getTotal() this.getTotal()
uni.$on('updateGroup', () => { uni.$on('updateGroup', () => {