Newer
Older
urbanLifeline_YanAn / src / views / oneMap / components / ZHHM_JCFX.vue
@zhangdeliang zhangdeliang on 7 Oct 2 KB update
<template>
  <div id="ZHHM_JCFX">
    <div :class="['LeftBox', 'animate__animated', showPanel ? 'animate__fadeOutLeft' : 'animate__fadeInLeft']">
      <div class="ComBox">
        <!-- 降雨日历统计 -->
        <div class="Box_header">降雨日历统计</div>
        <div class="rainCal">
          <monitorCalender :hasClose="false" @change="getChangeDate" />
        </div>

        <!-- 内涝积水分析 -->
        <div class="Box_header">内涝积水分析</div>
        
      </div>
    </div>
    <div :class="['RightBox', 'animate__animated', showPanel ? 'animate__fadeOutRight' : 'animate__fadeInRight']">
      <div class="ComBox">
        <!-- 典型项目分析 -->
        <div class="Box_header">典型项目分析</div>

        <!-- 关键管网分析 -->
        <div class="Box_header">关键管网分析</div>
      </div>
    </div>
  </div>
</template>

<script setup name="ZHHM_JCFX">
import { ref, reactive, toRefs, onMounted, defineProps, defineEmits } from 'vue';
import monitorCalender from './monitorCalender.vue';

const showPanel = ref(true); //面板展开收起

// 面板内容展开收起控制
const props = defineProps({
  showPanel: {
    type: Boolean,
  },
});
watch(
  () => props.showPanel,
  () => {
    showPanel.value = props.showPanel;
  },
  { immediate: true }
);

// 日历点击获取相应日期
const getChangeDate = date => {
  console.log(date);
};

onMounted(() => {});
</script>

<style lang="scss" scoped>
#ZHHM_JCFX {
  width: 100%;
  height: 100%;
  .LeftBox {
    width: 450px;
    height: calc(100% - 98px);
    position: absolute;
    left: 10px;
    top: 70px;
    background: linear-gradient(0deg, rgba(0, 43, 67, 0.8) 0%, rgba(0, 69, 108, 0.8) 100%);
    border-radius: 6px;
    border: 1px solid #47eef3;
    box-sizing: border-box;
    padding: 10px;
    box-shadow: inset 0 0 5px 5px #47eef38a;
  }
  .RightBox {
    width: 450px;
    height: calc(100% - 98px);
    position: absolute;
    right: 10px;
    top: 70px;
    background: linear-gradient(0deg, rgba(0, 43, 67, 0.8) 0%, rgba(0, 69, 108, 0.8) 100%);
    border-radius: 6px;
    border: 1px solid #47eef3;
    box-sizing: border-box;
    padding: 10px;
    box-shadow: inset 0 0 5px 5px #47eef38a;
  }
  .ComBox {
    width: 100%;
    box-sizing: border-box;
    .Box_header {
      width: 100%;
      height: 43px;
      background: url('@/assets/images/Sponge_screen/Box_HeaderBackground.png') no-repeat center;
      background-size: cover;
      font-family: PangMenZhengDao;
      font-weight: 400;
      font-size: 23px;
      color: #ebfeff;
      line-height: 43px;
      box-sizing: border-box;
      padding-left: 35px;
    }
  }
}
</style>