diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index a98b8a2..b1fd0e6 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -79,7 +79,7 @@ -
+
-
+
{ - this.list = response.data.rows - this.total = response.data.total + this.list = response.data + this.total = response.data.length this.listLoading = false }) }, diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index a98b8a2..b1fd0e6 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -79,7 +79,7 @@
-
+
{ - this.list = response.data.rows - this.total = response.data.total + this.list = response.data + this.total = response.data.length this.listLoading = false }) }, diff --git a/src/views/staffManage/attendanceList.vue b/src/views/staffManage/attendanceList.vue index e3f8c53..6eceffb 100644 --- a/src/views/staffManage/attendanceList.vue +++ b/src/views/staffManage/attendanceList.vue @@ -127,8 +127,10 @@ methods: { fetchData() { this.listLoading = true - this.listQuery.startTime = this.timeRange[0] - this.listQuery.endTime = this.timeRange[1] + if (this.timeRange.length > 0) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } getAttendanceList(this.listQuery).then(response => { if (response.code === 200) { this.list = response.data.rows diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index a98b8a2..b1fd0e6 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -79,7 +79,7 @@
-
+
{ - this.list = response.data.rows - this.total = response.data.total + this.list = response.data + this.total = response.data.length this.listLoading = false }) }, diff --git a/src/views/staffManage/attendanceList.vue b/src/views/staffManage/attendanceList.vue index e3f8c53..6eceffb 100644 --- a/src/views/staffManage/attendanceList.vue +++ b/src/views/staffManage/attendanceList.vue @@ -127,8 +127,10 @@ methods: { fetchData() { this.listLoading = true - this.listQuery.startTime = this.timeRange[0] - this.listQuery.endTime = this.timeRange[1] + if (this.timeRange.length > 0) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } getAttendanceList(this.listQuery).then(response => { if (response.code === 200) { this.list = response.data.rows diff --git a/src/views/staffManage/editStaff.vue b/src/views/staffManage/editStaff.vue index fd5ae2f..2453ee5 100644 --- a/src/views/staffManage/editStaff.vue +++ b/src/views/staffManage/editStaff.vue @@ -70,7 +70,7 @@ - + diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index a98b8a2..b1fd0e6 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -79,7 +79,7 @@
-
+
{ - this.list = response.data.rows - this.total = response.data.total + this.list = response.data + this.total = response.data.length this.listLoading = false }) }, diff --git a/src/views/staffManage/attendanceList.vue b/src/views/staffManage/attendanceList.vue index e3f8c53..6eceffb 100644 --- a/src/views/staffManage/attendanceList.vue +++ b/src/views/staffManage/attendanceList.vue @@ -127,8 +127,10 @@ methods: { fetchData() { this.listLoading = true - this.listQuery.startTime = this.timeRange[0] - this.listQuery.endTime = this.timeRange[1] + if (this.timeRange.length > 0) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } getAttendanceList(this.listQuery).then(response => { if (response.code === 200) { this.list = response.data.rows diff --git a/src/views/staffManage/editStaff.vue b/src/views/staffManage/editStaff.vue index fd5ae2f..2453ee5 100644 --- a/src/views/staffManage/editStaff.vue +++ b/src/views/staffManage/editStaff.vue @@ -70,7 +70,7 @@ - + diff --git a/src/views/toiletClean/toiletCleanList.vue b/src/views/toiletClean/toiletCleanList.vue index 5540486..1e4af18 100644 --- a/src/views/toiletClean/toiletCleanList.vue +++ b/src/views/toiletClean/toiletCleanList.vue @@ -1,6 +1,6 @@