| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <!-- 附属设施面板 --> |
| | | <affiliated-facilities :facilitiesParameter="facilitiesParameter" :fuShuSheShiSubItems="fuShuSheShiSubItems" ></affiliated-facilities> |
| | | <affiliated-facilities :facilitiesParameter="facilitiesParameter" v-if="fuShuSheShiShow" ></affiliated-facilities> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | subItems: LayerPipeLines.layers, |
| | | total: 0, |
| | | form: { |
| | | pipelineType: '管网', |
| | | pipelineType: '管线', |
| | | dataType: '', |
| | | keyword: '' |
| | | }, |
| | |
| | | isWaybillHover: true, |
| | | isRouteHover: false, |
| | | facilitiesParameter: null, |
| | | // fuShuSheShiShow: false, |
| | | |
| | | fuShuSheShiShow: true, |
| | | activeNum: -1 |
| | | } |
| | | }, |
| | |
| | | }, |
| | | handleLocation (val, index) { |
| | | this.activeNum = index |
| | | |
| | | this.facilitiesParameter = val |
| | | // layer && layer.openPopup() |
| | | // 判断选择是否是管线,如果是则显示《附属设施》弹框 |
| | | /* if (this.form.pipelineType === '管线') { |
| | | for (let i = 0; i < this.items.length; i++) { |
| | | const item = this.items[i] |
| | | if (item.name === '附属设施') { |
| | | this.fuShuSheShiSubItems = item.layers |
| | | // console.log(this.fuShuSheShiSubItems) |
| | | } |
| | | } |
| | | } */ |
| | | if (this.form.pipelineType === '管线') { |
| | | this.fuShuSheShiShow = true |
| | | } else { |
| | | this.fuShuSheShiShow = false |
| | | } |
| | | window.layerFactory.flyByFeature(val, this.form.dataType.code) |
| | | } |
| | | } |