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