index.vue 635 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div>
  3. <tongjiSchool v-if="billType == 1"></tongjiSchool>
  4. <defaultPage v-else :sysType='billType'></defaultPage>
  5. </div>
  6. </template>
  7. <script>
  8. import defaultPage from "@/views/wel/home/defaultPage";
  9. import tongjiSchool from "@/views/wel/home/tongjiSchool";
  10. import {getUserInfo} from "@/api/system/user";
  11. export default {
  12. name: "wel",
  13. data() {
  14. return {
  15. billType:'',
  16. };
  17. },
  18. created() {
  19. getUserInfo().then(res=>{
  20. this.billType = res.data.data.billType
  21. })
  22. },
  23. components: {
  24. tongjiSchool,
  25. defaultPage
  26. },
  27. methods: {
  28. }
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. </style>