index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="matterInfo">
  3. <h4>本年度重点事项推进情况</h4>
  4. <div class="ndtj j1" style="margin-top:20px;" @click="schedule()">
  5. <p>专项检查</p>
  6. <el-tooltip class="box-item" effect="dark" content="" placement="left" @click="schedule()">
  7. <template #content> 开始日期:2023-01-01<br>计划完成日期:2023-12-31<br>当前应完成:50%<br>当前实际完成:50%</template>
  8. <el-progress :percentage="50"></el-progress>
  9. </el-tooltip>
  10. <div class="num">
  11. 计划数:1000家&nbsp;&nbsp;&nbsp;&nbsp;完成数:500家
  12. </div>
  13. </div>
  14. <div class="ndtj j2" @click="schedule()">
  15. <p>厂房仓库检查</p>
  16. <el-tooltip class="box-item" effect="dark" content="" placement="left">
  17. <template #content> 开始日期:2023-01-01<br>计划完成日期:2023-12-31<br>当前应完成:50%<br>当前实际完成:60%</template>
  18. <el-progress :percentage="60"></el-progress>
  19. </el-tooltip>
  20. <div class="num">
  21. 计划数:500家&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;完成数:300家
  22. </div>
  23. </div>
  24. <div class="ndtj j3" @click="schedule()">
  25. <p>重点隐患</p>
  26. <el-tooltip class="box-item" effect="dark" content="" placement="left">
  27. <template #content> 开始日期:2023-01-01<br>计划完成日期:2023-12-31<br>当前应完成:41.67%<br>当前实际完成:41.67%</template>
  28. <el-progress :percentage="41.67"></el-progress>
  29. </el-tooltip>
  30. <div class="num">
  31. 计划数:300处&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;完成数:125处
  32. </div>
  33. </div>
  34. <div class="ndtj j4" @click="schedule(17)">
  35. <p>专职站微站建设</p>
  36. <el-tooltip class="box-item" effect="dark" content="" placement="left" >
  37. <template #content> 开始日期:2023-01-01<br>计划完成日期:2023-12-31<br>当前应完成:50%<br>当前实际完成:33.33%</template>
  38. <el-progress :percentage="33.33"></el-progress>
  39. </el-tooltip>
  40. <div class="num">
  41. 计划数:30个&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;完成数:10个
  42. </div>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. //闵行区基本情况
  51. data:{},
  52. };
  53. },
  54. mounted() {
  55. this.getData()
  56. },
  57. methods: {
  58. //本年度重点事项推进情况撒点
  59. schedule(id){
  60. if(id){
  61. this.$axios.post(this.$api.water.baseGgpFacilityList,{
  62. "facilityType": [id]
  63. }).then((res) => {
  64. let arr = []
  65. if(res.data.length>0){
  66. arr = res.data
  67. }
  68. this.addMarker(arr, "enforcement-dynamic","本年度重点事项推进情况");
  69. });
  70. }else{
  71. this.addMarker([], "enforcement-dynamic","本年度重点事项推进情况");
  72. }
  73. },
  74. //闵行区基本情况
  75. getData(){
  76. this.$axios.get(this.$api.fireSite.regionInfo
  77. ).then(res=>{
  78. this.data = [
  79. { num: res.data[0].regionArea, name: '辖区面积',color:'#7DD807',unit:'km²' },
  80. { num: res.data[0].streetTownNum, name: '街镇',color:'#7DD807',unit:'个' },
  81. { num: res.data[0].regionResident, name: '常住人口',color:'#FC0609',unit:'万' },
  82. { num: res.data[0].hospitalNum, name: '医院',color:'#FD843A',unit:'家' },
  83. { num: res.data[0].keyCompanyNum, name: '重点单位',color:'#01C3B4',unit:'家' },
  84. { num: res.data[0].schoolNum, name: '学校',color:'#058DFE',unit:'个' },
  85. { num: res.data[0].largeBuildNum, name: '大型综合体',color:'#7DD807',unit:'个' },
  86. ]
  87. })
  88. },
  89. },
  90. };
  91. </script>
  92. <style lang="scss" scoped>
  93. .matterInfo {
  94. .ndtj{
  95. margin:28px 0 0 0%;
  96. color:#fff;
  97. font-size: 14px;
  98. position: relative;
  99. >p{
  100. // margin-top:-50px;
  101. }
  102. .num{
  103. position: absolute;
  104. width:45%;
  105. margin:-4px 0 0 2%;
  106. display: inline-block;
  107. }
  108. }
  109. }
  110. </style>
  111. <style>
  112. .el-progress{
  113. width:58%;
  114. height:20px;
  115. display: inline-block;
  116. }
  117. .el-progress-bar__outer{
  118. height:14px !important;
  119. }
  120. .el-progress__text{
  121. color:#000 !important;
  122. text-align: center;
  123. position: absolute;
  124. top:1px;
  125. left:50%;
  126. z-index: 10;
  127. }
  128. .j1 .el-progress-bar__inner,.j3 .el-progress-bar__inner{
  129. background: #3f8a3f;
  130. }
  131. .j2 .el-progress-bar__inner{
  132. background: #5081c5;
  133. }
  134. .j4 .el-progress-bar__inner{
  135. background: #b72727;
  136. }
  137. </style>