修复所在地打开选择框再关闭后数据丢失问题。

This commit is contained in:
Renpc-kilig 2022-02-08 16:07:32 +08:00
parent c76cb19462
commit 1239347a90
39 changed files with 70 additions and 129 deletions

View File

@ -188,9 +188,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#locationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -226,9 +226,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#locationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -251,9 +251,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#locationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -257,9 +257,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#locationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -1182,9 +1182,9 @@
}
areaName += item.areaName;
}
}
$('#areaCode').val(areaCode);
$('#areaName').val(areaName);
}
initGridCodeSelect(areaCode);
}
})

View File

@ -646,8 +646,6 @@
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
// 初始化类型ID下拉选择
function initEnterpriseTypeIdSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/mongo/data/list/parent-id/9041ffbf-6fb6-4a0d-909b-92aff2d0f432', []), {}, null, function(code, data, args) {
@ -1219,10 +1217,10 @@
}
areaName += item.areaName;
}
}
$('#areaCode').val(areaCode);
$('#areaName').val(areaName);
}
}
})
});

View File

@ -131,9 +131,9 @@
}
areaName += item.areaName;
}
}
$('#happenLocationCode').val(areaCode);
$('#happenLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -133,9 +133,9 @@
}
areaName += item.areaName;
}
}
$('#happenLocationCode').val(areaCode);
$('#happenLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -534,10 +534,10 @@
}
areaName += item.areaName;
}
}
$('#currentResidenceCode').val(areaCode);
$('#currentResidenceName').val(areaName);
}
}
})
});

View File

@ -200,9 +200,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -207,9 +207,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -120,9 +120,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -126,9 +126,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -257,9 +257,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -264,9 +264,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -220,9 +220,9 @@
}
areaName += item.areaName;
}
}
$('#areaCode').val(areaCode);
$('#areaName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -227,9 +227,9 @@
}
areaName += item.areaName;
}
}
$('#areaCode').val(areaCode);
$('#areaName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -201,9 +201,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -203,9 +203,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -227,9 +227,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -233,9 +233,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -394,9 +394,9 @@
}
areaName += item.areaName;
}
}
$('#enterpriseLocationCode').val(areaCode);
$('#enterpriseLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -401,9 +401,9 @@
}
areaName += item.areaName;
}
}
$('#enterpriseLocationCode').val(areaCode);
$('#enterpriseLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -151,9 +151,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -153,9 +153,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -147,9 +147,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -149,9 +149,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -585,8 +585,6 @@
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
// 初始化组织类型ID下拉选择
function initOrganizationTypeIdSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/mongo/data/list/parent-id/9041ffbf-6fb6-4a0d-909b-92aff2d0f432', []), {}, null, function(code, data, args) {

View File

@ -163,9 +163,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -165,9 +165,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -251,9 +251,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -258,9 +258,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -262,9 +262,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -272,9 +272,9 @@
}
areaName += item.areaName;
}
}
$('#locationCode').val(areaCode);
$('#location').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -337,9 +337,9 @@
}
areaName += item.areaName;
}
}
$('#happenLocationCode').val(areaCode);
$('#happenLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -350,9 +350,9 @@
}
areaName += item.areaName;
}
}
$('#happenLocationCode').val(areaCode);
$('#happenLocationName').val(areaName);
}
initGridSelect(areaCode);
}
})

View File

@ -185,7 +185,6 @@
var viewerObj = {};
var selectXm;
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
@ -239,7 +238,6 @@
}
}
// 初始化出生日期日期
function initTeamUserBirthdayDate() {
laydate.render({
@ -351,10 +349,6 @@
});
}
function initSelect(data){
var options = {
el: '#teamUserSpecialtyIdDiv',
@ -405,11 +399,6 @@
// },100);
}
// 初始化内容
function initData() {
initInstitutionIdSelect();
@ -490,9 +479,6 @@
}
}
$('.close').on('click', function() {
closeBox();
});
@ -500,10 +486,6 @@
// 校验
form.verify({
});
});
</script>
</body>

View File

@ -211,8 +211,6 @@
var laydate = layui.laydate;
var selectXm;
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
@ -226,8 +224,6 @@
});
}
// 初始化出生日期日期
function initTeamUserBirthdayDate() {
laydate.render({
@ -302,8 +298,6 @@
});
}
// 初始化级别ID下拉选择
function initTeamUserLevelIdSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['26e6748f-93c5-4b7b-8521-357c9df9a8d4']), {}, null, function(code, data, args) {
@ -368,10 +362,6 @@
});
}
function initSelect(data,selectValue){
console.log(selectValue)
var selectItem = [];
@ -379,7 +369,6 @@
selectItem = selectValue.split(',')
}
var options = {
el: '#teamUserSpecialtyIdDiv',
name: 'teamUserSpecialtyId',//表单的name属性
@ -407,17 +396,6 @@
selectXm = xmSelect.render(options)
}
// 初始化内容
function initData() {
var data = parent.advancedSearchData;
@ -463,9 +441,6 @@
}
$('.close').on('click', function() {
closeBox();
});
@ -473,10 +448,6 @@
// 校验
form.verify({
});
});
</script>
</body>

View File

@ -314,8 +314,6 @@
});
}
// 初始化级别ID下拉选择
function initTeamUserLevelIdSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['26e6748f-93c5-4b7b-8521-357c9df9a8d4']), {}, null, function(code, data, args) {
@ -380,10 +378,6 @@
});
}
function initSelect(data,selectValue){
var selectItem = [];
selectItem = selectValue.split(',')
@ -424,8 +418,6 @@
selectXm = xmSelect.render(options)
}
// 初始化内容
function initData() {
var loadLayerIndex;