Commit 601b6700 by crushh

update: 兼容后端传来未注册控件code

parent deb44a03
......@@ -1464,13 +1464,14 @@ export default {
ids.push(templateVal.valWidgetId);
}
if (newTime&&!!newTime.length) {
setTimeout(_ => {
newTime.forEach((ele, index) => {
if (!!ele.timeWidgetId) {
this.getTemplateCodeById([ele.timeWidgetId]);
}
});
}, 200);
// setTimeout(_ => {
newTime.forEach((ele, index) => {
if (!!ele.timeWidgetId) {
ids.push(ele.timeWidgetId)
// this.getTemplateCodeById([ele.timeWidgetId]);
}
});
// }, 200);
}
if(ids.length){
......@@ -1487,11 +1488,15 @@ export default {
widgetId: id,
requestProject: 'gic-member-tag-web'
}))).then(resArr=>{
console.log(resArr);
if(!resArr||!resArr.length)return;
resArr.forEach(res=>{
if(res.errorCode != 1)return;
this.handleFindWidgetData(res);
try{
this.handleFindWidgetData(res);
}catch(err){
console.log(err)
}
})
}).finally(_=>{
this.canSave = true;
......@@ -1500,7 +1505,7 @@ export default {
handleFindWidgetData(res){
let data = res.result;
for (let key in data) {
console.log(data.templateCode)
console.log(key)
if (data.templateCode == 'com023') {
this[data.templateCode][key] = data[key];
} else if (data.templateCode == 'com025') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment