Home.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <div class="home-wrapper">
  3. <div class="aside aside-left" :class="{ collapse: layoutStore.leftCollapse }">
  4. <!-- 左侧面板 -->
  5. <Transition name="emerge-left">
  6. <PanelSgzy v-if="layoutStore.leftPanelType === 'sgzy'" />
  7. </Transition>
  8. <Transition name="emerge-left">
  9. <PanelKypm v-if="layoutStore.leftPanelType === 'kypm'" />
  10. </Transition>
  11. <Transition name="emerge-left">
  12. <PanelSjwg v-if="layoutStore.leftPanelType === 'kytc'" />
  13. </Transition>
  14. </div>
  15. <!-- 工具栏 -->
  16. <ToolList />
  17. <!-- 空域分层 -->
  18. <Transition name="emerge-left">
  19. <FloatPanelFcky v-if="layoutStore.floatPanels.fcky" />
  20. </Transition>
  21. </div>
  22. </template>
  23. <script setup>
  24. import { onMounted } from 'vue'
  25. import ToolList from './cpns/ToolList.vue'
  26. import useLayoutStore from '@/store/layout'
  27. import PanelSgzy from './cpns/PanelSgzy.vue'
  28. import PanelKypm from './cpns/PanelKypm.vue'
  29. import PanelSjwg from './cpns/PanelSjwg.vue'
  30. import FloatPanelFcky from '@/views/home/cpns/FloatPanelFcky.vue'
  31. const layoutStore = useLayoutStore()
  32. onMounted(() => {})
  33. </script>
  34. <style lang="scss" scoped>
  35. .home-wrapper {
  36. transition:
  37. left 0.5s ease-out,
  38. right 0.5s ease-out;
  39. .aside {
  40. position: absolute;
  41. height: calc(100vh - var(--header-height) - var(--page-margin-y));
  42. width: var(--aside-width);
  43. padding: 15px 20px 20px;
  44. transition: all 0.5s ease;
  45. background: linear-gradient(to bottom, rgba(0, 0, 255, 0.1) 50%, rgba(0, 10, 30, 0.3) 100%);
  46. border-radius: 0px 0px 12px 12px;
  47. z-index: 3;
  48. }
  49. .aside-left {
  50. left: 0;
  51. &.collapse {
  52. left: calc(0px - var(--aside-width));
  53. }
  54. }
  55. .aside-right {
  56. right: 0;
  57. display: flex;
  58. flex-direction: column;
  59. justify-content: space-between;
  60. &.collapse {
  61. right: calc(0px - var(--aside-width));
  62. }
  63. }
  64. .b-fxdt {
  65. li {
  66. img {
  67. width: 250px;
  68. height: 110px;
  69. margin-left: -10px;
  70. }
  71. & > div {
  72. bottom: 5px;
  73. left: 100px;
  74. z-index: 9;
  75. & > span {
  76. display: block;
  77. font-size: 20px;
  78. text-shadow: 1px 2px 0px rgba(17, 20, 22, 0.22);
  79. }
  80. & > div {
  81. span:first-child {
  82. font-size: 30px;
  83. background: linear-gradient(80deg, rgba(29, 128, 224, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  84. -webkit-background-clip: text !important;
  85. -webkit-text-fill-color: transparent;
  86. margin-right: 5px;
  87. }
  88. span:last-child {
  89. font-family: PingFang;
  90. font-size: 14px;
  91. text-shadow: 1px 2px 0px rgba(17, 20, 22, 0.22);
  92. }
  93. }
  94. }
  95. &:last-child > div {
  96. & > span {
  97. color: #e9ebcf;
  98. }
  99. & > div > span:first-child {
  100. background: linear-gradient(80deg, rgba(215, 215, 169, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  101. }
  102. }
  103. }
  104. }
  105. .tag-text {
  106. display: block;
  107. height: 20px;
  108. min-width: 75px;
  109. width: fit-content;
  110. padding: 0 10px;
  111. border-radius: 10px;
  112. border: 1px solid #98cda4;
  113. font-weight: bold;
  114. font-size: 14px;
  115. line-height: 18px;
  116. color: #98cda4;
  117. text-align: center;
  118. &.red {
  119. color: #e34b4b;
  120. border-color: #e34b4b;
  121. }
  122. &.orange {
  123. color: #dfa9a9;
  124. border-color: #dfa9a9;
  125. }
  126. &.yellow {
  127. color: #ced09d;
  128. border-color: #ced09d;
  129. }
  130. }
  131. .tbody-row3 {
  132. max-height: 150px;
  133. overflow: hidden;
  134. }
  135. .b-wgzb {
  136. height: 200px;
  137. position: relative;
  138. #bg-wgzb {
  139. position: absolute;
  140. left: 0;
  141. top: -80px;
  142. }
  143. ul {
  144. display: flex;
  145. flex-wrap: wrap;
  146. align-content: space-between;
  147. height: 100%;
  148. padding: 15px;
  149. li {
  150. width: 50%;
  151. height: fit-content;
  152. display: flex;
  153. flex-direction: column;
  154. & > span {
  155. display: block;
  156. width: 104px;
  157. height: 28px;
  158. margin-left: 20px;
  159. background: url('../../assets/images/page/bg-label.png');
  160. background-size: cover !important;
  161. line-height: 28px;
  162. font-size: 16px;
  163. text-align: center;
  164. }
  165. & > div {
  166. width: 163px;
  167. height: 45px;
  168. padding-left: 20px;
  169. display: flex;
  170. align-items: center;
  171. background: url('../../assets/images/page/bg-text-line.png');
  172. background-size: cover !important;
  173. & > span {
  174. font-size: 20px;
  175. margin-right: 13px;
  176. }
  177. & > div {
  178. width: 47px;
  179. height: 20px;
  180. background: linear-gradient(0deg, rgba(78, 113, 183, 0.7), rgba(158, 183, 234, 0.1));
  181. border-radius: 10px;
  182. border: 1px solid;
  183. // border-image: linear-gradient(0deg, #2C53A1, #97B1E4) 1 1;
  184. color: #97b4ed;
  185. font-size: 18px;
  186. line-height: 18px;
  187. text-align: center;
  188. & > span:last-child {
  189. font-size: 14px;
  190. margin-left: 1px;
  191. }
  192. }
  193. }
  194. &:nth-child(2n) {
  195. align-items: end;
  196. & > span {
  197. margin-right: 20px;
  198. background: url('../../assets/images/page/bg-label2.png');
  199. }
  200. & > div {
  201. padding-right: 20px;
  202. justify-content: end;
  203. background: url('../../assets/images/page/bg-text-line2.png');
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. </style>