diff --git a/ui/src/components/EditAttendance.vue b/ui/src/components/attendance/EditAttendance.vue
similarity index 98%
rename from ui/src/components/EditAttendance.vue
rename to ui/src/components/attendance/EditAttendance.vue
index c37351f..da55599 100644
--- a/ui/src/components/EditAttendance.vue
+++ b/ui/src/components/attendance/EditAttendance.vue
@@ -1,6 +1,6 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ui/src/pages/attendance/AttendanceHome.vue b/ui/src/pages/attendance/AttendanceHome.vue
index a951a0e..f91dc8d 100644
--- a/ui/src/pages/attendance/AttendanceHome.vue
+++ b/ui/src/pages/attendance/AttendanceHome.vue
@@ -130,6 +130,7 @@
width="25% "
:close-on-click-modal="false"
:show-close="false"
+ style="min-width: 320px"
>
+
-
-
-
-
-
-
-
-
-
+
@@ -113,11 +103,7 @@ export default {
attTime: [],
attTimeB: [],
status: '',
- pageNum: 1,
- pageSize: 10,
- total: 0,
nowTime: new Date(),
- formLabelWidth: '80px',
dataLoading: true,
value1: '',
form: {
@@ -152,6 +138,10 @@ export default {
newFormat = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
return newFormat
},
+ setDialogVisible(dialogVisible) {
+ this.dialogFormVisible = dialogVisible
+ this.getAttendancesByUserId()
+ },
// 重置参数
resetParam() {
@@ -215,44 +205,9 @@ export default {
handleAdd() {
this.dialogFormVisible = true
// this.getNowDate()
- this.nowTime = new Date()
- this.form.attTime = this.nowTime
this.$nextTick(() => {
this.form.userId = this.userId + ''
})
- },
- doSave() {
- request
- .post('/attendance/saveOneAttendance', this.form)
- .then((response) => {
- this.dialogFormVisible = false
- this.getAttendancesByUserId()
- })
- .catch((reportError) => {})
- },
-
- submitForm() {
- this.$refs.ruleForm.validate((valid) => {
- if (valid) {
- this.doSave()
- ElMessage({
- message: '操作成功',
- type: 'success'
- })
- } else {
- ElMessage.error('操作失败')
- return false
- }
- })
- },
- // 点击取消
- cancel() {
- this.dialogFormVisible = false
- ElMessage({
- message: '取消操作',
- type: 'warning'
- })
- this.getAttendancesByUserId()
}
},