diff --git a/public/pages/property/assetImport/assetImport.html b/public/pages/property/assetImport/assetImport.html index e42cb3a94..ed38a1b1f 100755 --- a/public/pages/property/assetImport/assetImport.html +++ b/public/pages/property/assetImport/assetImport.html @@ -16,6 +16,10 @@ 资产导出 +
diff --git a/public/pages/property/assetImport/assetImport.js b/public/pages/property/assetImport/assetImport.js index 9afdab457..1c34d8b33 100755 --- a/public/pages/property/assetImport/assetImport.js +++ b/public/pages/property/assetImport/assetImport.js @@ -97,6 +97,9 @@ _exitCommunityData: function () { vc.jumpToPage('/callComponent/assetImport/exitCommunityData?communityId='+vc.getCurrentCommunity().communityId); }, + _openAssetImportLog:function(){ + vc.jumpToPage('/admin.html#/pages/property/assetImportLog') + }, checkFileType: function (fileType) { const acceptTypes = ['xls', 'xlsx']; for (var i = 0; i < acceptTypes.length; i++) { diff --git a/public/pages/property/assetImportLog/assetImportLog.html b/public/pages/property/assetImportLog/assetImportLog.html new file mode 100644 index 000000000..912619cb4 --- /dev/null +++ b/public/pages/property/assetImportLog/assetImportLog.html @@ -0,0 +1,53 @@ +
+
+
+
+
+
批量导入日志
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
导入编号导入类型成功数量失败数量备注导入时间操作
{{log.logId}}{{log.logType == '1001'?'资产':'缴费历史'}}{{log.successCount}}{{log.errorCount}}{{log.remark}}{{log.createTime}} +
+ +
+
+
    +
    + + +
    +
    +
    +
    +
    diff --git a/public/pages/property/assetImportLog/assetImportLog.js b/public/pages/property/assetImportLog/assetImportLog.js new file mode 100644 index 000000000..c22b2a497 --- /dev/null +++ b/public/pages/property/assetImportLog/assetImportLog.js @@ -0,0 +1,58 @@ +/** + 入驻小区 +**/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + assetImportLogInfo: { + logs: [], + total: 0, + records: 1, + moreCondition: false, + carNum: '', + } + }, + _initMethod: function () { + vc.component._listAssetImportLogs(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _initEvent: function () { + + vc.on('assetImportLog', 'listAssetImportLog', function (_param) { + vc.component._listAssetImportLogs(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listAssetImportLogs(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listAssetImportLogs: function (_page, _rows) { + var param = { + params: { + page: _page, + row: _rows, + communityId: vc.getCurrentCommunity().communityId + } + }; + //发送get请求 + vc.http.apiGet('/assetImportLog/queryAssetImportLog', + param, + function (json, res) { + var _assetImportLogInfo = JSON.parse(json); + vc.component.assetImportLogInfo.total = _assetImportLogInfo.total; + vc.component.assetImportLogInfo.records = _assetImportLogInfo.records; + vc.component.assetImportLogInfo.logs = _assetImportLogInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.assetImportLogInfo.records, + dataCount: vc.component.assetImportLogInfo.total, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + } + } + }); +})(window.vc); diff --git a/public/pages/property/historyFeeDetailImport/historyFeeDetailImport.js b/public/pages/property/historyFeeDetailImport/historyFeeDetailImport.js index 48705d19f..55c79ef9f 100755 --- a/public/pages/property/historyFeeDetailImport/historyFeeDetailImport.js +++ b/public/pages/property/historyFeeDetailImport/historyFeeDetailImport.js @@ -88,7 +88,7 @@ if (res.status == 200) { //关闭model vc.toast("处理成功"); - //vc.jumpToPage('/admin.html#/pages/property/roomCreateFee') + vc.jumpToPage('/admin.html#/pages/property/assetImportLog') return; } vc.toast(json, 10000);