| | |
| | | <el-tab-pane label="分析" name="second"> |
| | | <SewersAnalysis></SewersAnalysis> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="历史" name="third">历史</el-tab-pane> |
| | | <el-tab-pane label="历史" name="third"> |
| | | <SewersHistory></SewersHistory> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | // 引入分析组件内容 |
| | | import SewersAnalysis from '@components/panel/topicSearch/SewersSelect/SewersAnalysis' |
| | | import SewersHistory from '@components/panel/topicSearch/SewersSelect/SewersHistory' |
| | | |
| | | export default { |
| | | name: 'SewersSearch', |
| | | components: { |
| | | SewersAnalysis |
| | | SewersAnalysis, |
| | | SewersHistory |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | wfsHelper.addLike('name', this.form.keyword) |
| | | // const _this = this |
| | | const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}) |
| | | console.log(res) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.list = res.features |
| | | } |
| | | }, |
| | | handleLocation (val) { |
| | | console.log(val) |
| | | const bound = this.L.geoJSON([val], {}).getBounds() |
| | | // var layer = window.layerFactory.flyByLayerId(val.id, bound) |
| | | window.map.flyToBounds(bound) |