liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
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
<template>
  <div class="app-container" style="padding:0">
    <el-tabs>
<!--      <el-tab-pane :disabled="disabledSetting">-->
<!--        <span slot="label"><i class="el-icon-setting"></i> 采集点管理</span>-->
<!--        <cjdIndex ref="cjdIndex"></cjdIndex>-->
<!--      </el-tab-pane>-->
      <el-tab-pane :disabled="disabledSetting">
        <span slot="label"><i class="el-icon-setting"></i> 统计指标管理</span>
        <zbIndex ref="zbIndex"></zbIndex>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
 
<script>
import zbIndex from "./zbIndex";
import cjdIndex from "./cjdIndex";
 
export default {
  name: "modelWarnSetting",
  components: {zbIndex, cjdIndex},
  data() {
    return {
      currentNode: '',
      deviceDialog: false,
      energyDialog: false,
      productDialog: false,
      collectIndexDialog: false,
      indexLoading: false,
      deviceLoading: false,
      energyLoading: false,
      productLoading: false,
      settingEnergyList: [],
      settingDeviceList: [],
      settingProductList: [],
      settingIndexList: [],
      disabledSetting: true
    }
  },
  methods: {
    modelNodeChange(modelNode) {
      this.settingDeviceList = [];
      this.settingIndexList = [];
      this.disabledSetting = modelNode === undefined || modelNode === '' || modelNode === null;
      this.$refs.zbIndex.setModelNode(modelNode);
      this.$refs.cjdIndex.setModelNode(modelNode);
      if (modelNode) {
        this.currentNode = modelNode;
 
      }
    },
    collectIndexSetting() {
      this.collectIndexDialog = true;
    },
    showCollectIndexDialog() {
      this.$nextTick(() => {
        this.$refs.collectIndexSetting.init(this.currentNode, this.settingIndexList);
      })
    },
  }
}
</script>
 
<style scoped>
 
</style>