Home.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <div>
  3. <el-breadcrumb separator=">">
  4. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  5. <el-breadcrumb-item>
  6. <a href="/">控制台</a>
  7. </el-breadcrumb-item>
  8. </el-breadcrumb>
  9. <el-divider></el-divider>
  10. <!-- <div class="card">
  11. <div class="floor-one">
  12. <h5 class="tit">基本情况</h5>
  13. <el-row :gutter="20">
  14. <el-col :span="6">
  15. <div class="grid-content bgorange">
  16. <i class="iconfont iconfasfa-cog1"></i>
  17. <h4><p>今日报案登记数</p>{{item1}}</h4>
  18. </div>
  19. </el-col>
  20. <el-col :span="6">
  21. <div class="grid-content bgpink">
  22. <i class="iconfont iconmd-av_timer1"></i>
  23. <h4><p>昨日报案登记数</p>{{item2}}</h4>
  24. </div>
  25. </el-col>
  26. <el-col :span="6">
  27. <div class="grid-content bgblue">
  28. <i class="iconfont iconfasfa-cog1"></i>
  29. <h4><p>今日咨询登记数</p>{{item3}}</h4>
  30. </div>
  31. </el-col>
  32. <el-col :span="6">
  33. <div class="grid-content bggreen">
  34. <i class="iconfont iconmd-av_timer1"></i>
  35. <h4><p>昨日咨询登记数</p>{{item4}}</h4>
  36. </div>
  37. </el-col>
  38. </el-row>
  39. </div>
  40. <el-card class="diagram">
  41. <div id="everyDayMeasuringDiv" style="width:100%;height: 280px;"></div>
  42. </el-card>
  43. </div> -->
  44. </div>
  45. </template>
  46. <script>
  47. import Constant from "@/constant";
  48. import "nprogress/nprogress.css"; // progress bar style
  49. import NProgress from "nprogress"; // progress bar
  50. // @ is an alias to /src
  51. export default {
  52. name: "Home",
  53. data() {
  54. return {
  55. item1: "0",
  56. item2: "0",
  57. item3: "0",
  58. item4: "0",
  59. advisoryNumList: [],
  60. reportNumList: [],
  61. day: [],
  62. };
  63. },
  64. methods: {
  65. },
  66. };
  67. </script>
  68. <style lang="scss" scoped>
  69. .xtsyqk_fyy {
  70. height: 64px;
  71. margin-bottom: 40px;
  72. }
  73. .xtsyqk_fyy i {
  74. font-size: 26px;
  75. }
  76. .xtsyqk_fyy span b {
  77. font-size: 21px;
  78. }
  79. .xtsyqk_fyy span {
  80. display: block;
  81. text-align: center;
  82. font-size: 14px;
  83. }
  84. .xtsyqk_fyy_60 {
  85. width: 60%;
  86. float: center;
  87. }
  88. .xtsyqk_fyy_40 {
  89. width: 40%;
  90. float: left;
  91. }
  92. .el-breadcrumb {
  93. margin: 10px;
  94. line-height: 20px;
  95. }
  96. .el-divider {
  97. margin: 5px 0;
  98. }
  99. .header {
  100. text-align: left;
  101. }
  102. .diagram_top {
  103. margin: 20px 20px;
  104. width: 140px;
  105. height: 120px;
  106. float: left;
  107. }
  108. .diagram {
  109. margin: 20px 20px;
  110. width: 97%;
  111. height: 300px;
  112. float: left;
  113. }
  114. .diagram_extraWide {
  115. margin: 20px 20px;
  116. width: 220px;
  117. height: 120px;
  118. float: left;
  119. }
  120. .ax_default {
  121. width: 180px;
  122. }
  123. .ax_default2 {
  124. width: 320px;
  125. }
  126. .diagram_jkgs {
  127. margin: 20px 20px;
  128. height: 120px;
  129. float: left;
  130. }
  131. .ax_default3 {
  132. width: 170px;
  133. }
  134. .grid-content{
  135. display: flex;
  136. align-items: center;
  137. padding:15px 20px;
  138. color:white;
  139. border-radius: 3px;
  140. }
  141. .floor-one .grid-content i{
  142. font-size:50px
  143. }
  144. .floor-one .grid-content h4{
  145. text-align: center;
  146. font-size:24px;
  147. margin:0;
  148. margin-left:10px
  149. }
  150. .floor-one .grid-content p{
  151. font-size:14px;
  152. margin:0
  153. }
  154. .bgpink{
  155. background:#FF7970
  156. }
  157. .bgorange{
  158. background:#FF6200
  159. }
  160. .bgblue{
  161. background:#427BEE
  162. }
  163. .bggreen{
  164. background:#42b7ee
  165. }
  166. .bgyellow{
  167. background:#F4C735
  168. }
  169. .bgred{
  170. background:#F44235
  171. }
  172. .card{
  173. padding:30px;
  174. text-align: left;
  175. }
  176. .floor-two .grid-content{
  177. justify-content: center;
  178. position:relative
  179. }
  180. .floor-two .grid-content::after{
  181. content:"";
  182. position:absolute;
  183. right:0;
  184. top:50%;
  185. width:1px;
  186. height:50px;
  187. margin-top:-25px;
  188. background:#D3D3D3
  189. }
  190. .floor-two .el-col:last-child .grid-content:after{
  191. width:0
  192. }
  193. .floor-two .grid-content i{
  194. width:50px;
  195. height:50px;
  196. border-radius: 50%;
  197. text-align: center;
  198. line-height: 50px;
  199. color:white;
  200. font-size:25px
  201. }
  202. .floor-two .grid-content h5{
  203. text-align: center;
  204. font-size:16px;
  205. margin:0;
  206. margin-left:10px;
  207. color:black
  208. }
  209. .floor-two .grid-content h5 p{
  210. font-size:14px;
  211. margin:0;
  212. margin-top:10px;
  213. font-weight:initial;
  214. }
  215. .floor-two{
  216. margin:50px 0
  217. }
  218. .tit{
  219. margin:0 0 20px
  220. }
  221. </style>