labPage.vue 6.5 KB

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