Fetch the repository succeeded.
{header:'${text("申报单位")}', name:'declareUnitCode', width:100, title:false,
formatter: function(val, obj, row, act){
return js.val(row, 'declareUnitCode')+'|'+js.val(row, 'declareUnitName');
}, editable: true, edittype: "custom", editoptions: {
custom_element: function(val, editOptions) {
return js.template('treeselectTpl', {
id: 'office_'+editOptions.id, title: '机构选择',
name: 'declareUnitCode', value: val.split('|')[0],
labelName: 'declareUnitName', labelValue: val.split('|')[1], canSelectParent: true,
url: '${ctx}/sys/office/treeData', cssClass: '', readonly: false
});
}
}
},
