增加接口获取loading,调整为标准组件而不是直接跳标准应用
This commit is contained in:
@@ -69,6 +69,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getAllGrids() {
|
||||
uni.showLoading({title: "数据加载中...", mask: true})
|
||||
this.selectList = []
|
||||
let {girdMemberId} = this.user,
|
||||
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`,
|
||||
@@ -86,7 +87,7 @@ export default {
|
||||
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
|
||||
this.treeInit()
|
||||
}
|
||||
})
|
||||
}).finally(() => uni.hideLoading())
|
||||
},
|
||||
treeInit(isClick) {
|
||||
let last = uni.getStorageSync("lastSelectedGrid")
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
<AiMore placeholder="点击定位" v-model="form.address" @click="chooseAddress"/>
|
||||
</AiItem>
|
||||
<AiItem label="上报网格" required labelBold>
|
||||
<AiPagePicker type="custom" @select="handleSelectGrid" self
|
||||
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiPagePicker type="gird" @select="handleSelectGrid" self>
|
||||
<AiMore v-model="form.girdName"/>
|
||||
</AiPagePicker>
|
||||
</AiItem>
|
||||
|
||||
Reference in New Issue
Block a user