diff --git a/ui/src/assets/css/attendance.css b/ui/src/assets/css/attendance.css index 720bac4..3d006de 100644 --- a/ui/src/assets/css/attendance.css +++ b/ui/src/assets/css/attendance.css @@ -6,7 +6,3 @@ margin-bottom:10px ; } -#attendanceMain{ - width: 100vw; - height: 100vh; -} \ No newline at end of file diff --git a/ui/src/components/EditAttendance.vue b/ui/src/components/EditAttendance.vue index f190715..9808df8 100644 --- a/ui/src/components/EditAttendance.vue +++ b/ui/src/components/EditAttendance.vue @@ -74,7 +74,6 @@ export default { submitForm(form) { this.$refs.ruleForm.validate((valid) => { if (valid) { - console.log(form) this.$emit('addAttendance', form) this.resetForm() ElMessage({ @@ -99,12 +98,10 @@ export default { created() { if (this.formData) { this.form = this.formData - console.log(this.isDisabled) } }, updated() { if (this.formData) { - console.log(this.isDisabled) this.form = this.formData } } diff --git a/ui/src/pages/attendance/AttendanceHome.vue b/ui/src/pages/attendance/AttendanceHome.vue index 193b466..0ebf9cf 100644 --- a/ui/src/pages/attendance/AttendanceHome.vue +++ b/ui/src/pages/attendance/AttendanceHome.vue @@ -74,13 +74,13 @@ scope.row.status === 1 ? 'success' : scope.row.status === 2 - ? 'primary' + ? '' : scope.row.status === 3 ? 'warning' : scope.row.status === 1 + '' ? 'success' : scope.row.status === 2 + '' - ? 'primary' + ? '' : scope.row.status === 3 + '' ? 'warning' : 'danger' @@ -217,7 +217,6 @@ export default { request .get('/user') .then((response) => { - console.log(response.data.data) this.users = response.data.data }) .catch((reportError) => { @@ -229,7 +228,6 @@ export default { request .get('/attendance/findAllAttendance') .then((response) => { - console.log(response.data.data) this.tableData = response.data.data }) .catch((reportError) => { @@ -237,17 +235,14 @@ export default { }) }, getAttendancesByTime() { - console.log(typeof this.attTime[0]) const start = this.handleDateFormatUTC(this.attTime[0]) const end = this.handleDateFormatUTC(this.attTime[1]) - console.log(start + '\t' + end) request .get('/attendance/findAttendanceByTime', { startTime: start, endTime: end }) .then((response) => { - console.log(response.data.data) this.tableData = response.data.data ElMessage({ message: '查询成功', @@ -286,7 +281,6 @@ export default { }) }, setDialogVisible(dialogVisible) { - console.log(dialogVisible) this.dialogFormVisible = dialogVisible this.getAttendances() }, @@ -301,8 +295,8 @@ export default { request .post('/attendance/saveAttendance', formData) .then((response) => { + console.log(response) this.getAttendances() - console.log(response.data.data) }) .catch((reportError) => { console.log(reportError) @@ -318,7 +312,6 @@ export default { }, addAttendance(formData) { this.doSave(formData) - console.log(formData) this.dialogFormVisible = false }, // 点击取消 @@ -339,11 +332,11 @@ export default { // 操作删除 handleDelete(id) { - console.log(id) request .delete('/attendance/delAttendance/' + id) .then((response) => { if (response) { + console.log(response) ElMessage({ message: '删除成功', type: 'success' @@ -362,7 +355,6 @@ export default { }, // 批量删除 handleSelectionChange(val) { - console.log(val) this.multipleSelection = val }, // 批量删除 diff --git a/ui/src/pages/attendance/UserAttendance.vue b/ui/src/pages/attendance/UserAttendance.vue index 4e65566..a227b5f 100644 --- a/ui/src/pages/attendance/UserAttendance.vue +++ b/ui/src/pages/attendance/UserAttendance.vue @@ -53,7 +53,7 @@ scope.row.status === 1 ? 'success' : scope.row.status === 2 - ? 'primary' + ? '' : scope.row.status === 3 ? 'warning' : 'danger' @@ -74,17 +74,7 @@ -
- -
+
{ - console.log(response.data.data) this.tableData = response.data.data ElMessage({ message: '查询成功', @@ -205,7 +192,6 @@ export default { }) }) .catch((reportError) => { - console.log(reportError) ElMessage({ message: '查询失败', type: 'error' @@ -217,12 +203,9 @@ export default { request .get('/attendance/selectAttendance') .then((response) => { - console.log(response.data.data) this.tableData = response.data.data }) - .catch((reportError) => { - console.log(reportError) - }) + .catch((reportError) => {}) }, resetForm() { this.$refs.form.resetFields() @@ -242,17 +225,13 @@ export default { .then((response) => { this.dialogFormVisible = false this.getAttendancesByUserId() - console.log(response.data.data) - }) - .catch((reportError) => { - console.log(reportError) }) + .catch((reportError) => {}) }, submitForm() { this.$refs.ruleForm.validate((valid) => { if (valid) { - console.log(this.form.attTime) this.doSave() ElMessage({ message: '操作成功', @@ -281,4 +260,4 @@ export default { } - \ No newline at end of file +