add:页面跳转添加ticket

This commit is contained in:
2021-09-15 15:49:49 +08:00
parent f6e81be1ab
commit ee746106bf
2 changed files with 8 additions and 3 deletions

View File

@@ -292,7 +292,7 @@ export default {
// }); // });
}, },
gotoProject(type) { gotoProject(type) {
this.$router.push({ name: 'projectSelect', params: { type: type } }); this.$router.push({ name: 'projectSelect', params: { type: type, ticket: this.$route.query.ticket } });
}, },
onLoadStatistic() { onLoadStatistic() {
apis.projectStatistics().then(({ result }) => { apis.projectStatistics().then(({ result }) => {

View File

@@ -99,6 +99,7 @@ export default {
], ],
loading: false, loading: false,
finished: true, finished: true,
ticket: '',
}; };
}, },
created() { created() {
@@ -114,14 +115,18 @@ export default {
// this.data = result; // this.data = result;
// }); // });
this.type = this.$route.params.type; this.type = this.$route.params.type;
this.ticket = this.$route.params.ticket;
}, },
gotoDetail(id) { gotoDetail(id) {
if (this.type == 'pg') { if (this.type == 'pg') {
// 评估结果页面 // 评估结果页面
this.$router.push({ name: 'reportCompensate', params: { projectid: id, type: this.type } }); this.$router.push({
name: 'reportCompensate',
params: { projectid: id, type: this.type, ticket: this.ticket },
});
} else if (this.type == 'xy') { } else if (this.type == 'xy') {
// 协议结果页面 // 协议结果页面
this.$router.push({ name: 'reportAgreement', params: { projectid: id, type: this.type } }); this.$router.push({ name: 'reportAgreement', params: { projectid: id, type: this.type, ticket: this.ticket } });
} }
}, },
}, },