add:页面跳转添加ticket
This commit is contained in:
@@ -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 }) => {
|
||||||
|
|||||||
@@ -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 } });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user