| | |
| | | :data="tableData" |
| | | style="width: 100%" @row-click="selectRow" size="mini"> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="pipename" |
| | | label="管线名称" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="type" |
| | | prop="mediumtype" |
| | | label="管线类型" |
| | | width="180"> |
| | | </el-table-column> |
| | |
| | | // 已绘制线图 进行绘制横断面数据分析 |
| | | const res = await mapApi.getCrossSection(this.hdmParam) |
| | | console.log(res) |
| | | const dataPoint = res.data.point |
| | | console.log(dataPoint) |
| | | // this.tableData = dataPoint.pipelines.extraData |
| | | for (let i = 0; i < dataPoint.length; i++) { |
| | | const obj = { |
| | | pipename: dataPoint[i].pipelines.extraData.pipename, |
| | | mediumtype: dataPoint[i].pipelines.extraData.mediumtype |
| | | } |
| | | this.tableData.push(obj) |
| | | } |
| | | }, |
| | | // 横断面绘制完成后 进行横断面数据分析 进行图表展示 |
| | | async selectRow (e) { |
| | | console.log(e) |
| | | // const dataSeries = e.data.pointInterval |
| | | // 3. 使用刚指定的配置项和数据,显示图表 |
| | | const option = { |
| | | xAxis: { |
| | |
| | | }, |
| | | series: [{ |
| | | data: [820, 932, 901, 934, 1290, 1330, 1320], |
| | | // data: dataSeries, |
| | | type: 'line' |
| | | }] |
| | | } |