From 785d0190bb0a695e872bdb48eb96bc5d974b4623 Mon Sep 17 00:00:00 2001 From: wxz Date: Thu, 7 Sep 2023 13:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=97=AE=E5=8D=B7=E6=97=B6,a?= =?UTF-8?q?gencyId=E4=BC=A0=E5=8F=82=E6=94=B9=E4=B8=BAbody?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/write/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/form/write/index.vue b/src/views/form/write/index.vue index 01ccd02..7993ed7 100644 --- a/src/views/form/write/index.vue +++ b/src/views/form/write/index.vue @@ -95,7 +95,8 @@ export default { orgType: '',//人员所属类型(组织:agency;部门:dept;网格:grid) realName: '',//填写人姓名 accessKey: '', - anonymous:'' + anonymous:'', + agencyId: '' } }, metaInfo: { @@ -118,7 +119,10 @@ export default { console.log('微信传入token') const token = this.$route.query.token const agencyId = this.$route.query.agencyId + this.anonymous = this.$route.query.anonymous + this.agencyId = agencyId; + console.log('anonymous',this.anonymous); if (token) { this.$store.dispatch('user/setTokens', token) @@ -314,8 +318,9 @@ export default { console.log('提交获取agencyId',this.$store.state.agencyId); // 完成时间 let inActiveTime = document.getElementById('inActiveTime').innerText - let url = this.anonymous == '1'?`/user/project/result/createAnonymously?`:`/user/project/result/create?access_key=${this.accessKey}&` - await this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}${url}agencyId=${this.$route.query.agencyId}`, { + let url = this.anonymous == '1'?`/user/project/result/createAnonymously`:`/user/project/result/create?access_key=${this.accessKey}&` + + await this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}${url}`, { 'completeTime': inActiveTime, 'projectKey': this.projectConfig.projectKey, 'submitOs': ua.os.name, @@ -330,6 +335,7 @@ export default { 'orgName': this.orgName,//人员所属组织名【组织-组织,组织-部门,组织-网格】 'orgType': this.orgType,//人员所属类型(组织:agency;部门:dept;网格:grid) 'realName': this.realName,//填写人姓名 + 'agencyId': this.agencyId //'accessKey':this.accessKey }).then((res) => { if(res.code==0){