diff --git a/src/mods/conv/AppPhotoReport/PhotoForm.vue b/src/mods/conv/AppPhotoReport/PhotoForm.vue index 8bce63a..c856dcc 100644 --- a/src/mods/conv/AppPhotoReport/PhotoForm.vue +++ b/src/mods/conv/AppPhotoReport/PhotoForm.vue @@ -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() + }) }) } } diff --git a/src/project/biaopin/AppPatrolReport/Add.vue b/src/project/biaopin/AppPatrolReport/Add.vue index 5b5e4e1..1fb5e9c 100644 --- a/src/project/biaopin/AppPatrolReport/Add.vue +++ b/src/project/biaopin/AppPatrolReport/Add.vue @@ -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 }