index.vue 4.2 KB

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