indexList.vue 889 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div>
  3. <classifyZH v-if="type==1" @typeChange="typeChange" />
  4. <classifyEN v-if="type==2" @typeChange="typeChange" />
  5. </div>
  6. </template>
  7. <script>
  8. import classifyZH from './classifylistV2.vue'
  9. import classifyEN from './classifyEnlistV2.vue'
  10. export default {
  11. components:{
  12. classifyZH,
  13. classifyEN
  14. },
  15. data() {
  16. return {
  17. type:'1',//1 中文研报分类 2英文研报分类
  18. }
  19. },
  20. methods:{
  21. typeChange(e){
  22. this.type=e
  23. }
  24. },
  25. mounted(){
  26. const {classifyBtn,enClassifyBtn,checkPermissionBtn} = this.permissionBtn
  27. if(checkPermissionBtn(classifyBtn.classifyList_cnClassify)){
  28. this.type = '1'
  29. }else if(checkPermissionBtn(enClassifyBtn.classifyList_enClassify)){
  30. this.type = '2'
  31. }
  32. }
  33. }
  34. </script>
  35. <style>
  36. </style>