增加接口获取loading,调整为标准组件而不是直接跳标准应用

This commit is contained in:
aixianling
2023-03-06 11:00:12 +08:00
parent 8d1ded1251
commit 5926f6abbe
2 changed files with 3 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ export default {
}, },
methods: { methods: {
getAllGrids() { getAllGrids() {
uni.showLoading({title: "数据加载中...", mask: true})
this.selectList = [] this.selectList = []
let {girdMemberId} = this.user, let {girdMemberId} = this.user,
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`, url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`,
@@ -86,7 +87,7 @@ export default {
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)})) this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
this.treeInit() this.treeInit()
} }
}) }).finally(() => uni.hideLoading())
}, },
treeInit(isClick) { treeInit(isClick) {
let last = uni.getStorageSync("lastSelectedGrid") let last = uni.getStorageSync("lastSelectedGrid")

View File

@@ -19,8 +19,7 @@
<AiMore placeholder="点击定位" v-model="form.address" @click="chooseAddress"/> <AiMore placeholder="点击定位" v-model="form.address" @click="chooseAddress"/>
</AiItem> </AiItem>
<AiItem label="上报网格" required labelBold> <AiItem label="上报网格" required labelBold>
<AiPagePicker type="custom" @select="handleSelectGrid" self <AiPagePicker type="gird" @select="handleSelectGrid" self>
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
<AiMore v-model="form.girdName"/> <AiMore v-model="form.girdName"/>
</AiPagePicker> </AiPagePicker>
</AiItem> </AiItem>