diff --git a/src/router/ebiz/nbs.js b/src/router/ebiz/nbs.js index a8d95108e..19f02cbed 100644 --- a/src/router/ebiz/nbs.js +++ b/src/router/ebiz/nbs.js @@ -37,7 +37,7 @@ export default [ } }, { - path: '/nbs/result/:id/:half/:nbsState', + path: '/nbs/result/:id/:half/:nbsState/:canClick', name: 'nbsResult', component: nbsResult, meta: { diff --git a/src/views/ebiz/nbs/PDF.vue b/src/views/ebiz/nbs/PDF.vue index 7a67c31fe..81172141f 100644 --- a/src/views/ebiz/nbs/PDF.vue +++ b/src/views/ebiz/nbs/PDF.vue @@ -57,7 +57,7 @@ export default { routerInfo: { type: 2, index: -1, - path: `/nbs/result/${this.orderNo}/${this.half}/${this.nbsState}` + path: `/nbs/result/${this.orderNo}/${this.half}/${this.nbsState}/true` } }) } diff --git a/src/views/ebiz/nbs/Result.vue b/src/views/ebiz/nbs/Result.vue index d45fa00fd..fc07c4c99 100644 --- a/src/views/ebiz/nbs/Result.vue +++ b/src/views/ebiz/nbs/Result.vue @@ -17,12 +17,12 @@ import { makePDF } from '@/api/ebiz/nbs' export default { created() { window.appCallBack = this.appCallBack //app回调 - this.canClick = true + this.canClick = this.$route.params.canClick || true }, data() { return { isHalfActive: this.$route.params.half === '0', - canClick: true, + canClick: this.$route.params.canClick || true, nbsState: this.$route.params.nbsState, orderNo: this.$route.params.id, half: this.$route.params.half