var oNode = null, thePlugins = 'component'; dialog.oncancel = function () { if (UE.plugins[thePlugins].editdom) { delete UE.plugins[thePlugins].editdom; } }; dialog.onok = function () { var _html = Save(); if (_html == "") return; editor.execCommand('insertHtml', _html); } function GetHtmlByMapAttrAndFrmComponent(mapData, frmComponent) { var _html = ""; switch (frmComponent) { case 4: //地图控件 _html = "
"; _html += ""; _html += ""; _html += "
"; break; case 5://录音控件 break; case 6: //字段附件 _html +=mapData.Name+""; break; case 7: break; case 8://签字版 _html = ""; break; case 9://超链接 break; case 10://文本 break; case 11://图片 _html = "" break; case 12://图片附件 _html = "" break; case 13://身份证 break; case 14://签批组件 _html = ""; break; case 15://评论组件 _html = "" ; break; case 16://系统定位 break; case 17:// 发文字号 _html = ""; break; case 170:// 收文字号 _html = ""; break; case 18: _html = ""; break; case 50://流程进度图 _html = ""; break; case 60://大文本 break; case 70: // _html = "" break; case 80://从表 _html = "" break; case 90://框架 _html = "" break; case 101://评分控件 _html = ""; _html += ""; var num = mapData.Tag2; for (var i = 0; i < num; i++) { _html += ""; } _html += "  " + num + " 分"; _html += ""; _Html += "" break; case 110://公文正文组件 _html = ""; break; case 120://父子流程 _html = "" break; } return _html; }