App.vue 3.4 KB

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