loading动画

This commit is contained in:
JinLu.Yin 2022-06-11 22:34:44 +08:00
parent bd50c6f429
commit 8f8455eca7
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@
</el-radio-group> </el-radio-group>
</el-aside> </el-aside>
<el-main> <el-main>
<el-calendar v-model="date"> <el-calendar v-loading="loading" v-model="date">
<template slot="dateCell" slot-scope="{date, data }"> <template slot="dateCell" slot-scope="{date, data }">
<div> <div>
<el-row> <el-row>
@ -125,6 +125,7 @@ export default {
} }
listCalendars(param).then(response =>{ listCalendars(param).then(response =>{
this.calendarDayList = response.data; this.calendarDayList = response.data;
this.loading = false;
}); });
}, },
isFestival(slotDate, slotData) { isFestival(slotDate, slotData) {

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-tabs type="border-card"> <el-tabs type="border-card">
<el-tab-pane label=""> <el-tab-pane label="类">
<CalendarTypeView></CalendarTypeView> <CalendarTypeView></CalendarTypeView>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="班组"> <el-tab-pane label="班组">

View File

@ -11,7 +11,7 @@
</el-radio-group> </el-radio-group>
</el-aside> </el-aside>
<el-main> <el-main>
<el-calendar v-model="date"> <el-calendar v-loading="loading" v-model="date">
<template slot="dateCell" slot-scope="{date, data }"> <template slot="dateCell" slot-scope="{date, data }">
<div> <div>
<el-row> <el-row>
@ -133,6 +133,7 @@ export default {
} }
listCalendars(param).then(response =>{ listCalendars(param).then(response =>{
this.calendarDayList = response.data; this.calendarDayList = response.data;
this.loading = false;
}); });
}, },
isFestival(slotDate, slotData) { isFestival(slotDate, slotData) {