管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-09 22fcbf0a9ed8e0a2df9695859d7a52d1dd55b386
src/views/Synthesis/LeftMenu.vue
@@ -36,7 +36,7 @@
      showTwoMenuFlag: false,
      setListTwoMenu: [],
      setListTwoMenuAll: [
        [
        [
          {
            id: 'a1',
            label: 'synthesis.layer',
@@ -299,6 +299,12 @@
            name: '导出',
            css: 'twoMenu_imge86',
          },
        {
          id: 'h8',
          label: 'synthesis.addlabel',
          name: '文字',
          css: 'twoMenu_imge88',
        },
          {
            id: 'h7',
            label: 'synthesis.removepaint',
@@ -336,6 +342,20 @@
  methods: {
    //二級菜单点击切换
    setChangeTwoMenu(res) {
      //清除绘制图形对象
      sgworld.Creator.SimpleGraphic.clear();
      if (window.Viewer.scene.primitives.length != null) {
        window.Viewer.scene.primitives.removeAll();
      }
      if (this.$store.state.primitLayer != null) {
        sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
        this.$store.state.primitLayer = null;
      }
      //关闭打开的信息窗体
      this.showTwoMenuFlag = res.id;
      this.$store.state.mapMenuBoolean = false;
      this.$store.state.mapMenuBoxFlag = null;
@@ -346,6 +366,10 @@
        window.model.deleteObject();
        window.model = null;
      }
      switch (val) {
        case 'a': //图层管理
          this.setCoverage(res.id);
@@ -413,8 +437,12 @@
          break;
        case 'h7':
          sgworld.Creator.SimpleGraphic.clear();
          break;
      case 'h8':
         sgworld.Creator.createSimpleGraphic('label', {}, function (entity) {
          });
        break;
      }
    },
    handleSaveClick() {
@@ -455,6 +483,7 @@
        alert('当前场景没有entities实体');
      }
    },
    handleOpenClick() {
      sgworld.Creator.SimpleGraphic.edit(true, { editProp: true });
      let fileInput = document.querySelector('.file');
@@ -704,6 +733,7 @@
      }
    },
    setAnalsy(res) {
     //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo");
      var that = this;
      switch (res) {
        case 'd1':
@@ -777,7 +807,9 @@
          );
          break;
        case 'd9':
       this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo");
          this.$store.state.mapPopBoxFlag = '3';
          this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("管道空间分析", null, {
            close: () => {
              if (this.$store.state.pipelineEntity.length != 0) {
@@ -1263,5 +1295,8 @@
  .twoMenu_imge87 {
    background: url("../../assets/img/synthesis/清除.png") no-repeat center;
  }
  .twoMenu_imge88 {
    background: url("../../assets/img/synthesis/图层 32.png") no-repeat center;
  }
}
</style>