From 9bfdf6ecef01397978c140aa4fbd8c4840d894fb Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 15 八月 2023 13:04:35 +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..fc71402 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(3, '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