[JavaScript] 构建可视的DOM元素 →→→→→进入此内容的聊天室

来自 , 2021-01-15, 写在 JavaScript, 查看 110 次.
URL http://www.code666.cn/view/0ee8b85a
  1. function triggerDrag(id){
  2.         var node=null;
  3.        
  4.         Ext.each(Ext.getCmp('left_panel'),function(accrd){
  5.                 Ext.each(accrd.items.items,function(tree){
  6.                         tree.getRootNode().cascade(function() {
  7.                                 if (this.attributes['url'] && this.attributes['url'].indexOf('HealthReport') > 0) {
  8.                                        
  9.                                         //委派拖拽
  10.                                         var proxy=new Ext.dd.DragSource(this.getUI().getEl(),{group:'dd'});
  11.                                         var target=new Ext.dd.DDTarget('dargDiv','dd');
  12.                                        
  13.                                         //完成拖拽后触发的事件
  14.                                         proxy.afterDragDrop = function(target, e, idc) {
  15.                                                
  16.                                                 //构造快捷方式持久化对象
  17.                                                 var obj = {
  18.                                                         shortcutname : this.attributes.text,
  19.                                                         shortcuttype : '0',
  20.                                                         shortcutcode : this.attributes.code,
  21.                                                         shortcutid : Number(this.attributes.id),
  22.                                                         shortcuturl : this.attributes.url,
  23.                                                         userid : top._APP.operator.id
  24.                                                 };
  25.                                                
  26.                                                 //持久快捷方式对象
  27.                                                 _Ajax.request({
  28.                                                         url : 'system/Common_saveObj.action',
  29.                                                         params:{
  30.                                                                 clazz:'com.tbyf.health.entity.XtShortcut'
  31.                                                         },
  32.                                                         xmlData: obj,
  33.                                                         result : function(obj) {
  34.                                                                 initShortcuts();
  35.                                                         }
  36.                                                 });
  37.                                         };
  38.                                 }
  39.                         });
  40.                 });
  41.         });
  42. }

回复 "构建可视的DOM元素"

这儿你可以回复上面这条便签

captcha