管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 27c5590aab433687c58dbf41e9271f71008834f0
src/components/Screen/bottom.vue
@@ -70,21 +70,21 @@
    return {
      YXState: true,
      yxImg: require("../../assets/img/Screen/yximg.png"),
      currMenu: "项目展示",
      currMenu: "专题展示",
      currProject: "",
      searchName: "",
      menuList: [
        {
          menuName: "项目展示",
          menuName: "专题展示",
          children: [
            // {
            //   name: "全国管网图",
            //   id: "qggwt",
            // },
            // {
            //   name: "全球管网图",
            //   id: "qqgwt",
            // },
            {
              name: "全国管网图",
              id: "qggwt",
            },
            {
              name: "全球管网图",
              id: "qqgwt",
            },
            {
              name: "全国项目",
              id: "qgxm",
@@ -96,7 +96,7 @@
          ],
        },
        {
          menuName: "工程展示",
          menuName: "项目展示",
          children: [
            {
              name: "中俄东线管道工程",
@@ -199,16 +199,18 @@
        case "工程巡视":
          this.showPathLine(child)
          break
        case "工程展示":
        case "项目展示":
          this.DisplayCurrentProject(child)
          break
        case "项目展示":
        case "专题展示":
          this.changeProject(child)
          break
        default:
          break
      }
    },
    //工程巡视
    async showPathLine(params) {
      const line = wktToGeoJSON(params.wkt)
      const position = line.coordinates[0]
@@ -280,7 +282,7 @@
    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,
@@ -305,6 +307,7 @@
      
      }
    },
    //专题展示
    changeProject(params) {
      this.$bus.$emit('changeProject', params.name)
    }