From cf031cf4fd123d6961c00a2d331e41139cace2a9 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 5 Sep 2019 16:25:15 +0100 Subject: [PATCH] Account now displays the name instead of account id --- src/views/users/components/UserDetail.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/users/components/UserDetail.vue b/src/views/users/components/UserDetail.vue index c9f45b02..46298a90 100644 --- a/src/views/users/components/UserDetail.vue +++ b/src/views/users/components/UserDetail.vue @@ -166,6 +166,7 @@ export default { if (this.isEdit) { const id = this.$route.params && this.$route.params.id this.fetchData(id) + this.getRemoteAccountList() } else { this.postForm = Object.assign({}, defaultForm) } @@ -226,10 +227,11 @@ export default { } }) }, - getRemoteAccountList(query) { + getRemoteAccountList(query) { // platform is undefined query = {} query.platform = this.$store.state.platform - query.limit = 100 + query.limit = 100 // to fix limit maybe add another parameter in the Api call + fetchList(query).then(response => { if (!response.data.docs) return this.accountListOptions = response.data.docs.map(v => { return { name: v.name, id: v._id } })