|
|
@ -2522,65 +2522,42 @@ BI.shortcut("demo.handstand_branch_tree", Demo.Func);Demo.Func = BI.inherit(BI.W |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
var tree = BI.createWidget({ |
|
|
|
var tree = BI.createWidget({ |
|
|
|
type: "bi.level_tree", |
|
|
|
|
|
|
|
chooseType: 0, |
|
|
|
type: "bi.platform_level_tree", |
|
|
|
items: [{ |
|
|
|
ref: function () { |
|
|
|
id: 1, |
|
|
|
self.tree = this; |
|
|
|
text: "第一项", |
|
|
|
}, |
|
|
|
value: 1, |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
isParent: true |
|
|
|
|
|
|
|
}, { |
|
|
|
callback([ |
|
|
|
id: 2, |
|
|
|
|
|
|
|
text: "第二项", |
|
|
|
{"id": 21, "pId": -1, "text": "销售管理", layer: 1, value: 21, |
|
|
|
value: 2, |
|
|
|
expander: { |
|
|
|
isParent: true |
|
|
|
type: "bi.expander", |
|
|
|
}, { |
|
|
|
adjustLength: 20, |
|
|
|
id: 3, |
|
|
|
direction: "right", |
|
|
|
text: "第三项", |
|
|
|
popup: { |
|
|
|
value: 1, |
|
|
|
items: [{ |
|
|
|
isParent: true, |
|
|
|
type: "bi.single_select_item", |
|
|
|
open: true |
|
|
|
height: 25, |
|
|
|
}, { |
|
|
|
text: "项目1", |
|
|
|
id: 4, |
|
|
|
value: 1 |
|
|
|
text: "第四项", |
|
|
|
}, { |
|
|
|
value: 1 |
|
|
|
type: "bi.single_select_item", |
|
|
|
}, { |
|
|
|
height: 25, |
|
|
|
id: 11, |
|
|
|
text: "项目2", |
|
|
|
pId: 1, |
|
|
|
value: 2 |
|
|
|
text: "子项1", |
|
|
|
}] |
|
|
|
value: 11 |
|
|
|
} |
|
|
|
}, { |
|
|
|
} |
|
|
|
id: 12, |
|
|
|
} |
|
|
|
pId: 1, |
|
|
|
]) |
|
|
|
text: "子项2", |
|
|
|
}, |
|
|
|
value: 12 |
|
|
|
|
|
|
|
}, { |
|
|
|
width: 200 |
|
|
|
id: 13, |
|
|
|
|
|
|
|
pId: 1, |
|
|
|
|
|
|
|
text: "子项3", |
|
|
|
|
|
|
|
value: 13 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 21, |
|
|
|
|
|
|
|
pId: 2, |
|
|
|
|
|
|
|
text: "子项1", |
|
|
|
|
|
|
|
value: 21 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 31, |
|
|
|
|
|
|
|
pId: 3, |
|
|
|
|
|
|
|
text: "子项1", |
|
|
|
|
|
|
|
value: 31 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 32, |
|
|
|
|
|
|
|
pId: 3, |
|
|
|
|
|
|
|
text: "子项2", |
|
|
|
|
|
|
|
value: 32 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 33, |
|
|
|
|
|
|
|
pId: 3, |
|
|
|
|
|
|
|
text: "子项3", |
|
|
|
|
|
|
|
value: 33 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|