Browse Source

修改因时间参数错误导致的bug

master
xuesinan 4 years ago
parent
commit
eee0dfedae
  1. 12
      src/components/List/List.vue

12
src/components/List/List.vue

@ -53,7 +53,7 @@
ok-type="" ok-type=""
@confirm="cancel(record, 'morningVisible')" @confirm="cancel(record, 'morningVisible')"
:visible="record.morningVisible" :visible="record.morningVisible"
@cancel="changeStatus(record.id, 0, record, 'morningVisible', 'showMorningTime')" @cancel="changeStatus(record.id, 0, record, 'morningVisible', 'showMorningTime', list.dateTime)"
> >
<a-icon slot="icon" type="" /> <a-icon slot="icon" type="" />
<a-button <a-button
@ -139,7 +139,7 @@
ok-type="" ok-type=""
@confirm="cancel(record, 'nightVisible')" @confirm="cancel(record, 'nightVisible')"
:visible="record.nightVisible" :visible="record.nightVisible"
@cancel="changeStatus(record.id, 0, record, 'nightVisible', 'showNightTime')" @cancel="changeStatus(record.id, 0, record, 'nightVisible', 'showNightTime', list.dateTime)"
> >
<a-icon slot="icon" type="" /> <a-icon slot="icon" type="" />
<a-button <a-button
@ -388,14 +388,16 @@ export default {
}, },
// //
changeStatus(id, type, record, visible, show) { changeStatus(id, type, record, visible, show, selectedDate) {
record[visible] = false; record[visible] = false;
record[show] = true; record[show] = true;
this.auditOptions = { id, type }; this.auditOptions = { id, type, selectedDate };
}, },
// //
timeChange(time) { timeChange(time) {
this.chooseTime = this.$moment(time).format('x'); let updateTime = this.$moment(time).format('hh:mm:ss');
let updateDate = this.auditOptions.selectedDate + ' ' + updateTime;
this.chooseTime = this.$moment(updateDate).format('x');
}, },
async openChange(open, record, show, timeType) { async openChange(open, record, show, timeType) {
if (!open && this.chooseTime) { if (!open && this.chooseTime) {

Loading…
Cancel
Save