mirror of
https://github.com/Dichgrem/Vue.git
synced 2026-02-05 12:21:55 -05:00
fix:css&&select
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user