From 6bcd1b4696f14b2eb6faba8ece3a041d5e128243 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 09 四月 2024 20:44:10 +0800
Subject: [PATCH] 暂存
---
src/views/console/base/CalenderTab.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/console/base/CalenderTab.vue b/src/views/console/base/CalenderTab.vue
index a3d8a70..4e22a1e 100644
--- a/src/views/console/base/CalenderTab.vue
+++ b/src/views/console/base/CalenderTab.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-04 22:45:43
* @LastEditors: Sneed
- * @LastEditTime: 2024-04-07 20:31:00
+ * @LastEditTime: 2024-04-09 20:15:57
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/CalenderTab.vue
-->
<template>
@@ -23,7 +23,7 @@
<el-button type="primary">鍒犻櫎</el-button>
</el-header>
<el-main>
- <Calendar :rows="12" disable-page-swipe :nav-visibility="''" :attributes='attributes'/>
+ <Calendar :min-date="minDate" :rows="1" disable-page-swipe :nav-visibility="''" :attributes='attributes'/>
</el-main>
</el-container>
</el-container>
@@ -45,13 +45,20 @@
],
current: 0,
total: 1,
- caleList: []
+ caleList: [],
+ minDate: '',
+ maxDate: ''
}
},
created() {
this.load()
+ this.init()
},
methods: {
+ init () {
+ this.minDate = new Date('2024-01-01')
+ this.maxDate = new Date('2024-01-31')
+ },
load() {
if (this.current * 15 >= this.total) {
return
--
Gitblit v1.9.3