index.vue 962 B

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