var pDiv=ele.parentNode;
window.SmartPage_DropTree[pDiv.id] = new MzTreeView("SmartPage_DropTree."+pDiv.id);
var multiTree = window.SmartPage_DropTree[pDiv.id];
multiTree.withCheckBox = withCheckBox;
if (popWin) {
multiTree.setIconPath("images/");
} else {
multiTree.setIconPath("SmartFormRes/js/composite/images/");
}
var selValList = null;
if (withCheckBox && null != selVal && '' != selVal) {
selValList = selVal.split(",");
}
with (multiTree) {
var treeEles = treeData.split(";");
for ( var i = 0; i < treeEles.length; i++) {
var oneEle = treeEles[i];
N[oneEle.split(',')[0]] = '';
// ctrl:sel;checked:1;
if (withCheckBox) {
N[oneEle.split(',')[0]] += 'ctrl:' + SmartPage_DropTree_CKName
+ ";checked:";
if (null != selValList && nstc.sf.isEleInArray(oneEle.split(',')[0].split("_")[1], selValList)) {
N[oneEle.split(',')[0]] += '1';
} else {
N[oneEle.split(',')[0]] += '0';
}
N[oneEle.split(',')[0]] += ";"
}
N[oneEle.split(',')[0]] += 'T:' + oneEle.split(',')[1]
+ ';C:nstc.sf.L(\'' + oneEle.split(',')[2] + '\')'
+ ';data:' + oneEle.split(',')[2];
}
}
multiTree.wordLine = false;
multiTree.readOnly = false;
var strInnerHTML = multiTree.toString();
ele.innerHTML = strInnerHTML;//报错的地方,对象ele的方法和属性都是拒绝访问状态
if (withCheckBox) {
multiTree.expandAll();
}
if ('' != selVal && !withCheckBox) {
multiTree.Click(selVal);
}
if(multiTree.withCheckBox){
multiTree.nodeClick=function(){}
ele.onclick=nstc.sf.dropTreeClickHandler;
}else{
multiTree.nodeClick=nstc.sf.dropTreeClickHandler;
}
暂时记录,现在我不知道原因,没法解决