personnel_orientation.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="content">
  3. <!-- <view class="charts-box">
  4. <qiun-data-charts type="ring" :chartData="chartData" background="none" />
  5. </view> -->
  6. <view class="list">
  7. <view class="item" v-for="item in 3">
  8. <view class="title">红柳煤矿</view>
  9. <view class="inner">
  10. <view class="box">
  11. <view class="name">井下人数</view>
  12. <view class="num">286个</view>
  13. </view>
  14. <view class="box">
  15. <view class="name">矿级领导</view>
  16. <view class="num">1个</view>
  17. </view>
  18. <view class="box">
  19. <view class="name">公司领导</view>
  20. <view class="num">0个</view>
  21. </view>
  22. </view>
  23. <view class="right_arrow">
  24. <view class="text">查看详情</view>
  25. <view class="icon"></view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. chartData: {
  36. categories: [],
  37. "series": [{
  38. "data": [{
  39. "name": "一班",
  40. "value": 50
  41. },
  42. {
  43. "name": "二班",
  44. "value": 30
  45. },
  46. {
  47. "name": "三班",
  48. "value": 20
  49. },
  50. {
  51. "name": "四班",
  52. "value": 18
  53. },
  54. {
  55. "name": "五班",
  56. "value": 8
  57. }
  58. ]
  59. }]
  60. },
  61. };
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. page {
  67. background-color: #F1F1F1;
  68. }
  69. /* 请根据需求修改图表容器尺寸,如果父容器没有高度图表则会显示异常 */
  70. .charts-box {
  71. width: 100%;
  72. height: 300px;
  73. }
  74. .content {
  75. width: 750rpx;
  76. box-sizing: border-box;
  77. padding: 25rpx;
  78. }
  79. .list {
  80. .item {
  81. width: 700rpx;
  82. background-color: #FFFFFF;
  83. border-radius: 8px;
  84. overflow: hidden;
  85. margin-bottom: 25rpx;
  86. .title {
  87. line-height: 80rpx;
  88. padding-left: 20rpx;
  89. border-left: 8rpx solid #83DCFC;
  90. border-bottom: 1px solid #eee;
  91. }
  92. .inner {
  93. display: flex;
  94. justify-content: space-around;
  95. .box {
  96. padding: 30rpx 0;
  97. color: #999;
  98. text-align: center;
  99. .name {
  100. line-height: 60rpx;
  101. }
  102. .num {
  103. color: #49C27D;
  104. }
  105. }
  106. .box:nth-child(2) {
  107. .num {
  108. color: #B85A56;
  109. }
  110. }
  111. .box:nth-child(3) {
  112. .num {
  113. color: #34383D;
  114. }
  115. }
  116. }
  117. .right_arrow {
  118. width: 160rpx;
  119. height: 60rpx;
  120. margin-left: 520rpx;
  121. display: flex;
  122. align-items: center;
  123. .text {
  124. font-size: 28rpx;
  125. color: #999999;
  126. margin-right: 8rpx;
  127. }
  128. .icon {
  129. width: 30rpx;
  130. height: 30rpx;
  131. background-image: url(./icon/right.png);
  132. background-size: cover;
  133. background-repeat: no-repeat;
  134. }
  135. }
  136. }
  137. }
  138. </style>