add:页面跳转添加ticket
This commit is contained in:
@@ -292,7 +292,7 @@ export default {
|
||||
// });
|
||||
},
|
||||
gotoProject(type) {
|
||||
this.$router.push({ name: 'projectSelect', params: { type: type } });
|
||||
this.$router.push({ name: 'projectSelect', params: { type: type, ticket: this.$route.query.ticket } });
|
||||
},
|
||||
onLoadStatistic() {
|
||||
apis.projectStatistics().then(({ result }) => {
|
||||
|
||||
@@ -99,6 +99,7 @@ export default {
|
||||
],
|
||||
loading: false,
|
||||
finished: true,
|
||||
ticket: '',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -114,14 +115,18 @@ export default {
|
||||
// this.data = result;
|
||||
// });
|
||||
this.type = this.$route.params.type;
|
||||
this.ticket = this.$route.params.ticket;
|
||||
},
|
||||
gotoDetail(id) {
|
||||
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') {
|
||||
// 协议结果页面
|
||||
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 } });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user