App.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div v-if="this.$store.state.isLogin" class="main-container">
  3. <HeaderVue class="header"></HeaderVue>
  4. <div class="main-app">
  5. <div class="aside"><AsideVue></AsideVue></div>
  6. <div class="section">
  7. <div class="first-title">
  8. {{ this.$store.state.firstTitle }}
  9. </div>
  10. <div class="main-section"><router-view></router-view></div>
  11. </div>
  12. </div>
  13. <!-- <FooterVue></FooterVue> -->
  14. </div>
  15. <router-view v-else></router-view>
  16. </template>
  17. <script>
  18. import HeaderVue from "./components/Header.vue";
  19. import AsideVue from "./components/Aside.vue";
  20. import FooterVue from "./components/Footer.vue";
  21. import * as echarts from "echarts";
  22. import { provide } from "vue";
  23. export default {
  24. components: {
  25. HeaderVue,
  26. AsideVue,
  27. FooterVue,
  28. },
  29. data() {
  30. return {};
  31. },
  32. setup() {
  33. provide("ec", echarts);
  34. },
  35. };
  36. </script>
  37. <style>
  38. .main-container {
  39. height: 100%;
  40. width: 100%;
  41. min-height: 875px;
  42. min-width: 1200px;
  43. }
  44. .footer {
  45. text-align: center;
  46. }
  47. .main-app {
  48. width: 100%;
  49. height: calc(100% - 60px);
  50. display: flex;
  51. }
  52. .section {
  53. width: 100%;
  54. background: #f4f5f6;
  55. overflow: auto;
  56. }
  57. .first-title {
  58. height: 52px;
  59. line-height: 52px;
  60. width: 100%;
  61. box-sizing: border-box;
  62. background: #fff;
  63. font-size: 18px;
  64. font-family: PingFangSC-Medium, PingFang SC;
  65. font-weight: 500;
  66. color: #333d43;
  67. padding-left: 20px;
  68. }
  69. .main-section {
  70. margin: 24px 0 0 24px;
  71. height: calc(100vh - 136px);
  72. overflow-y: auto;
  73. background: #fff;
  74. overflow-x: hidden;
  75. }
  76. .line-container-p18 {
  77. padding: 18px;
  78. background: #fff;
  79. }
  80. .line-container-p24 {
  81. padding: 24px;
  82. background: #fff;
  83. }
  84. .full-container-p24 {
  85. padding: 24px;
  86. min-height: calc(100% - 48px);
  87. background: #fff;
  88. }
  89. .df {
  90. display: flex;
  91. }
  92. .ffw {
  93. flex-flow: wrap;
  94. }
  95. .jcsa {
  96. justify-content: space-around;
  97. }
  98. .jcsb {
  99. justify-content: space-between;
  100. }
  101. .aic {
  102. align-items: center;
  103. }
  104. .dib {
  105. display: inline-block;
  106. }
  107. .ml8 {
  108. margin-left: 8px;
  109. }
  110. .jcfe {
  111. justify-content: flex-end;
  112. }
  113. .mt20 {
  114. margin-top: 20px;
  115. }
  116. .mb20 {
  117. margin-bottom: 20px;
  118. }
  119. .mt30 {
  120. margin-top: 30px;
  121. }
  122. .mt50 {
  123. margin-top: 50px;
  124. }
  125. .container-title {
  126. font-size: 18px;
  127. font-family: PingFangSC-Medium, PingFang SC;
  128. font-weight: 500;
  129. color: #0094fe;
  130. margin: 15px 0 15px 0;
  131. }
  132. .container-second-title {
  133. font-size: 16px;
  134. font-family: PingFangSC-Medium, PingFang SC;
  135. font-weight: 500;
  136. color: #0094fe;
  137. margin: 15px 0 15px 0;
  138. }
  139. .line {
  140. display: flex;
  141. align-items: center;
  142. align-content: flex-start;
  143. margin: 20px;
  144. }
  145. .info-line {
  146. display: flex;
  147. align-items: center;
  148. align-content: flex-start;
  149. margin-right: 20px;
  150. }
  151. .info-line-title {
  152. width: 120px;
  153. height: 100%;
  154. font-size: 14px;
  155. font-family: PingFangSC-Regular, PingFang SC;
  156. font-weight: 400;
  157. color: #353a42;
  158. line-height: 100%;
  159. text-align: right;
  160. padding-right: 20px;
  161. }
  162. .info-line-text {
  163. width: 240px !important;
  164. height: 100%;
  165. line-height: 100%;
  166. }
  167. .info-line-textarea {
  168. width: 640px;
  169. height: 100%;
  170. line-height: 100%;
  171. }
  172. .pointer {
  173. cursor: pointer;
  174. }
  175. .el-upload-list__item-thumbnail {
  176. object-fit: contain !important;
  177. }
  178. .el-input__inner {
  179. text-align: center;
  180. color: #777 !important;
  181. }
  182. .el-upload--picture-card {
  183. border: none;
  184. }
  185. .amap-logo {
  186. display: none !important;
  187. opacity: 0 !important;
  188. }
  189. .amap-copyright {
  190. opacity: 0 !important;
  191. }
  192. .ml20 {
  193. margin-left: 20px;
  194. }
  195. .hr {
  196. border-bottom: 2px solid #3b91fa;
  197. opacity: 0.2;
  198. }
  199. .m10-0 {
  200. margin: 10px 0;
  201. }
  202. .m30-0 {
  203. margin: 30px 0;
  204. }
  205. .fww {
  206. flex-wrap: wrap;
  207. }
  208. .tar {
  209. text-align: right;
  210. }
  211. .mr20 {
  212. margin-right: 20px;
  213. }
  214. </style>