用了树形结构图,目前想要根据不同的部门跳转不同的报表,应该怎么获取结构图里的选中值呢
var cc = this.options.form.getWidgetByName('a').getValue();//获取控件a的值
if(cc == 'A'){//cc的值 为A 时
window.open("https://help.fanruan.com/finereport/"); //跳转到地址1
}
if (cc == 'B') {
window.open("https://www.baidu.com/");// 跳转到地址2
https://help.fanruan.com/finereport/doc-view-1716.html 参考
------