Newer
Older
DH_Apicture / src / views / pictureOnMap / page / components / DialogTabs / component / guanwangpoumian.vue
@ZZJ ZZJ on 4 Dec 1 KB update
  1. <template>
  2. <div id="guanwangpoumian">
  3. <div class="echartbody">
  4. <commonUnderGround :componentData="GetpoumianList"></commonUnderGround>
  5. </div>
  6. </div>
  7. </template>
  8.  
  9. <script setup name="guanwangpoumian">
  10. import moment from 'moment';
  11. import commonUnderGround from '@/views/pictureOnMap/page/components/DialogTabs/component/commonUnderGround.vue';
  12. const { proxy } = getCurrentInstance();
  13. import { getSectionByWellCode, getSectionByWellCodeDetail } from '@/api/MonitorAssetsOnMap';
  14.  
  15. const props = defineProps({
  16. Getproperties: {
  17. type: Object,
  18. },
  19. });
  20. const GetpoumianList = ref({});
  21.  
  22. function GWpoumian() {
  23. let wellcode = props.Getproperties.wellCode ? props.Getproperties.wellCode : '';
  24. if (wellcode) {
  25. if (props.Getproperties.daterange && !props.Getproperties.GWDADataNow) {
  26. let params = {
  27. wellcode,
  28. // time:moment(props.Getproperties.daterange[0]).format("YYYY-MM-DD")
  29. id: props.Getproperties.gwMonitorId,
  30. };
  31. getSectionByWellCodeDetail(params).then(res => {
  32. if (res && res.code == 200) {
  33. console.log('res.data', res.data);
  34. GetpoumianList.value = res.data;
  35. }
  36. });
  37. } else {
  38. getSectionByWellCode(wellcode).then(res => {
  39. console.log('res.data', res.data);
  40. GetpoumianList.value = res.data;
  41. });
  42. }
  43. } else {
  44. console.log('没有wellcode', props.Getproperties);
  45. // proxy.$modal.msgSuccess("");
  46. }
  47. }
  48.  
  49. onMounted(() => {
  50. GWpoumian();
  51. });
  52. </script>
  53.  
  54. <style lang="scss" scoped>
  55. #guanwangpoumian {
  56. width: 100%;
  57. height: 100%;
  58. color: #ccefff;
  59.  
  60. .echartbody {
  61. width: 100%;
  62. height: 100%;
  63. }
  64. }
  65. </style>