社区、街道名称保存到数据库 --renpc
This commit is contained in:
parent
1a20030179
commit
0c4b5334e6
@ -344,6 +344,12 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
@ -371,6 +371,12 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
@ -696,6 +696,13 @@
|
|||||||
var buildingId = formData.field.buildingId;
|
var buildingId = formData.field.buildingId;
|
||||||
formData.field.buildingId = buildingId.split("_")[0];
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
@ -783,6 +783,13 @@
|
|||||||
var buildingId = formData.field.buildingId;
|
var buildingId = formData.field.buildingId;
|
||||||
formData.field.buildingId = buildingId.split("_")[0];
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
@ -313,6 +313,12 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
@ -340,6 +340,12 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
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.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
Loading…
Reference in New Issue
Block a user