JS实现一键展开/收起折叠树所有节点-https://help.fanruan.com/finereport/doc-view-2369.html
var M = this.options.form.getWidgetByName("控件名").getValue();获取按钮名字,根据名字用if判断实现不同功能
按钮显示更多.zip
参考