Browse Source

打卡

master
xuesinan 4 years ago
parent
commit
6e884f1146
  1. 11
      src/components/List/List.vue

11
src/components/List/List.vue

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

Loading…
Cancel
Save