hazardousChemicals.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <!-- 数据看板-危化品 -->
  2. <template>
  3. <view class="hazardSources">
  4. <view class="statistics">
  5. <view class="statistics-t">
  6. <view class="statistics-t-l">危化品总数:</view>
  7. <view class="statistics-t-r">9999 </view>
  8. </view>
  9. <view class="statistics-b">
  10. <view class="statistics-b-li">
  11. <view class="statistics-b-li-t color-A">688.5 kg</view>
  12. <view class="statistics-b-li-b">总量</view>
  13. </view>
  14. <view class="line"></view>
  15. <view class="statistics-b-li">
  16. <view class="statistics-b-li-t color-B">3100 </view>
  17. <view class="statistics-b-li-b">今日新增数</view>
  18. </view>
  19. <view class="line"></view>
  20. <view class="statistics-b-li">
  21. <view class="statistics-b-li-t color-C">115.3 kg</view>
  22. <view class="statistics-b-li-b">今日新增量</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="small-title">
  27. <view class="small-title-l">危化品存量排行TOP5</view>
  28. <img class="small-title-r" src="@/pages/images/icon_wdwg_gd.png">
  29. </view>
  30. <view class="chart">
  31. <view class="chart-t">
  32. </view>
  33. <view class="chart-b">
  34. <view>1</view>
  35. <view>化学与药学院</view>
  36. <view>总数999</view>
  37. <view>|</view>
  38. <view>今日新增19</view>
  39. <img src="@/pages/images/dataBoard/dataBoard-icon2.png">
  40. </view>
  41. </view>
  42. <view class="table">
  43. <view class="table-border">
  44. <view class="table-th">
  45. <view class="table-th-li">
  46. <view>排行</view>
  47. <view>学院单位</view>
  48. <view>总数</view>
  49. <view>总量</view>
  50. <view>今日新增</view>
  51. </view>
  52. </view>
  53. <view class="table-tb">
  54. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  55. <view>{{item.data2}}</view>
  56. <view>{{item.data1}}</view>
  57. <view>{{item.data2}}</view>
  58. <view>{{item.data2}}</view>
  59. <view>{{item.data2}}</view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </template>
  66. <script>
  67. import {
  68. config
  69. } from '@/api/request/config.js'
  70. import {
  71. } from '@/pages_basics/api/index.js'
  72. export default {
  73. name: "hazardSources",
  74. components: {
  75. },
  76. data() {
  77. return {
  78. dateList: [{
  79. num: '1',
  80. letterNUm: 'Mon',
  81. },
  82. {
  83. num: '2',
  84. letterNUm: 'Tue',
  85. },
  86. {
  87. num: '3',
  88. letterNUm: 'Wed',
  89. },
  90. {
  91. num: '4',
  92. letterNUm: 'Thur',
  93. },
  94. {
  95. num: '5',
  96. letterNUm: 'Fri',
  97. },
  98. {
  99. num: '6',
  100. letterNUm: 'Sat',
  101. },
  102. {
  103. num: '7',
  104. letterNUm: 'Sun',
  105. },
  106. ],
  107. dateIndex: 0,
  108. // 查询参数
  109. queryParams: {
  110. page: 1,
  111. pageSize: 10,
  112. },
  113. dataList: [{
  114. data1: '学院学院简称',
  115. data2: '666',
  116. },
  117. {
  118. data1: '学院学院简称',
  119. data2: '666',
  120. },
  121. {
  122. data1: '学院学院简称',
  123. data2: '666',
  124. },
  125. {
  126. data1: '学院学院简称',
  127. data2: '666',
  128. },
  129. ],
  130. total: 0,
  131. }
  132. },
  133. created() {
  134. },
  135. beforeMount() {
  136. },
  137. mounted() {},
  138. methods: {
  139. dateClick(index) {
  140. this.dateIndex = index;
  141. },
  142. },
  143. }
  144. </script>
  145. <style lang="stylus" scoped>
  146. .hazardSources {
  147. height: 100%;
  148. width: 100%;
  149. background: #363744;
  150. padding: 20rpx 30rpx 0;
  151. box-sizing: border-box;
  152. .small-title {
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: center;
  156. .small-title-l {
  157. font-weight: 400;
  158. font-size: 32rpx;
  159. color: #FFFFFF;
  160. line-height: 45rpx;
  161. text-align: left;
  162. margin: 28rpx 0;
  163. }
  164. .small-title-r {
  165. width: 15rpx;
  166. height: 18rpx;
  167. }
  168. }
  169. .chart {
  170. width: 690rpx;
  171. height: 850rpx;
  172. background: #3E414F;
  173. border-radius: 20rpx 20rpx 20rpx 20rpx;
  174. padding: 24rpx 20rpx 0;
  175. box-sizing: border-box;
  176. .chart-t {
  177. width: 650rpx;
  178. height: 380rpx;
  179. }
  180. .chart-b {
  181. padding: 0 30rpx;
  182. box-sizing: border-box;
  183. display: flex;
  184. justify-content: flex-start;
  185. align-items: center;
  186. height: 40rpx;
  187. margin-bottom: 36rpx;
  188. >view {
  189. overflow: hidden;
  190. text-overflow: ellipsis;
  191. white-space: nowrap;
  192. }
  193. >view:nth-of-type(1) {
  194. width: 32rpx;
  195. height: 32rpx;
  196. background: rgba(255, 0, 0, 0.2);
  197. font-weight: 400;
  198. font-size: 28rpx;
  199. color: #FF0000;
  200. line-height: 32rpx;
  201. text-align: center;
  202. margin-right: 18rpx;
  203. }
  204. >view:nth-of-type(2) {
  205. width: 246rpx;
  206. font-weight: 400;
  207. font-size: 28rpx;
  208. color: #FFFFFF;
  209. line-height: 39rpx;
  210. }
  211. >view:nth-of-type(3) {
  212. width: 132rpx;
  213. font-weight: 400;
  214. font-size: 28rpx;
  215. color: #FFFFFF;
  216. line-height: 39rpx;
  217. }
  218. >view:nth-of-type(4) {
  219. width: 2rpx;
  220. height: 20rpx;
  221. background: #D8D8D8;
  222. margin-right: 22rpx;
  223. }
  224. >view:nth-of-type(5) {
  225. width: 154rpx;
  226. font-weight: 400;
  227. font-size: 28rpx;
  228. color: #FFFFFF;
  229. line-height: 39rpx;
  230. }
  231. >img {
  232. width: 22rpx;
  233. height: 28rpx;
  234. }
  235. }
  236. }
  237. .statistics {
  238. width: 690rpx;
  239. height: 241rpx;
  240. background: #3E414F;
  241. border-radius: 20rpx 20rpx 20rpx 20rpx;
  242. margin-top: 20rpx;
  243. .statistics-t {
  244. height: 100rpx;
  245. display: flex;
  246. justify-content: space-between;
  247. align-items: center;
  248. border-bottom: 1rpx solid #52545F;
  249. padding: 0 42rpx 0 38rpx;
  250. box-sizing: border-box;
  251. .statistics-t-l {
  252. font-weight: 400;
  253. font-size: 32rpx;
  254. color: #FFFFFF;
  255. line-height: 45rpx;
  256. }
  257. .statistics-t-r {
  258. font-weight: 400;
  259. font-size: 36rpx;
  260. color: #FFFFFF;
  261. line-height: 50rpx;
  262. }
  263. }
  264. .statistics-b {
  265. display: flex;
  266. justify-content: space-between;
  267. align-items: center;
  268. .statistics-b-li {
  269. flex: 1;
  270. text-align: center;
  271. .statistics-b-li-t {
  272. font-weight: 400;
  273. font-size: 36rpx;
  274. line-height: 50rpx;
  275. margin-top: 28rpx;
  276. }
  277. .statistics-b-li-b {
  278. font-weight: 400;
  279. font-size: 28rpx;
  280. color: #FFFFFF;
  281. line-height: 39rpx;
  282. margin-top: 9rpx;
  283. }
  284. }
  285. .line {
  286. width: 2rpx;
  287. height: 30rpx;
  288. background: #D8D8D8;
  289. }
  290. .color-A {
  291. color: #FF8C00;
  292. }
  293. .color-B {
  294. color: #26C736;
  295. }
  296. .color-C {
  297. color: #FF0000;
  298. }
  299. }
  300. }
  301. .table {
  302. width: 720rpx;
  303. margin-top: 20rpx;
  304. .table-border {
  305. overflow: auto;
  306. }
  307. .table-th {
  308. width: 860rpx;
  309. height: 80rpx;
  310. background: rgba(162, 162, 162, 0.2);
  311. border-radius: 20rpx 20rpx 0rpx 0rpx;
  312. padding: 0 30rpx;
  313. box-sizing: border-box;
  314. .table-th-li {
  315. height: 80rpx;
  316. display: flex;
  317. justify-content: flex-start;
  318. >view {
  319. font-weight: 400;
  320. font-size: 30rpx;
  321. color: #FFFFFF;
  322. line-height: 80rpx;
  323. text-align: center;
  324. margin-right: 38rpx;
  325. width: 120rpx;
  326. overflow: hidden;
  327. text-overflow: ellipsis;
  328. white-space: nowrap;
  329. }
  330. >view:nth-of-type(1) {
  331. width: 64rpx;
  332. }
  333. >view:nth-of-type(2) {
  334. width: 168rpx;
  335. }
  336. >view:last-child {
  337. margin-right: 0;
  338. width: 168rpx;
  339. }
  340. }
  341. }
  342. .table-tb {
  343. width: 860rpx;
  344. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  345. background: #3E414F;
  346. padding: 0 30rpx;
  347. box-sizing: border-box;
  348. .table-tb-li {
  349. height: 80rpx;
  350. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  351. display: flex;
  352. justify-content: flex-start;
  353. >view {
  354. font-weight: 400;
  355. font-size: 28rpx;
  356. color: #FFFFFF;
  357. line-height: 80rpx;
  358. text-align: center;
  359. margin-right: 38rpx;
  360. width: 120rpx;
  361. overflow: hidden;
  362. text-overflow: ellipsis;
  363. white-space: nowrap;
  364. }
  365. >view:nth-of-type(1) {
  366. width: 64rpx;
  367. }
  368. >view:nth-of-type(2) {
  369. width: 168rpx;
  370. }
  371. >view:last-child {
  372. margin-right: 0;
  373. width: 168rpx;
  374. }
  375. }
  376. }
  377. }
  378. }
  379. </style>