修复网格选择

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

View File

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

View File

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