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}`}) } }, }