|
|
@ -53,7 +53,7 @@ |
|
|
|
ok-type="" |
|
|
|
@confirm="cancel(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-button |
|
|
@ -139,7 +139,7 @@ |
|
|
|
ok-type="" |
|
|
|
@confirm="cancel(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-button |
|
|
@ -388,14 +388,16 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 修改 |
|
|
|
changeStatus(id, type, record, visible, show) { |
|
|
|
changeStatus(id, type, record, visible, show, selectedDate) { |
|
|
|
record[visible] = false; |
|
|
|
record[show] = true; |
|
|
|
this.auditOptions = { id, type }; |
|
|
|
this.auditOptions = { id, type, selectedDate }; |
|
|
|
}, |
|
|
|
// 选择修改时间 |
|
|
|
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) { |
|
|
|
if (!open && this.chooseTime) { |
|
|
|