From fdb0819fc11706c9d546b9571fdb77c4c7cf575a Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 9 May 2023 10:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/wuxi/AppHandSnapshot/Content.vue | 39 ++++------- src/project/wuxi/AppHandSnapshot/Detail.vue | 5 +- .../wuxi/AppHandSnapshot/SelectUser.vue | 69 ++++++++----------- 3 files changed, 43 insertions(+), 70 deletions(-) diff --git a/src/project/wuxi/AppHandSnapshot/Content.vue b/src/project/wuxi/AppHandSnapshot/Content.vue index f761f38c..eae5da41 100644 --- a/src/project/wuxi/AppHandSnapshot/Content.vue +++ b/src/project/wuxi/AppHandSnapshot/Content.vue @@ -2,10 +2,8 @@
- - - - + + @@ -71,30 +69,19 @@ export default { this.forms.groupId = option.groupId this.forms.groupName = option.groupName this.typeList() - // uni.$on('pagePicker:custom', (res) => { - // this.selectUser = res - // if (res.name) { - // this.forms.name = res.name - // } else { - // this.forms.name = res.girdName - // } - // }) + uni.$on('goback', (res) => { + this.selectUser = res + this.forms.girdId = res.girdId + this.forms.girdName = res.girdName + this.forms.girdMemberId = res.id + this.forms.girdMemberName = res.name + this.forms.name = `${res.girdName}${res.name ? '-' + res.name : ''}` + }) }, onShow() { document.title = this.titleList[this.status] }, methods: { - handleSelectGrid(v) { - // this.forms.name = v.girdName - // this.forms.girdId = v.girdId - // this.selectUser = v - this.forms.girdId = v.girdId - this.forms.girdName = v.girdName - this.forms.girdMemberId = v.id - this.forms.girdMemberName = v.name - this.forms.name = `${v.girdName}${v.name ? '-' + v.name : ''}` - this.selectUser = {...v} - }, typeList() { this.$http.post(`/app/appclapeventgroup/list`, null, { params: { @@ -167,9 +154,9 @@ export default { this.forms.groupName = e[0].label this.forms.groupId = e[0].value }, - // toSelectUser() { - // uni.navigateTo({url: '../AppGridManagement/selectGridMember'}) - // }, + toSelectUser() { + uni.navigateTo({url: `./SelectUser?detailId=${this.id}`}) + }, }, } diff --git a/src/project/wuxi/AppHandSnapshot/Detail.vue b/src/project/wuxi/AppHandSnapshot/Detail.vue index 30699c6c..b718fcfe 100644 --- a/src/project/wuxi/AppHandSnapshot/Detail.vue +++ b/src/project/wuxi/AppHandSnapshot/Detail.vue @@ -207,6 +207,7 @@ export default {