diff --git a/src/main/resources/templates/building/save.html b/src/main/resources/templates/building/save.html index a02fa27..0e9961c 100644 --- a/src/main/resources/templates/building/save.html +++ b/src/main/resources/templates/building/save.html @@ -344,6 +344,12 @@ // 提交表单 form.on('submit(submitForm)', function(formData) { + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex; diff --git a/src/main/resources/templates/building/update.html b/src/main/resources/templates/building/update.html index d558e49..af4089c 100644 --- a/src/main/resources/templates/building/update.html +++ b/src/main/resources/templates/building/update.html @@ -371,6 +371,12 @@ // 提交表单 form.on('submit(submitForm)', function(formData) { + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex; diff --git a/src/main/resources/templates/house/save.html b/src/main/resources/templates/house/save.html index b3b0999..194eebe 100644 --- a/src/main/resources/templates/house/save.html +++ b/src/main/resources/templates/house/save.html @@ -696,6 +696,13 @@ var buildingId = formData.field.buildingId; formData.field.buildingId = buildingId.split("_")[0]; } + + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex; diff --git a/src/main/resources/templates/house/update.html b/src/main/resources/templates/house/update.html index 384a9e9..3f8dff1 100644 --- a/src/main/resources/templates/house/update.html +++ b/src/main/resources/templates/house/update.html @@ -783,6 +783,13 @@ var buildingId = formData.field.buildingId; formData.field.buildingId = buildingId.split("_")[0]; } + + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex; diff --git a/src/main/resources/templates/residential/save.html b/src/main/resources/templates/residential/save.html index ce6edb3..975de66 100644 --- a/src/main/resources/templates/residential/save.html +++ b/src/main/resources/templates/residential/save.html @@ -313,6 +313,12 @@ // 提交表单 form.on('submit(submitForm)', function(formData) { + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex; diff --git a/src/main/resources/templates/residential/update.html b/src/main/resources/templates/residential/update.html index afcaa1d..53fdbce 100644 --- a/src/main/resources/templates/residential/update.html +++ b/src/main/resources/templates/residential/update.html @@ -340,6 +340,12 @@ // 提交表单 form.on('submit(submitForm)', function(formData) { + // 设置所在街道和社区的选中值 + var streetName = $('#street').find("option:selected").text(); + var communityName = $('#community').find("option:selected").text(); + formData.field.streetName = streetName; + formData.field.communityName = communityName; + top.dialog.confirm(top.dataMessage.commit, function(index) { top.dialog.close(index); var loadLayerIndex;