warningDispose.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <!-- 数据看板-预警处置 -->
  2. <template>
  3. <view class="warningDispose">
  4. <view class="chart">
  5. <img class="chart-bg" src="@/pages/images/dataBoard/dataBoard-icon4.png">
  6. <view class="chart-n">
  7. <view class="chart-t">
  8. <view class="chart-t-li" @click="dateClick(index)" :class="dateIndex==index?'color-A':'color-B'"
  9. v-for="(item,index) in dateList">
  10. <view class="chart-t-li-t">{{item.num}}</view>
  11. <view class="chart-t-li-b">{{item.letterNUm}}</view>
  12. </view>
  13. </view>
  14. <view class="chart-b">
  15. <view class="chart-b-li" v-for="(item,index) in deptList" :key="index"
  16. :style="'top:'+item.top+'rpx;left:'+item.left+'rpx;'">
  17. <view>{{item.name}}</view>
  18. <img src="@/pages/images/dataBoard/img_xyzc_bg.png">
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="statistics">
  24. <view class="statistics-b">
  25. <view class="statistics-b-li">
  26. <view class="statistics-b-li-t">13</view>
  27. <view class="statistics-b-li-b">昨日预警处置数</view>
  28. </view>
  29. <view class="line"></view>
  30. <view class="statistics-b-li">
  31. <view class="statistics-b-li-t">9</view>
  32. <view class="statistics-b-li-b">今日预警处置数</view>
  33. </view>
  34. <view class="line"></view>
  35. <view class="statistics-b-li">
  36. <view class="statistics-b-li-t-tow">
  37. <text class="color-B">0.9%</text>
  38. <img src="@/pages/images/dataBoard/dataBoard-icon3.png">
  39. </view>
  40. <view class="statistics-b-li-b">环比增长</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="table">
  45. <uni-card>
  46. <view style="height: 200px">
  47. <zb-table :columns="column" :stripe="false" :border="false" :data="dataList"></zb-table>
  48. </view>
  49. </uni-card>
  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: "warningDispose",
  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. deptList: [{
  96. name: "农学院",
  97. value: "0",
  98. top: 18,
  99. left: 46,
  100. },
  101. {
  102. name: "理学院",
  103. value: "0",
  104. top: 18,
  105. left: 508,
  106. },
  107. {
  108. name: "化学与药物",
  109. value: "0",
  110. top: 100,
  111. left: 136,
  112. },
  113. {
  114. name: "生命科学",
  115. value: "0",
  116. top: 85,
  117. left: 370,
  118. },
  119. {
  120. name: "园林艺术",
  121. value: "0",
  122. top: 146,
  123. left: 546,
  124. },
  125. {
  126. name: "植物保护",
  127. value: "0",
  128. top: 271,
  129. left: 533,
  130. },
  131. {
  132. name: "资源环境",
  133. value: "0",
  134. top: 208,
  135. left: 42,
  136. },
  137. {
  138. name: "国重楼",
  139. value: "0",
  140. top: 200,
  141. left: 333,
  142. },
  143. ],
  144. // 查询参数
  145. queryParams: {
  146. page: 1,
  147. pageSize: 10,
  148. },
  149. column: [{
  150. type: 'index',
  151. label: '排行',
  152. fixed: true,
  153. width: 60,
  154. align: 'center',
  155. },
  156. {
  157. name: 'data1',
  158. label: '学院单位',
  159. fixed: true,
  160. width: 80,
  161. align: 'center',
  162. },
  163. {
  164. name: 'data2',
  165. label: '总数',
  166. align: 'center',
  167. },
  168. {
  169. name: 'data3',
  170. label: '昨日',
  171. align: 'center',
  172. },
  173. {
  174. name: 'data4',
  175. label: '今日',
  176. align: 'center',
  177. },
  178. {
  179. name: 'data5',
  180. label: '环比',
  181. align: 'center',
  182. },
  183. ],
  184. dataList: [{
  185. data1: '植物保护',
  186. data2: '102',
  187. data3: '47',
  188. data4: '22',
  189. data5: '13',
  190. },
  191. {
  192. data1: '资源环境',
  193. data2: '74',
  194. data3: '8',
  195. data4: '32',
  196. data5: '18',
  197. },
  198. {
  199. data1: '生命科学',
  200. data2: '66',
  201. data3: '28',
  202. data4: '10',
  203. data5: '8',
  204. },
  205. {
  206. data1: '园林艺术',
  207. data2: '56',
  208. data3: '23',
  209. data4: '17',
  210. data5: '5',
  211. },
  212. {
  213. data1: '化学与药物',
  214. data2: '34',
  215. data3: '12',
  216. data4: '11',
  217. data5: '21',
  218. },
  219. ],
  220. total: 0,
  221. }
  222. },
  223. created() {
  224. },
  225. beforeMount() {
  226. },
  227. mounted() {},
  228. methods: {
  229. dateClick(index) {
  230. this.dateIndex = index;
  231. },
  232. },
  233. }
  234. </script>
  235. <style lang="stylus" scoped>
  236. .warningDispose {
  237. height: 100%;
  238. width: 100%;
  239. background: #363744;
  240. padding: 20rpx 0rpx 36rpx;
  241. box-sizing: border-box;
  242. .chart {
  243. width: 750rpx;
  244. height: 500rpx;
  245. position: relative;
  246. .chart-bg {
  247. width: 750rpx;
  248. height: 500rpx;
  249. position: absolute;
  250. z-index: 100;
  251. }
  252. .chart-n {
  253. padding: 34rpx 0rpx 26rpx;
  254. box-sizing: border-box;
  255. position: absolute;
  256. z-index: 200;
  257. .chart-t {
  258. display: flex;
  259. justify-content: space-between;
  260. margin: 0 30rpx;
  261. .chart-t-li {
  262. width: 76rpx;
  263. height: 100rpx;
  264. .chart-t-li-t {
  265. font-weight: 400;
  266. font-size: 30rpx;
  267. line-height: 42rpx;
  268. text-align: center;
  269. margin-top: 8rpx;
  270. }
  271. .chart-t-li-b {
  272. font-weight: 400;
  273. font-size: 28rpx;
  274. line-height: 39rpx;
  275. text-align: center;
  276. margin-top: 4rpx;
  277. }
  278. }
  279. .color-A {
  280. background: #0183FA;
  281. border-radius: 10rpx 10rpx 10rpx 10rpx;
  282. .chart-t-li-t {
  283. color: #FFFFFF;
  284. }
  285. .chart-t-li-b {
  286. color: #FFFFFF;
  287. }
  288. }
  289. .color-B {
  290. background: none;
  291. .chart-t-li-t {
  292. color: #FFFFFF;
  293. }
  294. .chart-t-li-b {
  295. color: #FFFFFF;
  296. }
  297. }
  298. }
  299. .chart-b {
  300. width: 690rpx;
  301. height: 350rpx;
  302. position: absolute;
  303. .chart-b-li {
  304. position: absolute;
  305. z-index: 300;
  306. width: 200rpx;
  307. height: 46rpx;
  308. >img {
  309. width: 200rpx;
  310. height: 46rpx;
  311. position: absolute;
  312. z-index: 400;
  313. }
  314. >view {
  315. padding-left: 16rpx;
  316. box-sizing: border-box;
  317. width: 200rpx;
  318. height: 46rpx;
  319. position: absolute;
  320. z-index: 500;
  321. font-weight: 400;
  322. font-size: 24rpx;
  323. color: #FFFFFF;
  324. line-height: 46rpx;
  325. text-align: left;
  326. }
  327. }
  328. }
  329. }
  330. }
  331. .statistics {
  332. width: 750rpx;
  333. height: 120rpx;
  334. background: #3E414F;
  335. .statistics-b {
  336. display: flex;
  337. justify-content: space-between;
  338. align-items: center;
  339. .statistics-b-li {
  340. flex: 1;
  341. text-align: center;
  342. .statistics-b-li-t {
  343. font-weight: 400;
  344. font-size: 36rpx;
  345. color: #FFFFFF;
  346. line-height: 50rpx;
  347. margin-top: 10rpx;
  348. }
  349. .statistics-b-li-t-tow {
  350. margin-top: 10rpx;
  351. display: flex;
  352. justify-content: center;
  353. align-items: center;
  354. >text {
  355. font-weight: 400;
  356. font-size: 28rpx;
  357. line-height: 50rpx;
  358. }
  359. >img {
  360. width: 22rpx;
  361. height: 28rpx;
  362. }
  363. }
  364. .color-A {
  365. color: #FF0000;
  366. }
  367. .color-B {
  368. color: #2EA805;
  369. }
  370. .statistics-b-li-b {
  371. font-weight: 400;
  372. font-size: 24rpx;
  373. color: #FFFFFF;
  374. line-height: 34rpx;
  375. margin-top: 9rpx;
  376. }
  377. }
  378. .line {
  379. width: 2rpx;
  380. height: 30rpx;
  381. background: #D8D8D8;
  382. }
  383. }
  384. }
  385. .table {
  386. width: 690rpx;
  387. margin-top: 20rpx;
  388. border-radius: 20rpx 20rpx 0 0;
  389. overflow: hidden;
  390. margin-left: 30rpx;
  391. }
  392. }
  393. </style>