随手拍

This commit is contained in:
liuye
2024-11-12 16:47:27 +08:00
parent 9162649d9d
commit 924fefcc0e
2 changed files with 8 additions and 8 deletions

View File

@@ -168,7 +168,9 @@ export default {
})
},
getDict() {
this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => {
this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`, null, {
withoutToken: true,
}).then(res => {
if (res.code == 0) {
this.dictList = res.data.records.map(v => {
return {
@@ -233,7 +235,9 @@ export default {
},
getAuth() {
this.$nextTick(() => {
this.token && this.getUserInfo()
this.token && this.getUserInfo().then(() => {
this.getDict()
})
})
}
}

View File

@@ -87,6 +87,7 @@ export default {
...mapState(['user']),
},
onLoad() {
this.typeList()
this.forms.girdId = this.user.girdInfos2G[0].girdId
this.forms.girdName = this.user.girdInfos2G[0].girdName
this.forms.girdMemberId = this.user.girdMemberId
@@ -94,9 +95,6 @@ export default {
this.forms.name = this.user.name
this.forms.phone = this.user.phone
},
onShow() {
this.typeList()
},
methods: {
chooseAddress() {
uni.authorize({
@@ -131,9 +129,7 @@ export default {
})
},
typeList() {
this.$instance.post(`/app/apppatrolreportgroupv2/list?current=1&size=9999`, null, {
withoutToken: true,
}).then((res) => {
this.$instance.post(`/app/apppatrolreportgroupv2/list?current=1&size=9999`).then((res) => {
if (res.code == 0) {
this.myList = res.data.records
}