| | |
| | | formInfo() { |
| | | if (this.islook) { |
| | | this.form = {}; |
| | | this.isEditOne=false |
| | | this.isEditTwo=false |
| | | this.$nextTick(()=>{ |
| | | this.$refs["form"].resetFields(); |
| | | if (this.editRow.workerId) { |
| | |
| | | cancelMethod() { |
| | | this.$refs["form"].resetFields(); |
| | | this.islook = false; |
| | | this.$emit('shutdown') |
| | | }, |
| | | submitForm(formName,name) { |
| | | this.$refs[formName].validate((valid) => { |
| | |
| | | date:form.month+'-'+day, |
| | | overTimeDuration:Number(form.weekdayOverTime), |
| | | status:form.status, |
| | | workerId:form.workerId |
| | | workerId:form.workerId, |
| | | classes:form.classes, |
| | | classesEndTime:form.classesEndTime, |
| | | classesStartTime:form.classesStartTime, |
| | | endWorkTime:form.endWorkTime, |
| | | startWorkTime:form.startWorkTime, |
| | | workTypeId:form.workTypeId, |
| | | workerName:form.workerName, |
| | | } |
| | | updateAttendance(params).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | type: "success", |
| | | }); |
| | | this[name]=false |
| | | this.$emit('shutdown') |
| | | this.cancelMethod(); |
| | | } |
| | | }); |