App.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: scroll;
  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. .mt50 {
  119. margin-top: 50px;
  120. }
  121. .container-title {
  122. font-size: 18px;
  123. font-family: PingFangSC-Medium, PingFang SC;
  124. font-weight: 500;
  125. color: #0094fe;
  126. margin: 15px 0 15px 0;
  127. }
  128. .line {
  129. display: flex;
  130. align-items: center;
  131. align-content: flex-start;
  132. margin: 20px;
  133. }
  134. .info-line {
  135. display: flex;
  136. align-items: center;
  137. align-content: flex-start;
  138. margin-right: 20px;
  139. }
  140. .info-line-title {
  141. width: 120px;
  142. height: 100%;
  143. font-size: 14px;
  144. font-family: PingFangSC-Regular, PingFang SC;
  145. font-weight: 400;
  146. color: #353a42;
  147. line-height: 100%;
  148. text-align: right;
  149. padding-right: 20px;
  150. }
  151. .info-line-text {
  152. width: 240px !important;
  153. height: 100%;
  154. line-height: 100%;
  155. }
  156. .info-line-textarea {
  157. width: 640px;
  158. height: 100%;
  159. line-height: 100%;
  160. }
  161. .pointer {
  162. cursor: pointer;
  163. }
  164. .el-upload-list__item-thumbnail {
  165. object-fit: contain !important;
  166. }
  167. .el-input__inner {
  168. text-align: center;
  169. color: #777 !important;
  170. }
  171. .el-upload--picture-card {
  172. border: none;
  173. }
  174. </style>