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

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

parent 87996160
<template> <template>
<div class="app-container"> <div class="app-container">
<el-calendar v-model="date"> <el-calendar v-model="date" class="myholiday-cal">
<template slot="dateCell" slot-scope="{date, data }" > <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-row style="height: 100%;">
<!-- <el-col :span="16"> <!-- <el-col :span="16">
<div class="solar"> <div class="solar">
...@@ -107,10 +107,11 @@ export default { ...@@ -107,10 +107,11 @@ export default {
this.getList(); this.getList();
}, },
mounted(){ mounted(){
const prevBtn2 = document.querySelector('.el-calendar__button-group .el-button-group>button:nth-child(2)')
prevBtn2.textContent = '本月'
}, },
methods:{ methods:{
clickcancel () { clickcancel () {
console.log('sadasd')
}, },
/** 查询节假日设置列表 */ /** 查询节假日设置列表 */
getList() { getList() {
...@@ -218,4 +219,7 @@ export default { ...@@ -218,4 +219,7 @@ export default {
.el-calendar-table .holiday { .el-calendar-table .holiday {
background-color: #88E325; background-color: #88E325;
} }
.myholiday-cal .el-calendar-table .el-calendar-day {
padding: 0px;
}
</style> </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