fix:css&&select

This commit is contained in:
dichgrem
2026-01-07 13:31:51 +08:00
parent e3879623a9
commit 876063e3cf
5 changed files with 74 additions and 37 deletions

View File

@@ -51,8 +51,8 @@ export default {
const { error, data = {} } = response.data;
if (error === 0) {
const list = data.list || [];
that.dateList = list;
that.year = list[list.length - 1];
that.dateList = [{ value: 'all', text: '全部' }, ...list];
that.year = that.dateList[0];
}
});
},
@@ -61,8 +61,10 @@ export default {
const payload = {
currentPage,
pageSize: 10,
year: this.year.value,
};
if (this.year.value !== 'all') {
payload.year = this.year.value;
}
this.loading = true;
axios
@@ -105,6 +107,7 @@ export default {
watch: {
"year.value"() {
if (this.year.value) {
this.currentPage = 1;
this.fetchServiceRecords(1);
}
},
@@ -120,18 +123,11 @@ export default {
}
.header {
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
color: white;
padding: 10px 12px 12px;
border-radius: 0 0 30px 30px;
box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
margin-bottom: 10px;
}
.header :deep(.container) {
min-height: 0 !important;
height: auto !important;
padding: 0 !important;
margin: 0 !important;
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
color: white;
padding: 20px 12px 25px;
border-radius: 0 0 30px 30px;
box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
margin-bottom: 10px;
}
</style>