删除多余

This commit is contained in:
shijingjing
2022-02-14 13:42:07 +08:00
parent 96a7f2f6f8
commit e8abec7eb9

View File

@@ -69,7 +69,7 @@ export default {
current: 1, current: 1,
pages: 0, pages: 0,
show: false, show: false,
myGirdList: [], // myGirdList: [],
girdId: '', girdId: '',
groupName: '', groupName: '',
girdNameText: '所属网格', girdNameText: '所属网格',
@@ -112,7 +112,7 @@ export default {
}, },
mounted() { mounted() {
this.current = 1 this.current = 1
this.girdList() // this.girdList()
this.getList() this.getList()
uni.$on('nextList', () => { uni.$on('nextList', () => {
this.current++ this.current++
@@ -182,24 +182,24 @@ export default {
uni.navigateTo({ url: './add' }) uni.navigateTo({ url: './add' })
}, },
girdList() { // girdList() {
this.$http // this.$http
.post(`/app/appgirdmemberinfo/queryMyGirdListWithOut01`, null, { // .post(`/app/appgirdmemberinfo/queryMyGirdListWithOut01`, null, {
params: { // params: {
size: 9999, // size: 9999,
}, // },
}) // })
.then((res) => { // .then((res) => {
if (res.code == 0) { // if (res.code == 0) {
this.myGirdList = res.data // this.myGirdList = res.data
var all = { // var all = {
id: '', // id: '',
girdName: '全部', // girdName: '全部',
} // }
this.myGirdList.unshift(all) // this.myGirdList.unshift(all)
} // }
}) // })
}, // },
confirm(e) { confirm(e) {
if (this.show) { if (this.show) {