|
@@ -328,7 +328,7 @@
|
|
|
</template>
|
|
|
<div v-if="cardSettings.cardGIS.expand">
|
|
|
<div style="width:100%;height: 500px;margin-top:15px;">
|
|
|
- <ChartMap :wellId="wellId"></ChartMap>
|
|
|
+ <ChartMap :datas="mapDatas"></ChartMap>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-card>
|
|
@@ -402,7 +402,8 @@ export default defineComponent({
|
|
|
historyAssignmentSummary: [],
|
|
|
lastHistoryAssignment: {},
|
|
|
historyAssignmentCount: 0,
|
|
|
- dataIndexList: [] as any[]
|
|
|
+ dataIndexList: [] as any[],
|
|
|
+ mapDatas : [] as any
|
|
|
});
|
|
|
|
|
|
const loadData = async (id) => {
|
|
@@ -422,6 +423,13 @@ export default defineComponent({
|
|
|
wellData.lastHistoryAssignment = data.lastHistoryAssignment ?? {};
|
|
|
wellData.dataIndexList = data.dataIndexList;
|
|
|
wellData.historyAssignmentCount = wellData.historyAssignmentSummary.reduce((total, it: any) => total + it.testing_num, 0);
|
|
|
+ wellData.mapDatas = [{
|
|
|
+ well_id : wellData.dataModel.well_id,
|
|
|
+ well_common_name : data.dataModel.well_common_name,
|
|
|
+ geo_description : data.dataModel.geo_description,
|
|
|
+ x : data.dataModel.well_coordinates_x,
|
|
|
+ y : data.dataModel.well_coordinates_y
|
|
|
+ }];
|
|
|
|
|
|
fileOptions.businessType = wellData.dataIndexList.map(x => x.file_business_type);
|
|
|
fileOptions.businessType = Array.from(new Set(fileOptions.businessType));
|