|
|
@ -21,6 +21,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { checkPermi } from "@/utils/permission"; |
|
|
import { study_info} from "@/api/business/study/study"; |
|
|
import { study_info} from "@/api/business/study/study"; |
|
|
import ytbd from './ytbd.vue' |
|
|
import ytbd from './ytbd.vue' |
|
|
import tbbd from './tbbd.vue' |
|
|
import tbbd from './tbbd.vue' |
|
|
@ -37,15 +38,8 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
showDetail: false, |
|
|
showDetail: false, |
|
|
tabList: [ |
|
|
|
|
|
{ key: 'ytbd', name: 'page.business.study.studyEnter.ytbdlb' }, |
|
|
|
|
|
{ key: 'tbbd', name: 'page.business.study.studyEnter.tbbdlb' }, |
|
|
|
|
|
{ key: 'syxx', name: 'page.business.study.studyEnter.syxx' }, |
|
|
|
|
|
{ key: 'wzlb', name: 'page.business.study.studyEnter.wzlb' }, |
|
|
|
|
|
{ key: 'syff', name: 'page.business.study.studyEnter.syfflb' }, |
|
|
|
|
|
{ key: 'syj', name: 'page.business.study.studyEnter.syjsygl' } |
|
|
|
|
|
], |
|
|
|
|
|
active: this.$route.params.tab || 'ytbd', |
|
|
|
|
|
|
|
|
tabList: [], |
|
|
|
|
|
active: '', |
|
|
|
|
|
|
|
|
study: {}, |
|
|
study: {}, |
|
|
} |
|
|
} |
|
|
@ -54,10 +48,34 @@ export default { |
|
|
// let x = this.$route.params |
|
|
// let x = this.$route.params |
|
|
// let y = this.$route.query |
|
|
// let y = this.$route.query |
|
|
// debugger |
|
|
// debugger |
|
|
|
|
|
this.initTab() |
|
|
this.getInfo() |
|
|
this.getInfo() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
checkPermi, |
|
|
|
|
|
initTab(){ |
|
|
|
|
|
this.tabList = [] |
|
|
|
|
|
if(this.checkPermi(['business:studyFormPreTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'ytbd', name: 'page.business.study.studyEnter.ytbdlb' }) |
|
|
|
|
|
} |
|
|
|
|
|
if(this.checkPermi(['business:studyFormFillTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'tbbd', name: 'page.business.study.studyEnter.tbbdlb' }) |
|
|
|
|
|
} |
|
|
|
|
|
if(this.checkPermi(['business:studyFormPlanTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'syxx', name: 'page.business.study.studyEnter.syxx' }) |
|
|
|
|
|
} |
|
|
|
|
|
if(this.checkPermi(['business:studyWzlbTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'wzlb', name: 'page.business.study.studyEnter.wzlb' }) |
|
|
|
|
|
} |
|
|
|
|
|
if(this.checkPermi(['business:studyMethodTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'syff', name: 'page.business.study.studyEnter.syfflb' }) |
|
|
|
|
|
} |
|
|
|
|
|
if(this.checkPermi(['business:studyRoomTab'])){ |
|
|
|
|
|
this.tabList.push({ key: 'syj', name: 'page.business.study.studyEnter.syjsygl' }) |
|
|
|
|
|
} |
|
|
|
|
|
this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :'' |
|
|
|
|
|
}, |
|
|
getInfo(){ |
|
|
getInfo(){ |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
study_info({id:this.$route.params.studyId}).then(({data}) => { |
|
|
study_info({id:this.$route.params.studyId}).then(({data}) => { |
|
|
|