Commit 87996160 authored by 沈翠玲's avatar 沈翠玲

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

parent a2708fea
......@@ -8,6 +8,14 @@ export function listCalholiday(query) {
params: query
});
}
// 查询工作日设置列表
export function daylistCalholiday(query) {
return request({
url: "/mes/cal/calendar/daylist",
method: "get",
params: query
});
}
// 查询工作日设置列表
export function getCalWorkunits(query) {
......
<template>
<div class="app-container">
<el-calendar v-model="date">
<template slot="dateCell" slot-scope="{date, data }">
<div @contextmenu.prevent="onRightClick(data)">
<el-row>
<template slot="dateCell" slot-scope="{date, data }" >
<div @contextmenu.prevent="onRightClick(data)" @click.stop.prevent="clickcancel" style="height: 100%; margin: -8px; padding: 8px">
<el-row style="height: 100%;">
<!-- <el-col :span="16">
<div class="solar">
{{ data.day.split('-')[2] }}
......@@ -63,7 +63,7 @@
</template>
<script>
import { listCalholiday, getCalholiday, delCalholiday, addCalholiday, updateCalholiday } from "@/api/mes/cal/calholiday";
import { daylistCalholiday, getCalholiday, delCalholiday, addCalholiday, updateCalholiday } from "@/api/mes/cal/calholiday";
import ItemIndex from "./itemIndex";
import calendar from '@/utils/calendar';
export default {
......@@ -106,14 +106,19 @@ export default {
created() {
this.getList();
},
mounted(){
},
methods:{
clickcancel () {
console.log('sadasd')
},
/** 查询节假日设置列表 */
getList() {
this.loading = true;
this.holidayList =[];
this.workdayList =[];
let that = this;
listCalholiday(this.queryParams).then(response => {
daylistCalholiday(this.queryParams).then(response => {
if(response.data !=null){
response.data.forEach(theDay => {
if(theDay.holidayType =='HOLIDAY'){
......
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