Commit 798b7818 authored by 沈翠玲's avatar 沈翠玲

排班小图标渲染速度慢,刷新一下10+秒

parent 87996160
<template>
<div class="app-container">
<el-calendar v-model="date">
<el-calendar v-model="date" class="myholiday-cal">
<template slot="dateCell" slot-scope="{date, data }" >
<div @contextmenu.prevent="onRightClick(data)" @click.stop.prevent="clickcancel" style="height: 100%; margin: -8px; padding: 8px">
<div @contextmenu.prevent="onRightClick(data)" @click.stop.prevent="clickcancel" style="height: 100%; padding: 8px">
<el-row style="height: 100%;">
<!-- <el-col :span="16">
<div class="solar">
......@@ -107,10 +107,11 @@ export default {
this.getList();
},
mounted(){
const prevBtn2 = document.querySelector('.el-calendar__button-group .el-button-group>button:nth-child(2)')
prevBtn2.textContent = '本月'
},
methods:{
clickcancel () {
console.log('sadasd')
},
/** 查询节假日设置列表 */
getList() {
......@@ -218,4 +219,7 @@ export default {
.el-calendar-table .holiday {
background-color: #88E325;
}
.myholiday-cal .el-calendar-table .el-calendar-day {
padding: 0px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment