Butcher.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <template>
  2. <div class="Butcher">
  3. <header>
  4. <h1 class="title">湖羊全产业链数字化管理系统</h1>
  5. </header>
  6. <section>
  7. <aside class="left">
  8. <article class="left_1">
  9. <h3>市场行情</h3>
  10. <table class="table">
  11. <tr>
  12. <th>产品</th>
  13. <th>价格</th>
  14. <th>市场</th>
  15. </tr>
  16. <tr v-for="item in 8" :key="item">
  17. <td>羊肉</td>
  18. <td>
  19. 55元/公斤
  20. <b v-if="item % 2 == 0" style="color: #00ca01"
  21. >▲</b
  22. >
  23. <b v-else style="color: red">▼</b>
  24. </td>
  25. <td>杭州市</td>
  26. </tr>
  27. </table>
  28. </article>
  29. <article class="left_2">
  30. <h3>市场行情</h3>
  31. <E-Left1 style="height: 100%"></E-Left1>
  32. </article>
  33. <article class="left_3">
  34. <h3>长兴县销售情况</h3>
  35. <E-Left2 style="height: 100%"></E-Left2>
  36. </article>
  37. </aside>
  38. <div class="center">
  39. <div class="top">
  40. <article class="upper">
  41. <div class="date">2020-10-12</div>
  42. <div class="title">首 页</div>
  43. <img class="icon" src="../../assets/chilun.png">
  44. </article>
  45. <article class="mid">
  46. <div class="warp">
  47. <div class="item">
  48. <div>
  49. <span class="title">总存栏量:</span>
  50. <span class="num">10534</span>
  51. <span class="unit">只</span>
  52. </div>
  53. </div>
  54. <div class="item">
  55. <div>
  56. <span class="title">昨日屠宰数:</span>
  57. <span class="num">1534</span>
  58. <span class="unit">只</span>
  59. </div>
  60. </div>
  61. <div class="item">
  62. <div>
  63. <span class="title">检疫合格率:</span>
  64. <span class="num">94.2</span>
  65. <span class="unit">%</span>
  66. </div>
  67. </div>
  68. </div>
  69. </article>
  70. <article class="lower"></article>
  71. </div>
  72. <div class="bottom">
  73. <article>
  74. <E-Bottom1 style="height: 100%"></E-Bottom1>
  75. </article>
  76. <article>
  77. <E-Bottom2 style="height: 100%"></E-Bottom2>
  78. </article>
  79. <article>
  80. <E-Bottom3 style="height: 100%"></E-Bottom3>
  81. </article>
  82. </div>
  83. </div>
  84. <aside class="right">
  85. <article class="right_1">
  86. <h3>产品运输任务</h3>
  87. <E-Right1 style="height: 100%"></E-Right1>
  88. </article>
  89. <article class="right_2">
  90. <h3>屠宰采购来源</h3>
  91. <!-- cellspacing="0px" -->
  92. <table class="table">
  93. <tr>
  94. <th>羊只</th>
  95. <th>来源地</th>
  96. </tr>
  97. <tr v-for="item in 8" :key="item" class="row">
  98. <td>12457</td>
  99. <td>湖州市长兴县吕山乡</td>
  100. </tr>
  101. </table>
  102. </article>
  103. <article class="right_3">
  104. <h3>屠宰销售去向</h3>
  105. <table class="table">
  106. <tr>
  107. <th>羊只</th>
  108. <th>去向</th>
  109. </tr>
  110. <tr v-for="item in 8" :key="item" class="row">
  111. <td>12457</td>
  112. <td>湖州市长兴县吕山乡</td>
  113. </tr>
  114. </table>
  115. </article>
  116. </aside>
  117. </section>
  118. </div>
  119. </template>
  120. <script>
  121. import ELeft1 from "./charts/ELeft1";
  122. import ELeft2 from "./charts/ELeft2";
  123. import ERight1 from "./charts/ERight1";
  124. import EBottom1 from "./charts/EBottom1";
  125. import EBottom2 from "./charts/EBottom2";
  126. import EBottom3 from "./charts/EBottom3";
  127. export default {
  128. name: "Butcher",
  129. components: {
  130. ELeft1,
  131. ELeft2,
  132. ERight1,
  133. EBottom1,
  134. EBottom2,
  135. EBottom3,
  136. },
  137. data() {
  138. return {};
  139. },
  140. created() {},
  141. methods: {},
  142. };
  143. </script>
  144. <style lang="scss" scope>
  145. .Butcher {
  146. background-image: url(../../assets/bg.png);
  147. background-size: 100% 100%;
  148. background-repeat: no-repeat;
  149. height: 100%;
  150. display: flex;
  151. flex-direction: column;
  152. > header {
  153. height: 180px;
  154. display: flex;
  155. justify-content: center;
  156. .title {
  157. // border: 1px solid rgb(218, 99, 99);
  158. background: url(../../assets/bg_header.png) no-repeat;
  159. background-size: 100% 100%;
  160. width: 80%;
  161. height: 100%;
  162. font-size: 50px;
  163. line-height: 110px;
  164. color: #fff;
  165. display: flex;
  166. justify-content: center;
  167. }
  168. }
  169. > section {
  170. flex-grow: 1;
  171. height: 61%;
  172. display: flex;
  173. > aside {
  174. display: flex;
  175. flex-direction: column;
  176. justify-content: space-between;
  177. > article {
  178. height: 31%;
  179. background-image: url(../../assets/download.png);
  180. background-size: 100% 100%;
  181. background-repeat: no-repeat;
  182. > h3 {
  183. color: #fff;
  184. font-size: 25px;
  185. margin-left: 12%;
  186. margin-top: 13px;
  187. display: flex;
  188. align-items: center;
  189. &:before {
  190. content: "";
  191. display: inline-block;
  192. height: 25px;
  193. width: 25px;
  194. margin-right: 50px;
  195. background-color: #fff;
  196. }
  197. }
  198. }
  199. }
  200. > .left {
  201. width: 20%;
  202. // border: 1px solid rgb(218, 99, 99);
  203. display: flex;
  204. flex-direction: column;
  205. > .left_1 {
  206. > .table {
  207. color: #fff;
  208. font-size: 30px;
  209. margin: 20px;
  210. width: 100%;
  211. text-align: center;
  212. }
  213. }
  214. }
  215. > .center {
  216. width: 60%;
  217. // border: 1px solid rgb(163, 147, 58);
  218. display: flex;
  219. flex-direction: column;
  220. > .top {
  221. height: 72%;
  222. // border: 1px solid rgb(62, 58, 128);
  223. .upper {
  224. font-size: 40px;
  225. color: #fff;
  226. display: flex;
  227. justify-content: space-around;
  228. margin: 20px 3%;
  229. // .date {}
  230. .title {
  231. flex-grow: 1;
  232. text-align: center;
  233. display: flex;
  234. align-items: center;
  235. &::before {
  236. content: "";
  237. border: 1px solid #4b81ec;
  238. height: 0px;
  239. flex-grow: 1;
  240. margin: 0 50px;
  241. }
  242. &::after {
  243. content: "";
  244. border: 1px solid #4b81ec;
  245. height: 0px;
  246. flex-grow: 1;
  247. margin: 0 50px;
  248. }
  249. }
  250. .icon {
  251. width: 50px;
  252. height: 50px;
  253. }
  254. }
  255. .mid {
  256. > .warp {
  257. display: flex;
  258. margin: 20px 5%;
  259. .item {
  260. border-radius: 20px;
  261. height: 90px;
  262. border: 4px solid #53bafd;
  263. box-sizing: border-box;
  264. flex: 1 0 20%;
  265. margin: 20px 80px;
  266. padding: 10px 10px 10px 10px;
  267. font-size: 35px;
  268. font-weight: 600;
  269. display: flex;
  270. justify-content: center;
  271. align-items: center;
  272. .title {
  273. color: #fff;
  274. }
  275. .num {
  276. color: #53bafd;
  277. font-size: 1.2em;
  278. }
  279. .unit {
  280. color: #53bafd;
  281. font-size: 20px;
  282. margin-left: 15px;
  283. }
  284. }
  285. }
  286. }
  287. // .lower {}
  288. }
  289. > .bottom {
  290. height: 28%;
  291. // border: 1px solid rgb(23, 131, 116);
  292. display: flex;
  293. justify-content: space-between;
  294. > article {
  295. width: 33%;
  296. }
  297. }
  298. }
  299. > .right {
  300. width: 20%;
  301. // border: 1px solid rgb(61, 197, 179);
  302. display: flex;
  303. flex-direction: column;
  304. justify-content: space-between;
  305. > .right_2,
  306. > .right_3 {
  307. > .table {
  308. color: #fff;
  309. font-size: 30px;
  310. margin: 20px;
  311. width: 96%;
  312. text-align: center;
  313. .row {
  314. background-color: #006666ee;
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. </style>