basicOperation.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <div class="main-data data-basic-operation">
  3. <!-- <div class="title-area">基础运行数据</div> -->
  4. <div class="content-area">
  5. <div class="content-title">
  6. <span class="title">智能后勤APP用户使用情况数据</span>
  7. </div>
  8. <div class="content">
  9. <div class="data-list">
  10. <div v-for="(item, index) in dataList" :key="index" class="data-item">
  11. <div class="data-fir">
  12. <img src="@/assets/images/service_new/img_1.png" class="icon" />
  13. <div class="name">{{item.name}}</div>
  14. </div>
  15. <div class="data-snd">
  16. <div class="num">{{item.data}}</div>
  17. <div class="unit">人</div>
  18. </div>
  19. </div>
  20. <div class="rate-item">
  21. <el-progress
  22. type="circle"
  23. :width="80"
  24. :stroke-width="5"
  25. :percentage=onlineRate
  26. color="#00FFFF"
  27. style="color:rgba(0, 247, 255, 0.18);"
  28. ></el-progress>
  29. <div class="name">人数在线率</div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="content-title mar">
  34. <span class="title">活跃率TOP10公司</span>
  35. </div>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. import { getBasicOverviewData } from "@/api/screen/service";
  41. export default {
  42. name: "BasicOperation",
  43. props: {
  44. appOrg: {
  45. type: String,
  46. default: "0000",
  47. },
  48. },
  49. watch:{
  50. appOrg(newValue,oldValue){
  51. this.getBasicOverviewData();
  52. },
  53. },
  54. data() {
  55. return {
  56. dataList: [],
  57. onlineRate: 0,
  58. };
  59. },
  60. created() {
  61. //数据概况
  62. this.getBasicOverviewData();
  63. },
  64. destroyed() {},
  65. beforeDestroy() {},
  66. mounted() {},
  67. methods: {
  68. //获取数据概况
  69. getBasicOverviewData() {
  70. this.dataList = [];
  71. getBasicOverviewData(this.$props.appOrg).then((res) => {
  72. if (Number(res.code) === 200) {
  73. this.dataList.push(
  74. {
  75. name: res.data.registerNum.name,
  76. data: res.data.registerNum.value,
  77. }
  78. )
  79. this.dataList.push(
  80. {
  81. name: res.data.orderNum.name,
  82. data: res.data.orderNum.value,
  83. }
  84. )
  85. // console.log(dataList);
  86. this.onlineRate =res.data.onlineRate;
  87. //alert(this.onlineRate);
  88. }
  89. });
  90. },
  91. showContent(percent){
  92. return percent;
  93. }
  94. },
  95. };
  96. </script>
  97. <style lang="scss">
  98. .data-basic-operation {
  99. .content-area {
  100. padding: 15px 20px 0 15px;
  101. }
  102. .content-title {
  103. width: 100%;
  104. height: 26px;
  105. background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
  106. background-size: 100% 100%;
  107. font-family: "PingFangSC";
  108. font-size: 14px;
  109. font-weight: bold;
  110. color: #00ffff;
  111. padding-left: 25px;
  112. .title {
  113. display: block;
  114. position: relative;
  115. top:-5px;
  116. }
  117. }
  118. .mar{
  119. margin-top:35px;
  120. }
  121. .content{
  122. margin-top:20px;
  123. }
  124. .data-list {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: flex-start !important;
  128. width: 100%;
  129. .data-item{
  130. width:auto;
  131. border-right: 0 !important;
  132. padding-top: 10px;
  133. .data-fir{
  134. width:100%;
  135. display: flex;
  136. align-items: center;
  137. .icon{
  138. width: 15px;
  139. height: 15px;
  140. margin-right: 6px;
  141. }
  142. .name{
  143. font-size: 14px;
  144. color:#FFFFFF;
  145. }
  146. }
  147. .data-snd{
  148. width:100%;
  149. display: flex;
  150. align-items: center;
  151. justify-content: flex-start;
  152. .num{
  153. font-size: 30px;
  154. color:#00FFFF;
  155. font-family: 'electronicFont';
  156. }
  157. .unit{
  158. font-size:12px;
  159. color:#00FFFF;
  160. font-weight: 500;
  161. position: relative;
  162. top:3px;
  163. left:2px;
  164. }
  165. }
  166. .data-thd{
  167. font-size: 14px;
  168. color:#FFFFFF;
  169. padding-top:4px;
  170. }
  171. }
  172. .rate-item{
  173. display: flex;
  174. flex-direction: column;
  175. align-items: center;
  176. .name{
  177. font-size: 14px;
  178. color:#FFFFFF;
  179. padding-top:4px;
  180. font-family: "fashionZh" !important;
  181. }
  182. }
  183. }
  184. .el-progress--circle .el-progress__text, .el-progress--dashboard .el-progress__text{
  185. color: #FFFFFF !important;
  186. font-family: "fashionZh" !important;
  187. font-size: 16px !important;
  188. }
  189. .el-progress-circle__track {
  190. color: #FFFFFF;
  191. opacity: 0.1;
  192. }
  193. ::-webkit-scrollbar {
  194. width: 3px;
  195. height: 3px;
  196. }
  197. ::-webkit-scrollbar-thumb {
  198. //滑块部分
  199. // border-radius: 5px;
  200. background-color: #58cbbb;
  201. }
  202. ::-webkit-scrollbar-track {
  203. //轨道部分
  204. // box-shadow: inset 0 0 5px #ddd;
  205. background: #ddd;
  206. // border-radius: 5px;
  207. }
  208. .unit-label{
  209. color: rgba(255,255,255,0) !important;
  210. }
  211. }
  212. </style>