From fdf91c34955f51629a9dec0b49d35ed12dd959eb Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Wed, 16 Mar 2022 20:31:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E9=80=89=E6=8B=A9org=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tickets/RequestApplicationPerm/CreateUpdate.vue | 4 ++-- src/views/tickets/RequestAssetPerm/CreateUpdate.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue index c1930a47a..148514f7e 100644 --- a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue @@ -190,7 +190,7 @@ export default { component: Select2, el: { multiple: false, - options: this.$store.state.users.profile.orgs?.map((item) => { + options: this.$store.state.users.profile.myorgs?.map((item) => { return { label: item.name, value: item.id } }) }, @@ -222,7 +222,7 @@ export default { } }, mounted() { - let userAllOrgIds = this.$store.state.users.profile['orgs'] + let userAllOrgIds = this.$store.state.users.profile['myorgs'] const currentOrgId = this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : null userAllOrgIds = userAllOrgIds ? userAllOrgIds.map(i => i.id) : [] if (userAllOrgIds.length > 0) { diff --git a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue index c5ac6a489..14d4bfa07 100644 --- a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue @@ -101,7 +101,7 @@ export default { component: Select2, el: { multiple: false, - options: this.$store.state.users.profile['orgs']?.map((item) => { + options: this.$store.state.users.profile['myorgs']?.map((item) => { return { label: item.name, value: item.id } }) }, @@ -130,7 +130,7 @@ export default { } }, mounted() { - let userAllOrgIds = this.$store.state.users.profile['orgs'] + let userAllOrgIds = this.$store.state.users.profile['myorgs'] const currentOrgId = this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : null userAllOrgIds = userAllOrgIds ? userAllOrgIds.map(i => i.id) : [] if (userAllOrgIds.length > 0) {