This commit is contained in:
13713575202 2025-04-24 11:59:07 +08:00
commit 123493202c
3 changed files with 54 additions and 57 deletions

View File

@ -39,7 +39,7 @@ const router = useRouter();
onMounted(() => { onMounted(() => {
handleWidth(); handleWidth();
}); });
const emit = defineEmits(['changeTitle']); // const emit = defineEmits(['changeTitle']);
const props = defineProps({ const props = defineProps({
titles: { titles: {
type: Array, type: Array,
@ -109,7 +109,7 @@ function handleTitleBtn(t = -1) {
} }
function handleTitleClick(val) { function handleTitleClick(val) {
activeTitle.value = val; activeTitle.value = val;
emit('changeTitle', val); // emit('changeTitle', val);
router.push({ name: val }); router.push({ name: val });
} }
</script> </script>

View File

@ -1,6 +1,6 @@
<template> <template>
<section class="_contaioner"> <section class="_contaioner">
<custom-scroll-title class="header_titles" @change-title="handleChangeTitle" /> <custom-scroll-title class="header_titles" />
<section class="_content"> <section class="_content">
<router-view /> <router-view />
</section> </section>

View File

@ -1,6 +1,5 @@
<template> <template>
<div class="data-home-index"> <el-row style="width: 100%; height: 100%" class="data-home-index">
<el-row style="width: 100%; height: 100%">
<el-col :span="6" class="left-charts"> <el-col :span="6" class="left-charts">
<div class="left-charts-item"> <div class="left-charts-item">
<customBack top-title="耕地面积统计" :top-postion="'left'"> <customBack top-title="耕地面积统计" :top-postion="'left'">
@ -51,7 +50,6 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div>
</template> </template>
<script setup> <script setup>
import centerMap from '@/components/centerMap.vue'; import centerMap from '@/components/centerMap.vue';
@ -61,7 +59,6 @@ import landareaCharts from './components/landareaCharts.vue';
import landCirculation from './components/landCirculation.vue'; import landCirculation from './components/landCirculation.vue';
import landPlan from './components/landPlan.vue'; import landPlan from './components/landPlan.vue';
import landPatrol from './components/landPatrol.vue'; import landPatrol from './components/landPatrol.vue';
import { reactive } from 'vue';
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.data-home-index { .data-home-index {