欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

EasyUI 中combotree 默認(rèn)不能選擇父節(jié)點(diǎn)的實(shí)現(xiàn)方法

 更新時(shí)間:2016年11月07日 10:23:49   投稿:jingxian  
下面小編就為大家?guī)硪黄狤asyUI 中combotree 默認(rèn)不能選擇父節(jié)點(diǎn)的實(shí)現(xiàn)方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧

這需要添加如下字段就行,搜了半天,說什么判斷是不是子節(jié)點(diǎn)什么的,都是胡扯!

onlyLeafCheck:true,
//病因分類 
$('#artReason').combotree({
width:200,
method:'GET',
  //url: '${ctx}/business/dict/json/DicEtilolgy',
  data:DicEtilolgy_data,
  idField : 'id',
  textFiled : 'name',
parentField : 'pid',
  animate:true,
  mode:'local',
  multiple: true,
  onlyLeafCheck:true,
  onbeforeselect:function(node){
  debugger;
        alert(node.state);
        if(node.state){
          $("#artReason").tree("unselect");
        }
      },
onClick:function(data){
return;
debugger;
},
  onLoadSuccess:function(node,data){
//   $("#artReason").combotree('setValue',['11','12']);
  
  },
//  onSelect : function(node) { 
//   debugger;
//   if(parseInt(node.id)<10){
//   $('#artReason').combotree('clear');
//   return;
//   }
//    //返回樹對象 
//    var tree = $(this).tree; 
//    //選中的節(jié)點(diǎn)是否為葉子節(jié)點(diǎn),如果不是葉子節(jié)點(diǎn),清除選中 
//    var isLeaf = tree('isLeaf', node.target); 
//    if (!isLeaf) { 
//      //清除選中 
//      $('#artReason').combotree('clear'); 
//    } 
//  }, 
  onChange:function(newValue, oldValue) { 
  debugger;
  },
//  filter:function(q,row){ 
//   debugger;
//   var opts=$(this).combobox("options"); 
//   return row[opts.textField].indexOf(q)>-1;//將從頭位置匹配改為任意匹配 
//   },
});

以上這篇EasyUI 中combotree 默認(rèn)不能選擇父節(jié)點(diǎn)的實(shí)現(xiàn)方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論