From d474ea652cc7ca4c0d0d72a2b9d3f4b714dc5dfc Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Mon, 31 Oct 2022 17:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pages/.DS_Store | Bin 10244 -> 10244 bytes public/pages/property/.DS_Store | Bin 22532 -> 24580 bytes .../scheduleClassesPage.html | 14 ++++-- .../scheduleClassesPage.js | 47 +++++++++++++++++- 4 files changed, 55 insertions(+), 6 deletions(-) diff --git a/public/pages/.DS_Store b/public/pages/.DS_Store index d9e1f9670ef0527888fb81e0da27a0a2ca556581..b50e79889e2bf9b410a6d2427173c1d1cc8bc1fb 100755 GIT binary patch delta 142 zcmZn(XbITxTWqqCpeB=))Z|z}@yWL0$E4#0_=_|0%RQ6x^8$)e%Q92TBQk;P;LNJj z$#N2EGRh7sJQzTLLx3?PFF!AplT+Ct04%~VIb1?fT#`|VQJc|((U#Gk(StFNF^DmQ bF_JNA@_8ZE&6^~=*f+B)d|^Ygl`$RwBuXUb delta 166 zcmZn(XbITxTa0n@UFf`yS$YO;WY+~f%+DnbnF85nr|{(}L~5(WmCl-T4PiED6$Vw1HT1UDB+ z&ScxH!1SDTvI5hV#oP)Cj8>a@99sD&rw9v9=JRKpyqr;e@=1LgR*;9pppN64oGmE1 zxl5pleexN13k{$Q$bUc(!3`u_Vcuk5Pyl+@0EiucIDmVzAk$;!$^0Rf5{$sW0c!vf XKn4ql4Wv0Hr-V%1Y$|%431lt+?zl+6 delta 245 zcmZoUz}T{ZQHFtmfzhcn#gKs^0LbJ3Vh}CB0~F?%C}Yg}9LQsx7_xb?K@1Bc^JE^T z_Q_NHttX#zFyG81$;7sqor8sg(PHuhCTB*m$&CKOlk)@kCTlZGZuSajVxP
- + +
@@ -42,6 +42,12 @@ + diff --git a/public/pages/property/scheduleClassesPage/scheduleClassesPage.js b/public/pages/property/scheduleClassesPage/scheduleClassesPage.js index b8e807e64..5af2a9a07 100755 --- a/public/pages/property/scheduleClassesPage/scheduleClassesPage.js +++ b/public/pages/property/scheduleClassesPage/scheduleClassesPage.js @@ -8,6 +8,7 @@ data: { scheduleClassesPageInfo: { staffs: [], + scheduleClassess:[], maxDay:30, curMonth:'', curYear:'', @@ -17,7 +18,7 @@ states: '', conditions: { staffNameLike: '', - staffName: '', + scheduleId: '', curDate: '' } } @@ -25,7 +26,8 @@ _initMethod: function () { $that.initStaffDate(); vc.component._listStaffScheduleClassess(DEFAULT_PAGE, DEFAULT_ROWS); - + vc.component._listScheduleClassess(DEFAULT_PAGE, DEFAULT_ROWS); + }, _initEvent: function () { vc.on('scheduleClassesPage', 'listScheduleClasses', function (_param) { @@ -90,6 +92,47 @@ vc.component.scheduleClassesPageInfo.moreCondition = true; } }, + _listScheduleClassess: function (_page, _rows) { + + let param = { + params: { + page:1, + row:100 + } + }; + //发送get请求 + vc.http.apiGet('/scheduleClasses.listScheduleClasses', + param, + function (json, res) { + let _scheduleClassesInfo = JSON.parse(json); + $that.scheduleClassesPageInfo.scheduleClassess = _scheduleClassesInfo.data; + + }, + function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _exportScheduleClasses: function () { + //vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportPayFeeDetail&' + vc.objToGetParam($that.reportPayFeeDetailInfo.conditions)); + vc.component.scheduleClassesPageInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + vc.component.scheduleClassesPageInfo.conditions.pagePath = 'reportStaffMonthScheduleClasses'; + let param = { + params: vc.component.scheduleClassesPageInfo.conditions + }; + //发送get请求 + vc.http.apiGet('/export.exportData', param, + function (json, res) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if(_json.code == 0){ + vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') + } + }, + function (errInfo, error) { + console.log('请求失败处理'); + }); + } } });