warningDispose.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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"
  16. v-for="(item,index) in deptList" :key="index"
  17. :style="'top:'+item.top+'rpx;left:'+item.left+'rpx;'">
  18. <view>{{item.name}}</view>
  19. <img src="@/pages/images/dataBoard/img_xyzc_bg.png">
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="statistics">
  25. <view class="statistics-b">
  26. <view class="statistics-b-li">
  27. <view class="statistics-b-li-t">13</view>
  28. <view class="statistics-b-li-b">昨日预警处置数</view>
  29. </view>
  30. <view class="line"></view>
  31. <view class="statistics-b-li">
  32. <view class="statistics-b-li-t">9</view>
  33. <view class="statistics-b-li-b">今日预警处置数</view>
  34. </view>
  35. <view class="line"></view>
  36. <view class="statistics-b-li">
  37. <view class="statistics-b-li-t-tow">
  38. <text class="color-B">0.9%</text>
  39. <img src="@/pages/images/dataBoard/dataBoard-icon3.png">
  40. </view>
  41. <view class="statistics-b-li-b">环比增长</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="table">
  46. <view class="table-border">
  47. <view class="table-th">
  48. <view class="table-th-li">
  49. <view>排行</view>
  50. <view>学院单位</view>
  51. <view>总数</view>
  52. <view>昨日</view>
  53. <view>今日</view>
  54. <view>环比</view>
  55. </view>
  56. </view>
  57. <view class="table-tb">
  58. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  59. <view>
  60. <text :class="index==0?'sortOne':(index==1?'sortTow':(index==2?'sortThree':'sortFive'))">{{index+1}}</text>
  61. </view>
  62. <view>{{item.data2}}</view>
  63. <view>{{item.data2}}</view>
  64. <view>{{item.data2}}</view>
  65. <view>{{item.data2}}</view>
  66. <view>{{item.data2}}</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. import {
  75. config
  76. } from '@/api/request/config.js'
  77. import {
  78. } from '@/pages_basics/api/index.js'
  79. export default {
  80. name: "warningDispose",
  81. components: {
  82. },
  83. data() {
  84. return {
  85. dateList: [{
  86. num: '1',
  87. letterNUm: 'Mon',
  88. },
  89. {
  90. num: '2',
  91. letterNUm: 'Tue',
  92. },
  93. {
  94. num: '3',
  95. letterNUm: 'Wed',
  96. },
  97. {
  98. num: '4',
  99. letterNUm: 'Thur',
  100. },
  101. {
  102. num: '5',
  103. letterNUm: 'Fri',
  104. },
  105. {
  106. num: '6',
  107. letterNUm: 'Sat',
  108. },
  109. {
  110. num: '7',
  111. letterNUm: 'Sun',
  112. },
  113. ],
  114. dateIndex: 0,
  115. deptList:[
  116. {
  117. name:"农学院",
  118. value:"0",
  119. top:18,
  120. left:46,
  121. },
  122. {
  123. name:"理学院",
  124. value:"0",
  125. top:18,
  126. left:508,
  127. },
  128. {
  129. name:"化学与药物",
  130. value:"0",
  131. top:100,
  132. left:136,
  133. },
  134. {
  135. name:"生命科学",
  136. value:"0",
  137. top:85,
  138. left:370,
  139. },
  140. {
  141. name:"园林艺术",
  142. value:"0",
  143. top:146,
  144. left:546,
  145. },
  146. {
  147. name:"植物保护",
  148. value:"0",
  149. top:271,
  150. left:533,
  151. },
  152. {
  153. name:"资源环境",
  154. value:"0",
  155. top:208,
  156. left:42,
  157. },
  158. {
  159. name:"国重楼",
  160. value:"0",
  161. top:200,
  162. left:333,
  163. },
  164. ],
  165. // 查询参数
  166. queryParams: {
  167. page: 1,
  168. pageSize: 10,
  169. },
  170. dataList: [{
  171. data1: '植物保护',
  172. data2: '499',
  173. data3: '47',
  174. data4: '220',
  175. data5: '137',
  176. },
  177. {
  178. data1: '资源环境',
  179. data2: '199',
  180. data3: '7',
  181. data4: '120',
  182. data5: '37',
  183. },
  184. {
  185. data1: '生命科学',
  186. data2: '299',
  187. data3: '71',
  188. data4: '10',
  189. data5: '37',
  190. },
  191. {
  192. data1: '资源环境',
  193. data2: '199',
  194. data3: '7',
  195. data4: '120',
  196. data5: '37',
  197. },
  198. {
  199. data1: '生命科学',
  200. data2: '299',
  201. data3: '71',
  202. data4: '10',
  203. data5: '37',
  204. },
  205. ],
  206. total: 0,
  207. }
  208. },
  209. created() {
  210. },
  211. beforeMount() {
  212. },
  213. mounted() {},
  214. methods: {
  215. dateClick(index) {
  216. this.dateIndex = index;
  217. },
  218. },
  219. }
  220. </script>
  221. <style lang="stylus" scoped>
  222. .warningDispose {
  223. height: 100%;
  224. width: 100%;
  225. background: #363744;
  226. padding: 20rpx 0rpx 0;
  227. box-sizing: border-box;
  228. .chart {
  229. width: 750rpx;
  230. height: 500rpx;
  231. position: relative;
  232. .chart-bg {
  233. width: 750rpx;
  234. height: 500rpx;
  235. position: absolute;
  236. z-index: 100;
  237. }
  238. .chart-n{
  239. padding: 34rpx 0rpx 26rpx;
  240. box-sizing: border-box;
  241. position: absolute;
  242. z-index: 200;
  243. .chart-t {
  244. display: flex;
  245. justify-content: space-between;
  246. margin: 0 30rpx;
  247. .chart-t-li {
  248. width: 76rpx;
  249. height: 100rpx;
  250. .chart-t-li-t {
  251. font-weight: 400;
  252. font-size: 30rpx;
  253. line-height: 42rpx;
  254. text-align: center;
  255. margin-top: 8rpx;
  256. }
  257. .chart-t-li-b {
  258. font-weight: 400;
  259. font-size: 28rpx;
  260. line-height: 39rpx;
  261. text-align: center;
  262. margin-top: 4rpx;
  263. }
  264. }
  265. .color-A {
  266. background: #0183FA;
  267. border-radius: 10rpx 10rpx 10rpx 10rpx;
  268. .chart-t-li-t {
  269. color: #FFFFFF;
  270. }
  271. .chart-t-li-b {
  272. color: #FFFFFF;
  273. }
  274. }
  275. .color-B {
  276. background: none;
  277. .chart-t-li-t {
  278. color: #FFFFFF;
  279. }
  280. .chart-t-li-b {
  281. color: #FFFFFF;
  282. }
  283. }
  284. }
  285. .chart-b {
  286. width: 690rpx;
  287. height: 350rpx;
  288. position: absolute;
  289. .chart-b-li{
  290. position: absolute;
  291. z-index: 300;
  292. width: 200rpx;
  293. height: 46rpx;
  294. >img{
  295. width: 200rpx;
  296. height: 46rpx;
  297. position: absolute;
  298. z-index: 400;
  299. }
  300. >view{
  301. padding-left: 16rpx;
  302. box-sizing: border-box;
  303. width: 200rpx;
  304. height: 46rpx;
  305. position: absolute;
  306. z-index: 500;
  307. font-weight: 400;
  308. font-size: 24rpx;
  309. color: #FFFFFF;
  310. line-height: 46rpx;
  311. text-align: left;
  312. }
  313. }
  314. }
  315. }
  316. }
  317. .statistics {
  318. width: 750rpx;
  319. height: 120rpx;
  320. background: #3E414F;
  321. .statistics-b {
  322. display: flex;
  323. justify-content: space-between;
  324. align-items: center;
  325. .statistics-b-li {
  326. flex: 1;
  327. text-align: center;
  328. .statistics-b-li-t {
  329. font-weight: 400;
  330. font-size: 36rpx;
  331. color: #FFFFFF;
  332. line-height: 50rpx;
  333. margin-top: 10rpx;
  334. }
  335. .statistics-b-li-t-tow {
  336. margin-top: 10rpx;
  337. display: flex;
  338. justify-content: center;
  339. align-items: center;
  340. >text {
  341. font-weight: 400;
  342. font-size: 28rpx;
  343. line-height: 50rpx;
  344. }
  345. >img {
  346. width: 22rpx;
  347. height: 28rpx;
  348. }
  349. }
  350. .color-A {
  351. color: #FF0000;
  352. }
  353. .color-B {
  354. color: #2EA805;
  355. }
  356. .statistics-b-li-b {
  357. font-weight: 400;
  358. font-size: 24rpx;
  359. color: #FFFFFF;
  360. line-height: 34rpx;
  361. margin-top: 9rpx;
  362. }
  363. }
  364. .line {
  365. width: 2rpx;
  366. height: 30rpx;
  367. background: #D8D8D8;
  368. }
  369. }
  370. }
  371. .table {
  372. width: 720rpx;
  373. margin-top: 20rpx;
  374. margin-left: 30rpx;
  375. .table-border {
  376. overflow: auto;
  377. .table-th {
  378. width: 860rpx;
  379. height: 80rpx;
  380. background: rgba(162, 162, 162, 0.2);
  381. border-radius: 20rpx 20rpx 0rpx 0rpx;
  382. padding: 0 30rpx;
  383. box-sizing: border-box;
  384. .table-th-li {
  385. height: 80rpx;
  386. display: flex;
  387. justify-content: flex-start;
  388. >view {
  389. font-weight: 400;
  390. font-size: 30rpx;
  391. color: #FFFFFF;
  392. line-height: 80rpx;
  393. text-align: center;
  394. margin-right: 38rpx;
  395. width: 120rpx;
  396. overflow: hidden;
  397. text-overflow: ellipsis;
  398. white-space: nowrap;
  399. }
  400. >view:nth-of-type(1) {
  401. width: 80rpx;
  402. }
  403. >view:nth-of-type(2) {
  404. width: 168rpx;
  405. }
  406. }
  407. }
  408. .table-tb {
  409. width: 860rpx;
  410. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  411. background: #3E414F;
  412. padding: 0 30rpx;
  413. box-sizing: border-box;
  414. .table-tb-li {
  415. height: 80rpx;
  416. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  417. display: flex;
  418. justify-content: flex-start;
  419. >view {
  420. font-weight: 400;
  421. font-size: 28rpx;
  422. color: #FFFFFF;
  423. line-height: 80rpx;
  424. text-align: center;
  425. margin-right: 38rpx;
  426. width: 120rpx;
  427. overflow: hidden;
  428. text-overflow: ellipsis;
  429. white-space: nowrap;
  430. }
  431. >view:nth-of-type(1) {
  432. width: 80rpx;
  433. }
  434. >view:nth-of-type(2) {
  435. width: 168rpx;
  436. }
  437. }
  438. }
  439. .sortOne {
  440. display: inline-block;
  441. width: 40rpx;
  442. height: 40rpx;
  443. padding: 4rpx;
  444. box-sizing: border-box;
  445. background: rgba(255, 0, 0, 0.2);
  446. font-weight: 400;
  447. font-size: 28rpx;
  448. color: #FF0000;
  449. line-height: 40rpx;
  450. text-align: center;
  451. border-radius: 20rpx;
  452. }
  453. .sortTow {
  454. display: inline-block;
  455. width: 40rpx;
  456. height: 40rpx;
  457. padding: 4rpx;
  458. box-sizing: border-box;
  459. background: rgba(255, 153, 0, 0.2);
  460. font-weight: 400;
  461. font-size: 28rpx;
  462. color: #FF9900;
  463. line-height: 40rpx;
  464. text-align: center;
  465. border-radius: 20rpx;
  466. }
  467. .sortThree {
  468. display: inline-block;
  469. width: 40rpx;
  470. height: 40rpx;
  471. padding: 4rpx;
  472. box-sizing: border-box;
  473. background: rgba(255, 242, 0, 0.2);
  474. font-weight: 400;
  475. font-size: 28rpx;
  476. color: #FFF200;
  477. line-height: 40rpx;
  478. text-align: center;
  479. border-radius: 20rpx;
  480. }
  481. .sortFive {
  482. display: inline-block;
  483. width: 40rpx;
  484. height: 40rpx;
  485. padding: 4rpx;
  486. box-sizing: border-box;
  487. background: rgba(1, 131, 250, 0.2);
  488. font-weight: 400;
  489. font-size: 28rpx;
  490. color: #0183FA;
  491. line-height: 40rpx;
  492. text-align: center;
  493. border-radius: 20rpx;
  494. }
  495. }
  496. }
  497. }
  498. </style>