| | |
| | | <span>断面图</span> |
| | | </div> |
| | | <span v-show="!myChartShow" style="color: #909399;font-size: 12px;">暂无数据</span> |
| | | <div v-show="myChartShow" id="echarts_box" style="width: 600px;height:300px;"></div> |
| | | <div v-show="myChartShow" id="echarts_box" ref="myChart" style="width: 600px;height:300px;"></div> |
| | | </el-card> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | <script> |
| | | |
| | | import eventBus from '../../../../eventBus' |
| | | import DrawLine from './AnalysisChoose/DrawLine' |
| | | // import main from "../leaflet/app/main" |
| | | import mapApi from '@/api/mapApi' |
| | | import DrawLine from './AnalysisChoose/DrawLine' |
| | | import mapApi from '../../../../api/mapApi' |
| | | |
| | | export default { |
| | | name: 'SewersAnalysis', |
| | |
| | | } |
| | | }, |
| | | mounted () { |
| | | // this.myChart = this.$echarts.init(document.getElementById('echarts_box')) |
| | | this.myChart = this.$echarts.init(this.$refs.myChart) |
| | | // 全局map传递 || this.map = window.map |
| | | this.map = window.map |
| | | eventBus.$on('map-obj', (mapObj) => { |
| | | this.map = mapObj |
| | | }) |
| | | // 使用 DrwLine方法 |
| | | eventBus.$on('draw-hdm-line', (points) => { |
| | | this.getHdmPoint(points) |