diff --git a/src/components/List/List.vue b/src/components/List/List.vue index d1b2c7a..c3c9223 100644 --- a/src/components/List/List.vue +++ b/src/components/List/List.vue @@ -91,7 +91,7 @@ format="HH:mm" class="px-2" @change="timeChange" - @openChange="openChange($event, record, 'showMorningTime', 'morning')" + @openChange="openChange($event, record, 1, 'showMorningTime', 'morning')" /> @@ -176,7 +176,7 @@ format="HH:mm" class="px-2" @change="timeChange" - @openChange="openChange($event, record, 'showNightTime', 'night')" + @openChange="openChange($event, record, 1, 'showNightTime', 'night')" /> @@ -219,6 +219,7 @@ openChange( $event, recordInfo, + 0, punchTimeType === 0 ? 'showMorningTime' : 'showNightTime', punchTimeType === 0 ? 'morning' : 'night', ) @@ -476,8 +477,8 @@ export default { this.chooseTime = this.$moment(updateDate).format('x') - 0; }, - async openChange(open, record, show, timeType) { - if (this.punchTimeType === 0) { + async openChange(open, record, source, show, timeType) { + if (source === 0) { let clockType = 0; if (timeType === 'morning') { clockType = 0; @@ -497,7 +498,7 @@ export default { this.punchParams = params; } - if (!open && this.chooseTime && this.punchTimeType === 1) { + if (!open && this.chooseTime && source === 1) { this.auditOptions[timeType] = this.chooseTime; this.auditOptions.projectId = this.projectId; const params = { param: this.auditOptions };