From 1e18f0bcee0358e13c0e2cb750d17cd7ef5bf4d6 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期一, 07 八月 2023 17:55:21 +0800 Subject: [PATCH] 油烟检测系统 --- src/sfc/TimeSelect.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/sfc/TimeSelect.vue b/src/sfc/TimeSelect.vue index 6656a04..45bd3cc 100644 --- a/src/sfc/TimeSelect.vue +++ b/src/sfc/TimeSelect.vue @@ -34,7 +34,7 @@ methods:{ initOneWeekAgoTime(){ // 缁欐椂闂撮�夋嫨鍣ㄨ缃粯璁ゆ椂闂翠负涓�鍛ㄥ墠 - this.time[0] = dayjs().subtract(2, 'week').format('YYYY-MM-DD HH:mm:ss'); + this.time[0] = dayjs().subtract(1, 'week').format('YYYY-MM-DD HH:mm:ss'); this.time[1] = dayjs().format('YYYY-MM-DD HH:mm:ss'); } } @@ -48,10 +48,12 @@ <el-date-picker v-model="time" type="datetimerange" - range-separator="To" + range-separator="~" start-placeholder="Start date" end-placeholder="End date" @change="$emit('submitTime', time)" + class="pick-date" + /> </div> </template> @@ -61,5 +63,16 @@ margin-left: 30px; margin-top: 5px; font-weight: bold; + white-space: nowrap; } +.block { + display: flex; + justify-content: center; + /* width: 50%; */ + white-space: nowrap; +} +.pick-date { + width: 100%; + +} </style> -- Gitblit v1.9.3