|
|
@ -15,6 +15,7 @@ |
|
|
|
<div v-if="writeStatus==1"> |
|
|
|
<project-form v-if="projectConfig.projectKey" |
|
|
|
:project-config="projectConfig" |
|
|
|
:access-key="accessKey" |
|
|
|
@submit="submitForm" /> |
|
|
|
</div> |
|
|
|
<div v-if="writeStatus==2" |
|
|
@ -83,6 +84,7 @@ export default { |
|
|
|
orgName: '',//人员所属组织名【组织-组织,组织-部门,组织-网格】 |
|
|
|
orgType: '',//人员所属类型(组织:agency;部门:dept;网格:grid) |
|
|
|
realName: '',//填写人姓名 |
|
|
|
accessKey: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
metaInfo: { |
|
|
@ -99,6 +101,9 @@ export default { |
|
|
|
this.orgName = this.$route.query.orgName |
|
|
|
this.orgType = this.$route.query.orgType |
|
|
|
this.realName = this.$route.query.realName |
|
|
|
this.accessKey = this.$route.query.accessKey |
|
|
|
// const token = this.$route.query.token |
|
|
|
// this.$store.dispatch('user/setTokens', token) |
|
|
|
|
|
|
|
let key = this.$route.query.key || this.$route.params.key |
|
|
|
this.projectConfig.projectKey = key |
|
|
@ -278,7 +283,7 @@ export default { |
|
|
|
submitForm (data) { |
|
|
|
// 完成时间 |
|
|
|
let inActiveTime = document.getElementById('inActiveTime').innerText |
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/result/create`, { |
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/result/create?access_key=${this.accessKey}`, { |
|
|
|
'completeTime': inActiveTime, |
|
|
|
'projectKey': this.projectConfig.projectKey, |
|
|
|
'submitOs': ua.os.name, |
|
|
@ -293,6 +298,7 @@ export default { |
|
|
|
'orgName': this.orgName,//人员所属组织名【组织-组织,组织-部门,组织-网格】 |
|
|
|
'orgType': this.orgType,//人员所属类型(组织:agency;部门:dept;网格:grid) |
|
|
|
'realName': this.realName,//填写人姓名 |
|
|
|
//'accessKey':this.accessKey |
|
|
|
}).then(() => { |
|
|
|
this.writeStatus = 2 |
|
|
|
if (this.userProjectSetting.submitJumpUrl) { |
|
|
|