diff --git a/src/views/business/study/comp/ytbd/Xq.vue b/src/views/business/study/comp/ytbd/Xq.vue index f6cf103..196b9fb 100644 --- a/src/views/business/study/comp/ytbd/Xq.vue +++ b/src/views/business/study/comp/ytbd/Xq.vue @@ -192,6 +192,25 @@ export default { this.openApprove = true } }, + toRead(data) { + this.$alert(data.ffmc, '', { + confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), + callback: action => { + if (this.$route.path === data.toUrl) { + this.$emit('changeTab', { key: 'syff' }) + } else { + let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => { + return tab.path === data.toUrl + }) + if (index > -1) { + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + } else { + this.$tab.openPage("loading", data.toUrl) + } + } + } + }); + }, getIsMatchSubject() { studySubject_isMatchSubject({ studySubjectId: this.form.studySubjectId }).then(response => { this.isMatchSubject = response.data