|
@@ -48,7 +48,7 @@
|
|
<hc-card-item class="year-detail" :class="isDrawerType === 'edit' ? 'edit' : ''">
|
|
<hc-card-item class="year-detail" :class="isDrawerType === 'edit' ? 'edit' : ''">
|
|
<template #header>
|
|
<template #header>
|
|
<div class="flex-1 text-center text-[14px]">
|
|
<div class="flex-1 text-center text-[14px]">
|
|
- <HcDropdown v-model="yearKey" :datas="yearData" />
|
|
|
|
|
|
+ <HcDropdown v-model="yearKey" :datas="yearData" @change="yearChange" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<el-table :data="tableYearData" border class="w-full">
|
|
<el-table :data="tableYearData" border class="w-full">
|
|
@@ -253,6 +253,9 @@ const yearData = ref([
|
|
{ key: '2023', label: '2023年' },
|
|
{ key: '2023', label: '2023年' },
|
|
{ key: '2024', label: '2024年' },
|
|
{ key: '2024', label: '2024年' },
|
|
])
|
|
])
|
|
|
|
+const yearChange = (_, index) => {
|
|
|
|
+ console.log(index)
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|