From f3acb8ce787f3df0eda633031473be4e6a9ff448 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 12 十月 2023 16:56:28 +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..c2834ac 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(4, '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