diff --git a/src/views/modules/workRecord/monthrecordinfoDetail.vue b/src/views/modules/workRecord/monthrecordinfoDetail.vue index afaf3da9..fa4c1743 100644 --- a/src/views/modules/workRecord/monthrecordinfoDetail.vue +++ b/src/views/modules/workRecord/monthrecordinfoDetail.vue @@ -109,7 +109,11 @@ export default { isShowCaseBtn: false, isShowGridBtn: false, isShowPersonBtn: false, - isShowSortBtn: false + isShowSortBtn: false, + caseId: '', + gridId: '', + personId: '', + queryDisabled: '' } }, computed: { @@ -131,6 +135,7 @@ export default { MapSelect }, mounted () { + this.queryDisabled = this.$route.query.disabled if (this.$route.query.disabled === '0') { this.pageDisabled = false this.hideUpload = false @@ -147,14 +152,17 @@ export default { if (this.$route.query.caseId !== '' && this.$route.query.caseId != null) { // 展示优秀案例跳转按钮 this.isShowCaseBtn = true + this.caseId = this.$route.query.caseId } if (this.$route.query.gridId !== '' && this.$route.query.gridId != null) { // 展示示范网格跳转按钮 this.isShowGridBtn = true + this.gridId = this.$route.query.gridId } if (this.$route.query.personId !== '' && this.$route.query.personId != null) { // 展示身边榜样跳转按钮 this.isShowPersonBtn = true + this.personId = this.$route.query.personId } if (this.$route.query.isHaveSort === '1') { // 展示网格排序跳转按钮 @@ -164,19 +172,19 @@ export default { methods: { goToCaseHandle () { this.$parent.selectComponent = 'MonthexcellentcaseDetail' - this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.$route.query.caseId, disabled: this.$route.query.disabled, infoId: this.$route.query.id } }) + this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.caseId, disabled: this.queryDisabled, infoId: this.dataForm.id } }) }, goToGridHandle () { this.$parent.selectComponent = 'MonthexcellentgridDetail' - this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.$route.query.gridId, disabled: this.$route.query.disabled, infoId: this.$route.query.id } }) + this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.gridId, disabled: this.queryDisabled, infoId: this.dataForm.id } }) }, goToPersonHandle () { this.$parent.selectComponent = 'MonthexcellentpersonDetail' - this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.$route.query.personId, disabled: this.$route.query.disabled, infoId: this.$route.query.id } }) + this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.personId, disabled: this.queryDisabled, infoId: this.dataForm.id } }) }, goToSortHandle () { this.$parent.selectComponent = 'MonthgridsortDetail' - this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { isAdd: '2', disabled: this.$route.query.disabled, infoId: this.$route.query.id } }) + this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { isAdd: '2', disabled: this.queryDisabled, infoId: this.dataForm.id } }) }, init () { this.dataForm.id = this.$route.query.id