index_20231016100108.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!--
  2. *@description: 数据中心 数据分布
  3. *@author: yh Fu
  4. *@date: 2023-08-23 14:45:16
  5. *@version: V1.0.5
  6. -->
  7. <template>
  8. <!-- 右侧 -->
  9. <div class="rightbar" v-if="showSearch == true">
  10. <div class="forthis">
  11. <dv-border-box-13
  12. backgroundColor="rgba(12, 19, 38, .90)"
  13. style="padding-bottom: 1rem"
  14. >
  15. <img
  16. src="@/assets/images/integrated/light.png"
  17. style="width: 100%; margin-top: 0.4rem"
  18. />
  19. <div class="this-title">
  20. <span>数据分布</span>
  21. <dv-decoration-3
  22. style="width: 150px; height: 15px; margin-right: 1rem"
  23. />
  24. </div>
  25. <div class="i-list-con h-73">
  26. <div class="overflow-y" style="height: 39vh">
  27. <div
  28. class="d-l-con"
  29. :class="{ on: listCurrentIndex == item.deptId }"
  30. v-for="item in deptGroupList"
  31. :key="item.deptId"
  32. v-on:click="indentleftByDeptIdSetMarkersForParent(item.deptId)"
  33. >
  34. <div class="d-l-l-text">
  35. <i class="i-small"></i>
  36. <h4>{{ item.deptName }}</h4>
  37. </div>
  38. <div class="d-l-l-count">{{ item.count }}</div>
  39. </div>
  40. </div>
  41. <div class="overflow-y" style="height: 34vh">
  42. <div id="data-chart" style="width: 100%; height: 34vh"></div>
  43. </div>
  44. </div>
  45. </dv-border-box-13>
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. export default {
  51. name:'Distribution',
  52. // 是否展示Flag 资源列表数据 当前资源索引
  53. props:['showSearch','deptGroupList','listCurrentIndex'],
  54. data() {
  55. return {
  56. }
  57. },
  58. mounted(){
  59. },
  60. methods:{
  61. indentleftByDeptIdSetMarkersForParent(deptId){
  62. this.$emit('indentleftByDeptIdSetMarkersOfParent',deptId)
  63. }
  64. }
  65. }
  66. </script>