社区、街道名称保存到数据库 --renpc

This commit is contained in:
Renpc-kilig 2023-11-01 09:54:20 +08:00
parent 1a20030179
commit 0c4b5334e6
6 changed files with 38 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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