WholeProcessPlatform/frontend/src/modules/jidiInfoMod/index.vue

50 lines
1.5 KiB
Vue
Raw Normal View History

<!-- SidePanelItem.vue -->
<template>
2026-04-03 16:04:16 +08:00
<div>
<SidePanelItem title="基本情况介绍" :shrink="true">
<p v-if="title_text" class="basic_body1">{{ title_text }}</p>
<div v-else class="zanwushujv"><a-empty /></div>
</SidePanelItem>
</div>
</template>
<script lang="ts" setup>
2026-04-03 16:04:16 +08:00
import { ref, onMounted, watch } from "vue";
import { useJidiSelectEventStore } from "@/store/modules/jidiSelectEvent";
import SidePanelItem from "@/components/SidePanelItem/index.vue";
const JidiSelectEventStore = useJidiSelectEventStore();
// 定义组件名(便于调试和递归)
defineOptions({
2026-04-03 16:04:16 +08:00
name: "jidiInfoMod",
});
2026-04-03 16:04:16 +08:00
const title_text = ref(
"我国水能资源丰富,主要集中在金沙江、长江上游、雅砻江、黄河上游、大渡河、南盘江-红水河、乌江和西南诸河等流域总技术可开发量约3.81亿kW占全国技术可开发量的55.5%。截至2023年年底雅砻江、金沙江、大渡河、乌江、长江上游、南盘江-红水河等流域已建和在建比例超80%,水能资源开发程度较高,剩余待开发水利资源主要集中在西南诸河,发展潜力巨大。"
);
watch(
() => JidiSelectEventStore.selectedItem,
(newVal) => {
console.log(newVal);
if (newVal.name == '当前全部') {
}
},
{ deep: true }
);
// 页面加载时执行的逻辑
2026-04-03 16:04:16 +08:00
onMounted(() => {});
</script>
<style lang="scss">
.zanwushujv {
2026-04-03 16:04:16 +08:00
display: flex;
align-items: center;
justify-content: center;
}
.basic_body1 {
2026-04-03 16:08:05 +08:00
width: 100%;
line-break: anywhere;
}
2026-04-03 16:04:16 +08:00
</style>