This commit is contained in:
2024-05-20 14:54:18 +08:00
parent 18e50722b0
commit aec811827d
16 changed files with 1826 additions and 910 deletions

View File

@@ -9,11 +9,11 @@
</section>
<section class="menu2">
<CopilotButton
v-for="i in ['日', '周', '月', '年']"
:key="i"
:label="i"
:active="i === period"
@click="() => $emit('update:period', i)"
v-for="i in dataList"
:key="i.id"
:label="i.name"
:active="i.id === period"
@click="() => $emit('update:period', i.id)"
/>
<div class="btn-group">
<button type="button" class="export-btn" />
@@ -42,15 +42,21 @@ export default {
type: String,
},
companyId: {
type: String,
type: Number,
},
period: {
type: String,
type: Number,
},
},
data() {
return {
isFullscreen: false,
dataList: [
{ id: 1, name: "日" },
{ id: 2, name: "周" },
{ id: 3, name: "月" },
{ id: 4, name: "年" },
],
};
},
computed: {},