labPage.vue 6.8 KB

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