管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-12-22 54837b203b8d23c01e0e6cf716cb6a3829ae60f6
src/components/MapView/mapSpaceTop.vue
@@ -25,12 +25,15 @@
        </div>
      </el-option>
    </el-select>
    <queryinfo ref="queryinfo"/>
  </div>
</template>
<script>
import   queryinfo  from "../../views/Tools/queryinfo.vue"
import { inquiry_SelectTabs } from '../../api/api.js';
export default {
  components:{queryinfo },
  data() {
    return {
      menuTopFrom: {
@@ -39,12 +42,14 @@
      layerData: [
        {
          id: 1,
          label: '基础数据',
          tabDesc: '基础数据',
          value: 'BD',
          children: [],
        },
        {
          id: 2,
          label: '基础数据',
          tabDesc: '业务数据',
          value: 'BS',
          children: [],
@@ -52,7 +57,7 @@
      ],
      defaultProps: {
        children: 'children',
        label: 'tabDesc',
        label: 'label',
      },
      mapSpaceQueryLayer: null,
    };
@@ -71,6 +76,7 @@
      for (var i in option) {
        var val_Data = option[i];
        val_Data.id = '1' + i;
        val_Data.label = val_Data.tabDesc + '(' + val_Data.tab + ')';
        if (option[i].ns == 'bd') {
          this.layerData[0].children.push(val_Data);
        } else {
@@ -80,8 +86,13 @@
    },
    getCheckedNodes() {
      this.$store.state.mapSpaceQueryLayer = this.mapSpaceQueryLayer;
      this.$store.state.mapPopBoolean = true;
      // this.$store.state.mapPopBoolean = true;
      this.$store.state.mapPopBoxFlag = '2';
       this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("属性查询",null,{
          close: () => {
          },
        });
    },
    resetCheckedNodes() {
      this.menuTopFrom.queryLayer = null;