From 23f60a279451d43d2add40b5de24d237de4596e5 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Thu, 5 Aug 2021 19:07:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=85=A5=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../property/assetImport/assetImport.html | 4 ++
.../pages/property/assetImport/assetImport.js | 3 +
.../assetImportLog/assetImportLog.html | 53 +++++++++++++++++
.../property/assetImportLog/assetImportLog.js | 58 +++++++++++++++++++
.../historyFeeDetailImport.js | 2 +-
5 files changed, 119 insertions(+), 1 deletion(-)
create mode 100644 public/pages/property/assetImportLog/assetImportLog.html
create mode 100644 public/pages/property/assetImportLog/assetImportLog.js
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 @@
+
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);