<template> <div id="guanwangpoumian"> <div class="echartbody"> <commonUnderGround :componentData="GetpoumianList"></commonUnderGround> </div> </div> </template> <script setup name="guanwangpoumian"> import commonUnderGround from "@/views/pictureOnMap/page/components/DialogTabs/component/commonUnderGround.vue"; const { proxy } = getCurrentInstance(); import { getSectionByWellCode } from "@/api/MonitorAssetsOnMap"; const props = defineProps({ Getproperties: { type: Object, }, }); const GetpoumianList = ref({}); function GWpoumian() { let wellcode = props.Getproperties.wellcode ? props.Getproperties.wellcode : ""; // let wellcode = props.Getproperties.wellcode ? props.Getproperties.wellcode : 'YS77721510'; if (wellcode) { getSectionByWellCode(wellcode).then((res) => { console.log("res.data", res.data); GetpoumianList.value = res.data; }); } else { console.log("没有wellcode", props.Getproperties); // proxy.$modal.msgSuccess(""); } } onMounted(() => { GWpoumian(); }); </script> <style lang="scss" scoped> #guanwangpoumian { width: 100%; height: 100%; color: #ccefff; .echartbody { width: 100%; height: 100%; } } </style>