|
@@ -74,15 +74,24 @@
|
|
<div id="tableTabs" v-show="showTabs">
|
|
<div id="tableTabs" v-show="showTabs">
|
|
<el-tabs type="border-card">
|
|
<el-tabs type="border-card">
|
|
<el-tab-pane label="风场列表">
|
|
<el-tab-pane label="风场列表">
|
|
- <wind-table ref="windTable" name="wind" @updateInfo="showUpdateWindForm" @updateShapeInfo="updateWindInfo" @rowClick="clickWindRow($event, 0)" @afterDeleted="afterDeletedWind" />
|
|
|
|
|
|
+ <wind-table ref="windTable" name="wind" @updateInfo="showUpdateWindForm" @showWindDetail="showWindDetail" @updateShapeInfo="updateWindInfo" @rowClick="clickWindRow($event, 0)" @afterDeleted="afterDeletedWind" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="液压泵列表">
|
|
<el-tab-pane label="液压泵列表">
|
|
- <pump-table ref="pumpTable" name="pump" @rowClick="addSingleMarker($event, 0)"/>
|
|
|
|
|
|
+ <pump-table ref="pumpTable" name="pump" @showPumpDetail="showPumpDetail" @rowClick="addSingleMarker($event, 0)"/>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <view-dialog
|
|
|
|
+ :detailVisible="detailVisible"
|
|
|
|
+ @sendVal="closeDialog"
|
|
|
|
+ :info="windDetailData"
|
|
|
|
+ />
|
|
|
|
+ <view-pump-dialog
|
|
|
|
+ :detailVisible="pumpDetailVisible"
|
|
|
|
+ @sendVal="closeDialog"
|
|
|
|
+ :info="pumpDetailData"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -93,6 +102,8 @@ import Regionals from "@/components/Cascader/Regionals";
|
|
import WindTable from './table/WindTable';
|
|
import WindTable from './table/WindTable';
|
|
import PumpTable from './table/PumpTable';
|
|
import PumpTable from './table/PumpTable';
|
|
import DistanceTool from '@/utils/DistanceTool';
|
|
import DistanceTool from '@/utils/DistanceTool';
|
|
|
|
+import viewDialog from './components/viewDialog';
|
|
|
|
+import viewPumpDialog from './components/viewPumpDialog';
|
|
import $ from "jquery";
|
|
import $ from "jquery";
|
|
export default {
|
|
export default {
|
|
name: "wind_index",
|
|
name: "wind_index",
|
|
@@ -100,11 +111,17 @@ export default {
|
|
AddEditWind,
|
|
AddEditWind,
|
|
Regionals,
|
|
Regionals,
|
|
WindTable,
|
|
WindTable,
|
|
- PumpTable
|
|
|
|
|
|
+ PumpTable,
|
|
|
|
+ viewDialog,
|
|
|
|
+ viewPumpDialog
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
loading: false, // 加载
|
|
loading: false, // 加载
|
|
|
|
+ detailVisible:false,//详情显示
|
|
|
|
+ pumpDetailVisible:false,
|
|
|
|
+ windDetailData:[],
|
|
|
|
+ pumpDetailData:[],
|
|
activeName:'wind',
|
|
activeName:'wind',
|
|
searchType:'area',
|
|
searchType:'area',
|
|
searchOptions:[
|
|
searchOptions:[
|
|
@@ -217,6 +234,10 @@ export default {
|
|
// 获取泵数据
|
|
// 获取泵数据
|
|
this.getPumpData()
|
|
this.getPumpData()
|
|
},
|
|
},
|
|
|
|
+ closeDialog(){
|
|
|
|
+ this.detailVisible=false;
|
|
|
|
+ this.pumpDetailVisible=false;
|
|
|
|
+ },
|
|
// 添加多覆盖物
|
|
// 添加多覆盖物
|
|
addMultiMarkers(data, type = '') {
|
|
addMultiMarkers(data, type = '') {
|
|
if (!data || !data.length) {
|
|
if (!data || !data.length) {
|
|
@@ -270,7 +291,7 @@ export default {
|
|
if (resp.code === 10000) {
|
|
if (resp.code === 10000) {
|
|
this.windData = resp.data
|
|
this.windData = resp.data
|
|
this.windData.forEach(wind => {
|
|
this.windData.forEach(wind => {
|
|
- this.addShapeWind(wind, 0)
|
|
|
|
|
|
+ this.addShapeWind(wind)
|
|
})
|
|
})
|
|
|
|
|
|
// this.SetMapCenter('windGroup')
|
|
// this.SetMapCenter('windGroup')
|
|
@@ -559,6 +580,14 @@ export default {
|
|
this.visibleWindDialog = true
|
|
this.visibleWindDialog = true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ showWindDetail(info){
|
|
|
|
+ this.windDetailData=info;
|
|
|
|
+ this.detailVisible=true
|
|
|
|
+ },
|
|
|
|
+ showPumpDetail(info){
|
|
|
|
+ this.pumpDetailData=info;
|
|
|
|
+ this.pumpDetailVisible=true
|
|
|
|
+ },
|
|
showWindFormDialog() {
|
|
showWindFormDialog() {
|
|
|
|
|
|
if(this.addWindType=='2'){
|
|
if(this.addWindType=='2'){
|
|
@@ -578,7 +607,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 添加风场图形
|
|
// 添加风场图形
|
|
- addShapeWind(info, windType) {
|
|
|
|
|
|
+ addShapeWind(info) {
|
|
let side_color = info.side_color;
|
|
let side_color = info.side_color;
|
|
let inside_color=info.inside_color
|
|
let inside_color=info.inside_color
|
|
|
|
|
|
@@ -608,13 +637,8 @@ export default {
|
|
this.isSetCenter=true
|
|
this.isSetCenter=true
|
|
}
|
|
}
|
|
// 加入群组
|
|
// 加入群组
|
|
- if (windType == 0) {
|
|
|
|
- this.windGroup.push(windObj);
|
|
|
|
- } else if (windType == 2) {
|
|
|
|
- this.schoolwindGroup.push(windObj);
|
|
|
|
- }else if (windType == 3) {
|
|
|
|
- this.kqwindGroup.push(windObj);
|
|
|
|
- }
|
|
|
|
|
|
+ this.windGroup.push(windObj);
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
// 新增圆形风场
|
|
// 新增圆形风场
|