修复网格选择

This commit is contained in:
2022-05-04 23:55:31 +08:00
parent b18a4ae0f5
commit 24ace97b27
3 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
<AiTopFixed v-if="isAdmin">
<div class="pad-t32"></div>
<div class="select-gird">
<AiPagePicker type="custom" @select="confirmSelect"
<AiPagePicker type="custom" @select="confirmSelect" v-model="girdId"
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
<div flex class="center">
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
@@ -123,8 +123,7 @@ export default {
methods: {
...mapActions(['injectJWeixin', 'wxInvoke']),
confirmSelect(v) {
this.girdId = v?.[0].id
this.girdName = v?.[0].girdName
this.girdName = v?.girdName
this.getListInit()
this.getTotal()
},

View File

@@ -168,7 +168,7 @@ export default {
methods: {
handleSelectGrid(v) {
this.form.girdName = v?.[0]?.girdName || ""
this.form.girdName = v?.girdName || ""
},
chooseAddress() {
uni.chooseLocation({

View File

@@ -435,7 +435,7 @@ export default {
},
handleSelectGrid(v) {
this.form.girdName = v?.[0]?.girdName || ""
this.form.girdName = v?.girdName || ""
},
submit() {