index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <div>
  3. <dev v-if="saberTenantId != 409341">
  4. <div v-if="billType && saberTenantId != 212186 && saberTenantId != 504978 && billType != 11">
  5. <tongjiSchool v-if="billType == 1"></tongjiSchool>
  6. <landTransportation v-else-if="billType == 7"></landTransportation>
  7. <jiatongPage v-else-if="billType == 8"></jiatongPage>
  8. <noctite v-else-if="billType == 9"></noctite>
  9. <equipment-control v-else-if="billType == 10"></equipment-control>
  10. <tireindex v-else-if="billType == 11" :sysType="billType"></tireindex>
  11. <defaultPage v-else :sysType="billType"></defaultPage>
  12. </div>
  13. <div v-else-if="saberTenantId == 212186" style="padding: 10px">
  14. <el-card class="home-container__card">
  15. <div class="title">
  16. <span>
  17. 快速发起
  18. </span>
  19. </div>
  20. <div class="content">
  21. <div class="content-icon" @click="inPage('/productionManagement/index')">
  22. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  23. <span style="font-size: 14px">模拟生产</span>
  24. </div>
  25. </div>
  26. </el-card>
  27. </div>
  28. <div v-else-if="saberTenantId == 504978" style="padding: 10px">
  29. <el-card class="home-container__card">
  30. <div class="title">
  31. <span>
  32. 快速发起
  33. </span>
  34. </div>
  35. <div class="content">
  36. <div class="content-icon" @click="inPage('/EquipmentArchives/index')">
  37. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  38. <span style="font-size: 14px">设备档案</span>
  39. </div>
  40. <div class="content-icon" @click="inPage('/maintenanceQ/index')">
  41. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  42. <span style="font-size: 14px">设备维修</span>
  43. </div>
  44. </div>
  45. </el-card>
  46. </div>
  47. <!--青岛鑫动力新的首页-->
  48. <div v-else-if="billType == 11">
  49. <xindongPower :sysType="billType"></xindongPower>
  50. </div>
  51. </dev>
  52. <!--货代首页-->
  53. <div v-if="saberTenantId == 409341">
  54. <los-home></los-home>
  55. </div>
  56. </div>
  57. </template>
  58. <script>
  59. import tireindex from '@/views/wel/home/tirezujian/tireindex';
  60. import defaultPage from "@/views/wel/home/defaultPage";
  61. import tongjiSchool from "@/views/wel/home/tongjiSchool";
  62. import landTransportation from "@/views/wel/home/landTransportation/landTransportation";
  63. import jiatongPage from "@/views/wel/home/jiatongPage/landTransportation";
  64. import noctite from "@/views/wel/home/noctite/landTransportation";
  65. import equipmentControl from "@/views/wel/home/equipmentControl/landTransportation";
  66. import { getUserInfo } from "@/api/system/user";
  67. import { setStore } from "@/util/store";
  68. import { areaTypeTree } from "@/api/basicData/customerInformation";
  69. import xindongPower from "@/views/wel/home/xindongPower/xindongPower.vue";
  70. import losHome from "@/views/wel/components/losHome.vue";
  71. export default {
  72. name: "wel",
  73. data() {
  74. return {
  75. billType: "",
  76. saberTenantId:''
  77. };
  78. },
  79. created() {
  80. console.log(JSON.parse(localStorage.getItem('saber-tenantId')).content)
  81. this.saberTenantId = JSON.parse(localStorage.getItem('saber-tenantId')).content
  82. // console.log(localStorage.getItem('saber-tenantId'))
  83. getUserInfo().then(res => {
  84. this.billType = res.data.data.billType;
  85. localStorage.setItem('sysitemType', this.billType)
  86. });
  87. if (!localStorage.getItem('areaTypeTree')) {
  88. areaTypeTree().then(res => {
  89. localStorage.setItem('areaTypeTree', JSON.stringify(res.data.data));
  90. })
  91. }
  92. },
  93. components: {
  94. tireindex,
  95. tongjiSchool,
  96. defaultPage,
  97. jiatongPage,
  98. noctite,
  99. equipmentControl,
  100. landTransportation,
  101. xindongPower,
  102. losHome
  103. },
  104. methods: {
  105. inPage(url){
  106. this.$router.push(url);
  107. },
  108. }
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .content {
  113. display: flex;
  114. &-icon {
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. margin: 1.5vh 1vw 0vh 1vw;
  119. span {
  120. margin-top: 0.2vh;
  121. }
  122. }
  123. }
  124. .tradingIcon {
  125. font-size: 36px;
  126. }
  127. </style>