mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
fix: 修复地图重复渲染的问题
This commit is contained in:
@@ -565,12 +565,12 @@
|
||||
if (!d.searchValue || d.searchValue.length == 0) {
|
||||
d.searchValue = d.defaultSearchValue;
|
||||
}
|
||||
}else{
|
||||
if(d.field){
|
||||
d.defaultSearchValue = admin.getQueryVariable(d.field)
|
||||
if(d.defaultSearchValue != undefined){
|
||||
d.searchValue = d.defaultSearchValue
|
||||
}
|
||||
} else {
|
||||
if (d.field) {
|
||||
d.defaultSearchValue = admin.getQueryVariable(d.field);
|
||||
if (d.defaultSearchValue != undefined) {
|
||||
d.searchValue = d.defaultSearchValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -918,7 +918,7 @@
|
||||
|
||||
// 清空里面的数据
|
||||
layuiTableElem.find(className).html('');
|
||||
loading.hide()
|
||||
loading.hide();
|
||||
|
||||
item.tplFunction(options, res, layuiTableElem.find(className));
|
||||
|
||||
@@ -1173,7 +1173,7 @@
|
||||
}
|
||||
// 图片默认不搜索
|
||||
if (val.templet === admin.table.image && val.search === undefined) {
|
||||
cols[i][index]['search'] = false
|
||||
cols[i][index]['search'] = false;
|
||||
}
|
||||
|
||||
// 判断是否列表数据转换
|
||||
@@ -1486,7 +1486,7 @@
|
||||
return '';
|
||||
}
|
||||
var option = data.LAY_COL;
|
||||
|
||||
|
||||
field = field || option.field;
|
||||
defaultValue = defaultValue || option.defaultValue;
|
||||
|
||||
@@ -1501,8 +1501,8 @@
|
||||
value = valueParser(value, data);
|
||||
}
|
||||
|
||||
if(value === null || value === undefined) {
|
||||
value = defaultValue
|
||||
if (value === null || value === undefined) {
|
||||
value = defaultValue;
|
||||
}
|
||||
|
||||
return value;
|
||||
@@ -2746,6 +2746,10 @@
|
||||
var mapList = document.querySelectorAll('[data-toggle="map-location"]');
|
||||
|
||||
$.each(mapList, function (i, v) {
|
||||
if ($(v).hasClass('map-rendered')) {
|
||||
return;
|
||||
}
|
||||
$(v).addClass('map-rendered');
|
||||
var data = $(v).data();
|
||||
mapLocation.render(v, data, admin);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user