管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 27c5590aab433687c58dbf41e9271f71008834f0
src/components/Screen/bottom.vue
@@ -70,12 +70,12 @@
    return {
      YXState: true,
      yxImg: require("../../assets/img/Screen/yximg.png"),
      currMenu: "项目展示",
      currProject: "全球管网图",
      currMenu: "专题展示",
      currProject: "",
      searchName: "",
      menuList: [
        {
          menuName: "项目展示",
          menuName: "专题展示",
          children: [
            {
              name: "全国管网图",
@@ -96,7 +96,7 @@
          ],
        },
        {
          menuName: "工程展示",
          menuName: "项目展示",
          children: [
            {
              name: "中俄东线管道工程",
@@ -199,13 +199,18 @@
        case "工程巡视":
          this.showPathLine(child)
          break
        case "工程展示":
        case "项目展示":
          this.DisplayCurrentProject(child)
          break
        case "专题展示":
          this.changeProject(child)
          break
        default:
          break
      }
    },
    //工程巡视
    async showPathLine(params) {
      const line = wktToGeoJSON(params.wkt)
      const position = line.coordinates[0]
@@ -215,12 +220,12 @@
        pos.push(1000)
        result.push(...pos)
      })
      console.log("line", position)
      // console.log("line", position)
      window.sgworld.Creator.getFlyData(result, data => {
        data.showPoint = false
        data.showLine = true
        data.mode = 1
        data.mode = 0
        data.height = 5000
        // 弹窗数据
@@ -277,15 +282,15 @@
    async getCountProjectDisplay() {
      const res = await countProjectLocation()
      if (res.code === 200) {
        const menu = this.menuList.find(item => item.menuName == "工程展示")
        const menu = this.menuList.find(item => item.menuName == "项目展示")
        menu.children = res.result.map(item => {
          return {
            name: item.projname,
            id: item.projname,
            wkt: item.st_astext,
            wkt: item.wkt,
          }
        })
        console.log(menu.children.length)
      }
    },
    async getCountProjectTour() {
@@ -299,9 +304,13 @@
            wkt: item.wkt,
          }
        })
        console.log(menu.children.length)
      }
    },
    //专题展示
    changeProject(params) {
      this.$bus.$emit('changeProject', params.name)
    }
  },
}
</script>