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