From 924fefcc0ec2a80695301708660c8428cdc4dc8d Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 12 Nov 2024 16:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=89=8B=E6=8B=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mods/conv/AppPhotoReport/PhotoForm.vue | 8 ++++++-- src/project/biaopin/AppPatrolReport/Add.vue | 8 ++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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 }