indexjinan.vue 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="app-container accessAuthorization">
  3. <!--授权-->
  4. <authorize v-if="pageType == 1"></authorize>
  5. <!--申请-->
  6. <application v-if="pageType == 2"></application>
  7. </div>
  8. </template>
  9. <script>
  10. import authorize from "./authorizejinan.vue";
  11. import application from "./applicationjinan.vue";
  12. export default {
  13. name: "index",
  14. components: {
  15. authorize,
  16. application
  17. },
  18. data(){
  19. return{
  20. pageType:1,
  21. }
  22. },
  23. created() {
  24. },
  25. mounted(){
  26. },
  27. methods:{
  28. //选项卡切换
  29. titleClick(type){
  30. if(this.pageType != type){
  31. this.pageType = type
  32. }
  33. }
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .accessAuthorization{
  39. flex:1;
  40. display: flex!important;
  41. flex-direction: column;
  42. overflow: hidden;
  43. *{
  44. margin:0;
  45. font-weight:500;
  46. }
  47. }
  48. </style>