|
|
@ -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){ |
|
|
|