From 112847e2cc897acc2662e2cb64e6c5e58eaa1530 Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Sat, 9 Oct 2021 17:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/List/List.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/List/List.vue b/src/components/List/List.vue index e636cad..7bcf6ba 100644 --- a/src/components/List/List.vue +++ b/src/components/List/List.vue @@ -241,6 +241,7 @@ export default { morningLoading: false, nightLoading: false, today: this.$moment(new Date()).format('YYYY-MM-DD'), + selectedDate: '', // 当前选择的日期 }; }, @@ -391,12 +392,13 @@ export default { changeStatus(id, type, record, visible, show, selectedDate) { record[visible] = false; record[show] = true; - this.auditOptions = { id, type, selectedDate }; + this.selectedDate = selectedDate; + this.auditOptions = { id, type }; }, // 选择修改时间 timeChange(time) { let updateTime = this.$moment(time).format('HH:mm:ss'); - let updateDate = this.auditOptions.selectedDate + ' ' + updateTime; + let updateDate = this.selectedDate + ' ' + updateTime; this.chooseTime = this.$moment(updateDate).format('x'); }, async openChange(open, record, show, timeType) {