hazardSources.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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">6885 间</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">14 间</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-b"></view>
  32. </view>
  33. <view class="table">
  34. <view class="table-border">
  35. <view class="table-th">
  36. <view>排行</view>
  37. <view>学院单位</view>
  38. <view>总数</view>
  39. <view>危化品数</view>
  40. <view>冷热设备数</view>
  41. </view>
  42. <view class="table-tb" v-for="(item,index) in dataList" :key="index">
  43. <view>{{item.data2}}</view>
  44. <view>{{item.data1}}</view>
  45. <view>{{item.data2}}</view>
  46. <view>{{item.data2}}</view>
  47. <view>{{item.data2}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import {
  55. config
  56. } from '@/api/request/config.js'
  57. import {
  58. } from '@/pages_basics/api/index.js'
  59. export default {
  60. name: "hazardSources",
  61. components: {
  62. },
  63. data() {
  64. return {
  65. dateList: [{
  66. num: '1',
  67. letterNUm: 'Mon',
  68. },
  69. {
  70. num: '2',
  71. letterNUm: 'Tue',
  72. },
  73. {
  74. num: '3',
  75. letterNUm: 'Wed',
  76. },
  77. {
  78. num: '4',
  79. letterNUm: 'Thur',
  80. },
  81. {
  82. num: '5',
  83. letterNUm: 'Fri',
  84. },
  85. {
  86. num: '6',
  87. letterNUm: 'Sat',
  88. },
  89. {
  90. num: '7',
  91. letterNUm: 'Sun',
  92. },
  93. ],
  94. dateIndex: 0,
  95. // 查询参数
  96. queryParams: {
  97. page: 1,
  98. pageSize: 10,
  99. },
  100. dataList: [{
  101. data1: '学院学院简称',
  102. data2: '666',
  103. },
  104. {
  105. data1: '学院学院简称',
  106. data2: '666',
  107. },
  108. {
  109. data1: '学院学院简称',
  110. data2: '666',
  111. },
  112. {
  113. data1: '学院学院简称',
  114. data2: '666',
  115. },
  116. ],
  117. total: 0,
  118. }
  119. },
  120. created() {
  121. },
  122. beforeMount() {
  123. },
  124. mounted() {},
  125. methods: {
  126. dateClick(index) {
  127. this.dateIndex = index;
  128. },
  129. },
  130. }
  131. </script>
  132. <style lang="stylus" scoped>
  133. .hazardSources {
  134. height: 100%;
  135. width: 100%;
  136. background: #363744;
  137. padding: 20rpx 30rpx 0;
  138. box-sizing: border-box;
  139. .small-title {
  140. display: flex;
  141. justify-content: space-between;
  142. .small-title-l{
  143. font-weight: 400;
  144. font-size: 32rpx;
  145. color: #FFFFFF;
  146. line-height: 45rpx;
  147. text-align: left;
  148. margin: 28rpx 0;
  149. }
  150. .small-title-r{
  151. width: 15rpx;
  152. height: 18rpx;
  153. }
  154. }
  155. .chart {
  156. width: 690rpx;
  157. height: 400rpx;
  158. background: #3E414F;
  159. border-radius: 20rpx 20rpx 20rpx 20rpx;
  160. padding: 34rpx 30rpx 26rpx;
  161. box-sizing: border-box;
  162. .chart-b{
  163. width: 630rpx;
  164. height: 344rpx;
  165. }
  166. }
  167. .statistics {
  168. width: 690rpx;
  169. height: 241rpx;
  170. background: #3E414F;
  171. border-radius: 20rpx 20rpx 20rpx 20rpx;
  172. margin-top: 20rpx;
  173. .statistics-t {
  174. height: 100rpx;
  175. display: flex;
  176. justify-content: space-between;
  177. align-items: center;
  178. border-bottom: 1rpx solid #52545F;
  179. padding: 0 42rpx 0 38rpx;
  180. box-sizing: border-box;
  181. .statistics-t-l {
  182. font-weight: 400;
  183. font-size: 32rpx;
  184. color: #FFFFFF;
  185. line-height: 45rpx;
  186. }
  187. .statistics-t-r {
  188. font-weight: 400;
  189. font-size: 36rpx;
  190. color: #FFFFFF;
  191. line-height: 50rpx;
  192. }
  193. }
  194. .statistics-b {
  195. display: flex;
  196. justify-content: space-between;
  197. align-items: center;
  198. .statistics-b-li {
  199. flex: 1;
  200. text-align: center;
  201. .statistics-b-li-t {
  202. font-weight: 400;
  203. font-size: 36rpx;
  204. line-height: 50rpx;
  205. margin-top: 28rpx;
  206. }
  207. .statistics-b-li-b {
  208. font-weight: 400;
  209. font-size: 28rpx;
  210. color: #FFFFFF;
  211. line-height: 39rpx;
  212. margin-top: 9rpx;
  213. }
  214. }
  215. .line {
  216. width: 2rpx;
  217. height: 30rpx;
  218. background: #D8D8D8;
  219. }
  220. .color-A {
  221. color: #FF8C00;
  222. }
  223. .color-B {
  224. color: #26C736;
  225. }
  226. .color-C {
  227. color: #FF0000;
  228. }
  229. }
  230. }
  231. .table {
  232. width: 720rpx;
  233. margin-top: 20rpx;
  234. .table-border {
  235. overflow: auto;
  236. }
  237. .table-th {
  238. width: 860rpx;
  239. height: 80rpx;
  240. background: rgba(162, 162, 162, 0.2);
  241. border-radius: 20rpx 20rpx 0rpx 0rpx;
  242. display: flex;
  243. justify-content: flex-start;
  244. padding: 0 30rpx;
  245. box-sizing: border-box;
  246. >view {
  247. font-weight: 400;
  248. font-size: 30rpx;
  249. color: #FFFFFF;
  250. line-height: 80rpx;
  251. text-align: center;
  252. margin-right: 38rpx;
  253. width: 120rpx;
  254. overflow: hidden;
  255. text-overflow: ellipsis;
  256. white-space: nowrap;
  257. }
  258. >view:nth-of-type(1) {
  259. width: 64rpx;
  260. }
  261. >view:nth-of-type(2) {
  262. width: 168rpx;
  263. }
  264. >view:last-child{
  265. margin-right: 0;
  266. width: 168rpx;
  267. }
  268. }
  269. .table-tb {
  270. width: 860rpx;
  271. height: 80rpx;
  272. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  273. display: flex;
  274. justify-content: flex-start;
  275. background: #3E414F;
  276. padding: 0 30rpx;
  277. box-sizing: border-box;
  278. >view {
  279. font-weight: 400;
  280. font-size: 28rpx;
  281. color: #FFFFFF;
  282. line-height: 80rpx;
  283. text-align: center;
  284. margin-right: 38rpx;
  285. width: 120rpx;
  286. overflow: hidden;
  287. text-overflow: ellipsis;
  288. white-space: nowrap;
  289. }
  290. >view:nth-of-type(1) {
  291. width: 64rpx;
  292. }
  293. >view:nth-of-type(2) {
  294. width: 168rpx;
  295. }
  296. >view:last-child{
  297. margin-right: 0;
  298. width: 168rpx;
  299. }
  300. }
  301. }
  302. }
  303. </style>