diff --git a/src/views/modules/communityParty/stas/index.vue b/src/views/modules/communityParty/stas/index.vue index 45042991e..6f2cf1861 100644 --- a/src/views/modules/communityParty/stas/index.vue +++ b/src/views/modules/communityParty/stas/index.vue @@ -142,12 +142,13 @@ export default { }, async created () { - this.getOrgList() + await this.getOrgList() + await this.handleSearch() }, async mounted () { const { user } = this.$store.state this.agencyId = user.agencyId - await this.handleSearch() + }, methods: { @@ -193,9 +194,12 @@ export default { this.form.startTime = ''; this.form.endTime = ''; } + if (this.form.joinOrgId === '' || this.form.joinOrgId === null || this.form.joinOrgId === undefined){ + console.log(this.orgList) let a = this.orgList[0] this.form.joinOrgId = a.id; + this.joinOrgIds = this.form.joinOrgId }else { this.form.joinOrgId = this.joinOrgIds[this.joinOrgIds.length - 1]; }