@@ -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();