From e468bdca51a9fb6143f7022b26f3493e1ab42699 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 20:23:00 +0800 Subject: [PATCH] BUG 28177 --- src/apps/AppSpecialPeople/add.vue | 14 +++++++++++--- src/apps/AppWalkask/selectType.vue | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/apps/AppSpecialPeople/add.vue b/src/apps/AppSpecialPeople/add.vue index 1fea3dba..5525c626 100644 --- a/src/apps/AppSpecialPeople/add.vue +++ b/src/apps/AppSpecialPeople/add.vue @@ -213,9 +213,18 @@ export default { this.getType() }, onShow() { - document.title = this.isEdit ? "编辑人员" : '新增人员' + this.appId = this.$route.query.appId + if (this.isEdit) { + document.title = "编辑人员" + this.getDetail() + } else { + document.title = '新增人员' + if (this.appId) { + this.typeConfirm([this.$route.query]) + } + } + - this.getDetail() }, methods: { ...mapActions(['selectEnterpriseContact']), @@ -479,7 +488,6 @@ export default { }).then(res => { if (res?.data) { this.formData = res.data - this.appId = appId } }) } diff --git a/src/apps/AppWalkask/selectType.vue b/src/apps/AppWalkask/selectType.vue index dabce8ac..bd0496e0 100644 --- a/src/apps/AppWalkask/selectType.vue +++ b/src/apps/AppWalkask/selectType.vue @@ -174,7 +174,7 @@ export default { this.getUsers() }, gotoSpecialPersion() { - uni.navigateTo({url: '/apps/AppSpecialPeople/add'}) + uni.navigateTo({url: `/apps/AppSpecialPeople/add?appId=${this.appId}&appName=${this.applicationName}`}) } }, }