随手拍

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() { 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) { if (res.code == 0) {
this.dictList = res.data.records.map(v => { this.dictList = res.data.records.map(v => {
return { return {
@@ -233,7 +235,9 @@ export default {
}, },
getAuth() { getAuth() {
this.$nextTick(() => { this.$nextTick(() => {
this.token && this.getUserInfo() this.token && this.getUserInfo().then(() => {
this.getDict()
})
}) })
} }
} }

View File

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