From 1f99b2e007d8ef9536f3f57f456facb30b46b15b Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 13 Dec 2022 03:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=80=83=E5=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monthAttendanceManage.js | 29 ++++++++++--------- .../staffAttendanceManage.html | 17 ++++------- 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/public/pages/property/monthAttendanceManage/monthAttendanceManage.js b/public/pages/property/monthAttendanceManage/monthAttendanceManage.js index 22d276955..2f511b2e4 100755 --- a/public/pages/property/monthAttendanceManage/monthAttendanceManage.js +++ b/public/pages/property/monthAttendanceManage/monthAttendanceManage.js @@ -1,7 +1,7 @@ /** 入驻小区 **/ -(function (vc) { +(function(vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ @@ -19,28 +19,28 @@ } } }, - _initMethod: function () { + _initMethod: function() { vc.component._listMonthAttendances(DEFAULT_PAGE, DEFAULT_ROWS); let _date = new Date(new Date()); $that.monthAttendanceManageInfo.conditions.date = _date.getFullYear() + "-" + (_date.getMonth() + 1); - vc.initDateMonth('queryDate', function (_value) { + vc.initDateMonth('queryDate', function(_value) { $that.monthAttendanceManageInfo.conditions.date = _value; }) }, - _initEvent: function () { - vc.on('monthAttendanceManage', 'listMonthAttendance', function (_param) { + _initEvent: function() { + vc.on('monthAttendanceManage', 'listMonthAttendance', function(_param) { vc.component._listMonthAttendances(DEFAULT_PAGE, DEFAULT_ROWS); }); - vc.on('pagination', 'page_event', function (_currentPage) { + vc.on('pagination', 'page_event', function(_currentPage) { vc.component._listMonthAttendances(_currentPage, DEFAULT_ROWS); }); }, methods: { - _listMonthAttendances: function (_page, _rows) { + _listMonthAttendances: function(_page, _rows) { vc.component.monthAttendanceManageInfo.conditions.page = _page; vc.component.monthAttendanceManageInfo.conditions.row = _rows; let param = { - params: vc.component.monthAttendanceManageInfo.conditions + params: vc.deepClone($that.monthAttendanceManageInfo.conditions) }; param.params.classesName = param.params.classesName.trim(); param.params.date = param.params.date + "-01"; @@ -48,7 +48,7 @@ //发送get请求 vc.http.apiGet('/attendanceClass/getMonthAttendance', param, - function (json, res) { + function(json, res) { var _monthAttendanceManageInfo = JSON.parse(json); vc.component.monthAttendanceManageInfo.total = _monthAttendanceManageInfo.total; vc.component.monthAttendanceManageInfo.records = _monthAttendanceManageInfo.records; @@ -58,23 +58,24 @@ dataCount: vc.component.monthAttendanceManageInfo.total, currentPage: _page }); - }, function (errInfo, error) { + }, + function(errInfo, error) { console.log('请求失败处理'); } ); }, //查询 - _queryMonthAttendanceMethod: function () { + _queryMonthAttendanceMethod: function() { vc.component._listMonthAttendances(DEFAULT_PAGE, DEFAULT_ROWS); }, //重置 - _resetMonthAttendanceMethod: function () { + _resetMonthAttendanceMethod: function() { vc.component.monthAttendanceManageInfo.conditions.classesName = ""; vc.component.monthAttendanceManageInfo.conditions.departmentName = ""; vc.component.monthAttendanceManageInfo.conditions.date = vc.dateFormat(new Date()); vc.component._listMonthAttendances(DEFAULT_PAGE, DEFAULT_ROWS); }, - _moreCondition: function () { + _moreCondition: function() { if (vc.component.monthAttendanceManageInfo.moreCondition) { vc.component.monthAttendanceManageInfo.moreCondition = false; } else { @@ -83,4 +84,4 @@ } } }); -})(window.vc); +})(window.vc); \ No newline at end of file diff --git a/public/pages/property/staffAttendanceManage/staffAttendanceManage.html b/public/pages/property/staffAttendanceManage/staffAttendanceManage.html index 48defc315..86caeaaa5 100644 --- a/public/pages/property/staffAttendanceManage/staffAttendanceManage.html +++ b/public/pages/property/staffAttendanceManage/staffAttendanceManage.html @@ -3,18 +3,14 @@