日历优化buttonType=txt警告

This commit is contained in:
XaoLi717 2024-12-10 11:54:43 +08:00
parent 05a497c40a
commit c6698acb03

View File

@ -23,7 +23,6 @@
<h5 class="month-title">{{ month }}</h5>
<el-calendar
v-loading="!loading"
ref="calendar"
class="custom-calendar"
:model-value="new Date(currentYear, index)"
@ -50,11 +49,11 @@
</template>
<!-- 右上角关闭按钮 -->
<el-button
type="text"
style="position: absolute; top: 2px; right: 10px; padding: 0;"
type="primary"
style="position: absolute; top: 5px; right: 5px; padding: 0;width: 12px;height: 12px;"
@click="closePopover(data)"
>
<el-icon class="el-icon--right"><Close /></el-icon>
<el-icon style="margin-right: 3px;margin-left: 3px;" class="el-icon--right"><Close /></el-icon>
</el-button>
<el-form
ref="formRef"
@ -67,7 +66,7 @@
<el-radio
v-for="dict in nowWork"
:key="dict.value"
:label="dict.value"
:value="dict.value"
>
{{ dict.label }}
</el-radio>
@ -148,14 +147,14 @@ const formDataCaln = ref({
/** 查询列表 */
const getListDate = async () => {
loading.value = false
loading.value = false;
try {
const data = await CalendarApi.getCalendarPage(queryParamsDate)
list.value = data.list
mapDate()
total.value = data.total
const data = await CalendarApi.getCalendarPage(queryParamsDate);
list.value = data.list;
mapDate();
total.value = data.total;
} finally {
loading.value = true
loading.value = true;
}
}