From ee746106bf2ef16321a7cd2a2b57b7a9cf42cbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?= <188633308@qq.com> Date: Wed, 15 Sep 2021 15:49:49 +0800 Subject: [PATCH] =?UTF-8?q?add:=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0ticket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/views/index.vue | 2 +- FrontCode2/sunshine_levy/src/views/project/index.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index e3315a1..761b8d5 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -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 }) => { diff --git a/FrontCode2/sunshine_levy/src/views/project/index.vue b/FrontCode2/sunshine_levy/src/views/project/index.vue index f79a201..7aee0c1 100644 --- a/FrontCode2/sunshine_levy/src/views/project/index.vue +++ b/FrontCode2/sunshine_levy/src/views/project/index.vue @@ -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 } }); } }, },