From 653b5c158ba3af91cafa0498031a88963dc49345 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Mon, 8 Jan 2024 15:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E6=95=B0=E6=8D=AE=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=92=8C=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/house/list-myself.html | 79 ++++++++++++++++--- 1 file changed, 66 insertions(+), 13 deletions(-) diff --git a/src/main/resources/templates/house/list-myself.html b/src/main/resources/templates/house/list-myself.html index e88262e..c70a45a 100644 --- a/src/main/resources/templates/house/list-myself.html +++ b/src/main/resources/templates/house/list-myself.html @@ -75,19 +75,43 @@
-
- -
- 新增时间 -
- -
-
- -
- +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+ + + + +
@@ -127,6 +151,34 @@ var select = layui.select; var tableUrl = 'api/house/listpage?myself={myself}'; + $(document).on('click', '#excel', function() { + excel(); + }); + + function excel(){ + var street = selectedRelation.street; + var community = selectedRelation.community; + var residentialId = selectedRelation.housingEstate; + var buildingId = selectedRelation.buildingId; + var isSelf = $('#isSelf').val(); + var isVacant = $('#isVacant').val(); + var isRental = $('#isRental').val(); + + + + top.dialog.msg('确定要导出数据吗?', { + time: 0, + btn: [top.dataMessage.button.yes, top.dataMessage.button.no], + shade: 0.3, + yes: function (index) { + top.dialog.close(index); + window.open(top.restAjax.path('api/house/export?street={street}&community={community}&residentialId={residentialId}&' + + 'buildingId={buildingId}&isSelf={isSelf}&isVacant={isVacant}&isRental={isRental}', + [street, community, residentialId, buildingId, isSelf, isVacant, isRental])); + } + }); + } + var event = function() { $(document).on('click', '#treeBody ul li', function () { var $lis = $('#treeBody ul li'); @@ -2032,6 +2084,7 @@ initStreetSelect(); initCommunitySelect(); event(); + form.render(); } init();