| | |
| | | <el-popover placement="top" width="100" trigger="click"> |
| | | <!-- 内容 --> |
| | | <span slot="reference">工程展示</span> |
| | | <div class="popover-content"> |
| | | <div class="popover-content__header">项目信息</div> |
| | | <div class="popover-content__list"> |
| | | <div |
| | | class="popover-content__list__item" |
| | | v-for="item in displayProject" |
| | | :key="item.id" |
| | | :class="currProject == item.name ? 'active' : ''" |
| | | :title="item.name" |
| | | @click="DisplayCurrentProject(item.name)" |
| | | > |
| | | {{ item.name.length>8?item.name.substring(0,8):item.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-popover> |
| | | </div> |
| | | <div class="bottombtn"> |
| | | <el-popover placement="top" width="100" trigger="click"> |
| | | <!-- 内容 --> |
| | | <span slot="reference">工程巡视</span> |
| | | <div class="popover-content"> |
| | | <div class="popover-content__header">项目信息</div> |
| | | <div class="popover-content__list"> |
| | | <div |
| | | class="popover-content__list__item" |
| | | v-for="item in FlyProject" |
| | | :key="item.id" |
| | | :class="currProject == item.name ? 'active' : ''" |
| | | :title="item.name" |
| | | @click="FlyCurrentProject(item.name)" |
| | | > |
| | | {{ item.name.length>8?item.name.substring(0,8):item.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </el-popover> |
| | | </div> |
| | | </div> |
| | |
| | | id: "qqxm", |
| | | }, |
| | | ], |
| | | |
| | | displayProject:[ |
| | | { |
| | | name:"中俄东线管道工程", |
| | | id:"zedx" |
| | | }, |
| | | { |
| | | name:"西气东输三线中断管道工程", |
| | | id:"xqds" |
| | | }, |
| | | { |
| | | name:"中缅天然气管道工程", |
| | | id:"zmtrq" |
| | | }, |
| | | { |
| | | name:"山东官网新干线", |
| | | id:"sdxgx" |
| | | }, |
| | | ], |
| | | FlyProject:[ |
| | | { |
| | | name:"中俄东线管道工程", |
| | | id:"zedx" |
| | | }, |
| | | { |
| | | name:"西气东输三线中断管道工程", |
| | | id:"xqds" |
| | | }, |
| | | { |
| | | name:"中缅天然气管道工程", |
| | | id:"zmtrq" |
| | | }, |
| | | { |
| | | name:"山东官网新干线", |
| | | id:"sdxgx" |
| | | }, |
| | | ] |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | this.YXState = !this.YXState |
| | | }, |
| | | |
| | | //项目展示 |
| | | DisplayCurrentProject(parm){ |
| | | console.log(parm); |
| | | //打开或者加载图层 |
| | | |
| | | //飞到指定位置 |
| | | }, |
| | | |
| | | //工程漫游飞行 |
| | | FlyCurrentProject(parm){ |
| | | console.log(parm); |
| | | //打开或者加载图层 |
| | | |
| | | //开始飞行 |
| | | } |
| | | |
| | | |
| | | |
| | | }, |
| | | } |
| | | </script> |