jQuery MiniUI
标题:
树形组件选择父节点获取不到内容
[打印本页]
作者:
2320382718
时间:
2023-10-23 16:13:57
标题:
树形组件选择父节点获取不到内容
<div class="fui-content">
<ul id="tree" class="mini-filtertree" style="height: 90%" textField="text"
idField="id" parentField="pid" action="getLazyTreeModal"
resultAsTree="false" showCheckBox="true" filterMode="server" checkRecursive="false">
</ul>
</div>
<script src="../../rest/resource/jsboot"></script>
<script src="../js/otherBean.js"></script>
<!-- 配置变量 -->
<script>
var hetongGuid = Util.getUrlParams("hetongGuid");
epoint.initPage('lvyuediselecttreeaction');
//树js对象
var tree = mini.get("tree");
// 点击左侧树刷新右侧表格
function onSubmitValue(e) {
var node = tree.getSelectedNode();
// console.log(tree.getSelectedNode())
var treeVal =tree.getValue();
var treeTex = tree.getText();
console.log("111")
//console.log(tree.getCheckedNodes(false));
if (treeVal == 'root' || treeVal == 'root2') {
epoint.alert("禁止选择根节点");
return;
}
console.log("treeVal:" + treeVal)
console.log("treeTex:" + treeTex)
如果,设置可选父节点,但是选择父节点后,获取tree.getValue()和tree.getText()是空的,有大佬知道为什么嘛
作者:
2320382718
时间:
2023-10-23 16:14:34
子节点是可以正常获取到的
作者:
felt
时间:
2023-10-25 14:13:27
2320382718 发表于 2023-10-23 16:14
子节点是可以正常获取到的
filtertree是你们自己扩展的吗?不清楚内部做了什么?
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2