peng
2026-03-24 05c7478c26954ee6031f98fce6c8c9901abb98a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
  <div class="table-card" ref="tableCard" :bordered="false">
    <!-- table区域-begin -->
    <div>
      <split-pane :min-percent="10" :default-percent="17" split="vertical">
        <template slot="paneL">
          <div class="organ_tree_ct">
            <organ-tree height="67vh" ref="orgTree" @on-tree-node-select="onTreeNodeSelect"></organ-tree>
          </div>
        </template>
        <template slot="paneR">
          <div v-if="selectTreeObj.orgCategory == 3">
            <DataReGasStation></DataReGasStation>
          </div>
          <div v-else>
            <DataReMechanism ref="DataReMechanismRef" :selectTreeObj="selectTreeObj"></DataReMechanism>
          </div>
        </template>
      </split-pane>
    </div>
  </div>
</template>
 
<script>
import OrganTree from '../tools/OrganTree'
import splitPane from 'vue-splitpane'
import { getAction, postAction } from '@tievd/cube-block/lib/api/manage'
import DataReMechanism from './components/DataReMechanism'
import DataReGasStation from './components/DataReGasStation'
export default {
  name: 'DataReport',
 
  components: {
    OrganTree,
    splitPane,
    DataReMechanism,
    DataReGasStation,
  },
 
  data() {
    return {
      description: '数据报表',
      queryParam: {},
      selectTreeObj: JSON.parse(localStorage.getItem('userDepartInfo')),
      showPageType: 1,
      // 列定义
      url: {},
    }
  },
 
  methods: {
    onTreeNodeSelect(id, node) {
      this.selectTreeObj = node.node.dataRef
      this.queryParam.orgCode = node.node.dataRef.orgCode
      if (this.selectTreeObj.orgCategory == 3) {
      } else {
        this.$nextTick(() => {
          this.$refs.DataReMechanismRef.initData()
        })
      }
    },
  },
 
  mounted() {
    this.$nextTick(() => {})
  },
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
.organ_tree_ct {
  height: 76vh;
}
</style>