warningDispose.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. <!-- <qiun-data-charts type="tarea" :chartData="chartData" background="none" /> -->
  16. </view>
  17. </view>
  18. </view>
  19. <view class="statistics">
  20. <view class="statistics-b">
  21. <view class="statistics-b-li">
  22. <view class="statistics-b-li-t">99</view>
  23. <view class="statistics-b-li-b">昨日预警处置数</view>
  24. </view>
  25. <view class="line"></view>
  26. <view class="statistics-b-li">
  27. <view class="statistics-b-li-t">16</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-tow">
  33. <text class="color-B">-0.9%</text>
  34. <img src="@/pages/images/dataBoard/dataBoard-icon3.png">
  35. </view>
  36. <view class="statistics-b-li-b">环比增长</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="table">
  41. <view class="table-border">
  42. <view class="table-th">
  43. <view class="table-th-li">
  44. <view>排行</view>
  45. <view>学院单位</view>
  46. <view>总数</view>
  47. <view>昨日</view>
  48. <view>今日</view>
  49. <view>环比</view>
  50. </view>
  51. </view>
  52. <view class="table-tb">
  53. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  54. <view>{{index}}</view>
  55. <view>{{item.data2}}</view>
  56. <view>{{item.data2}}</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: "warningDispose",
  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. .warningDispose {
  147. height: 100%;
  148. width: 100%;
  149. background: #363744;
  150. padding: 20rpx 0rpx 0;
  151. box-sizing: border-box;
  152. .chart {
  153. width: 750rpx;
  154. height: 500rpx;
  155. position: relative;
  156. .chart-bg {
  157. width: 750rpx;
  158. height: 500rpx;
  159. position: absolute;
  160. z-index: 100;
  161. }
  162. .chart-n{
  163. padding: 34rpx 30rpx 26rpx;
  164. box-sizing: border-box;
  165. position: absolute;
  166. z-index: 200;
  167. .chart-t {
  168. display: flex;
  169. justify-content: space-between;
  170. .chart-t-li {
  171. width: 76rpx;
  172. height: 100rpx;
  173. .chart-t-li-t {
  174. font-weight: 400;
  175. font-size: 30rpx;
  176. line-height: 42rpx;
  177. text-align: center;
  178. margin-top: 8rpx;
  179. }
  180. .chart-t-li-b {
  181. font-weight: 400;
  182. font-size: 28rpx;
  183. line-height: 39rpx;
  184. text-align: center;
  185. margin-top: 4rpx;
  186. }
  187. }
  188. .color-A {
  189. background: #0183FA;
  190. border-radius: 10rpx 10rpx 10rpx 10rpx;
  191. .chart-t-li-t {
  192. color: #FFFFFF;
  193. }
  194. .chart-t-li-b {
  195. color: #FFFFFF;
  196. }
  197. }
  198. .color-B {
  199. background: none;
  200. .chart-t-li-t {
  201. color: #FFFFFF;
  202. }
  203. .chart-t-li-b {
  204. color: #FFFFFF;
  205. }
  206. }
  207. }
  208. .chart-b {
  209. width: 690rpx;
  210. height: 350rpx;
  211. }
  212. }
  213. }
  214. .statistics {
  215. width: 750rpx;
  216. height: 120rpx;
  217. background: #3E414F;
  218. .statistics-b {
  219. display: flex;
  220. justify-content: space-between;
  221. align-items: center;
  222. .statistics-b-li {
  223. flex: 1;
  224. text-align: center;
  225. .statistics-b-li-t {
  226. font-weight: 400;
  227. font-size: 36rpx;
  228. color: #FFFFFF;
  229. line-height: 50rpx;
  230. margin-top: 10rpx;
  231. }
  232. .statistics-b-li-t-tow {
  233. margin-top: 10rpx;
  234. display: flex;
  235. justify-content: center;
  236. align-items: center;
  237. >text {
  238. font-weight: 400;
  239. font-size: 28rpx;
  240. line-height: 50rpx;
  241. }
  242. >img {
  243. width: 22rpx;
  244. height: 28rpx;
  245. }
  246. }
  247. .color-A {
  248. color: #FF0000;
  249. }
  250. .color-B {
  251. color: #2EA805;
  252. }
  253. .statistics-b-li-b {
  254. font-weight: 400;
  255. font-size: 24rpx;
  256. color: #FFFFFF;
  257. line-height: 34rpx;
  258. margin-top: 9rpx;
  259. }
  260. }
  261. .line {
  262. width: 2rpx;
  263. height: 30rpx;
  264. background: #D8D8D8;
  265. }
  266. }
  267. }
  268. .table {
  269. width: 720rpx;
  270. margin-top: 20rpx;
  271. margin-left: 30rpx;
  272. .table-border {
  273. overflow: auto;
  274. .table-th {
  275. width: 860rpx;
  276. height: 80rpx;
  277. background: rgba(162, 162, 162, 0.2);
  278. border-radius: 20rpx 20rpx 0rpx 0rpx;
  279. padding: 0 30rpx;
  280. box-sizing: border-box;
  281. .table-th-li {
  282. height: 80rpx;
  283. display: flex;
  284. justify-content: flex-start;
  285. >view {
  286. font-weight: 400;
  287. font-size: 30rpx;
  288. color: #FFFFFF;
  289. line-height: 80rpx;
  290. text-align: center;
  291. margin-right: 38rpx;
  292. width: 120rpx;
  293. overflow: hidden;
  294. text-overflow: ellipsis;
  295. white-space: nowrap;
  296. }
  297. >view:nth-of-type(1) {
  298. width: 80rpx;
  299. }
  300. >view:nth-of-type(2) {
  301. width: 168rpx;
  302. }
  303. }
  304. }
  305. .table-tb {
  306. width: 860rpx;
  307. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  308. background: #3E414F;
  309. padding: 0 30rpx;
  310. box-sizing: border-box;
  311. .table-tb-li {
  312. height: 80rpx;
  313. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  314. display: flex;
  315. justify-content: flex-start;
  316. >view {
  317. font-weight: 400;
  318. font-size: 28rpx;
  319. color: #FFFFFF;
  320. line-height: 80rpx;
  321. text-align: center;
  322. margin-right: 38rpx;
  323. width: 120rpx;
  324. overflow: hidden;
  325. text-overflow: ellipsis;
  326. white-space: nowrap;
  327. }
  328. >view:nth-of-type(1) {
  329. width: 80rpx;
  330. }
  331. >view:nth-of-type(2) {
  332. width: 168rpx;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. }
  339. </style>