|
楼主 |
发表于 2021-11-23 09:45:57
|
显示全部楼层
if(parentID==''){
parentID='1';
}
var self = this;
var resultData="";
//ABC32FBF1F274ACA8E42A447E96E5687
var actionParam = new biz.Request.ActionParam();
actionParam.setString("project_code", PROJECT_CODE);
actionParam.setString("po_no", PO_NO);
actionParam.setString("period_code", PERIOD_CODE);
actionParam.setString("parent_id",parentID );
biz.Request.sendBizRequest({
"context" : self.getContext(),
"action" : "GET_TREE",
"parameters" : actionParam,
"callback" : function(callbackData) {
if (callbackData.state) {
resultData=callbackData.response;
}
}
});
debugger;
data.loadData(resultData, append, parent);
data.doRefreshAfter(true, event.options);
把parent_id设置一下,第一级加载出来了,但点树型没刷新数据 |
|