Commit 720164b1 by liuyong

修改左侧菜单加载

1 parent 89a756b8
Showing with 19 additions and 17 deletions
......@@ -231,7 +231,7 @@ App = function(editor, container, lightbox)
if(dicys.length > 0) {
dicys.forEach(item2 => {
console.log(item2.fieldName)
console.log(item2.chineseName)
// console.log(item2.chineseName)
// svgTag.setAttribute(encodeURIComponent(item2.fieldName), encodeURIComponent(item2.chineseName));
// svgTag.setAttribute('attr'+item2.fieldName, 'attr'+item2.chineseName);
......@@ -255,23 +255,25 @@ App = function(editor, container, lightbox)
contentType: "application/json",
success: result => {
result.data.forEach(item => {
if(item.eleDtos.length > 0) {
const libraryName = item.arciBelongName;
let images = [];
item.eleDtos.forEach(item2 => {
if(item2.icon) {
if(item2.icon.includes('data')) {
images.push({
aspect: "fixed",
data: setIcon(item2.icon, item2.dicys, item2.color),
h: 256,
title: item2.eleName,
w: 256
})
if(item.eleDtos) {
if(item.eleDtos.length > 0) {
const libraryName = item.arciBelongName;
let images = [];
item.eleDtos.forEach(item2 => {
if(item2.icon) {
if(item2.icon.includes('data')) {
images.push({
aspect: "fixed",
data: setIcon(item2.icon, item2.dicys, item2.color),
h: 256,
title: item2.eleName,
w: 256
})
}
}
}
})
this.saveLibrary(libraryName, images, null, 'ajax', undefined, undefined, undefined);
})
this.saveLibrary(libraryName, images, null, 'ajax', undefined, undefined, undefined);
}
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!