META-INF.resources.modules.sys.unitinfo.ctrl.unitinfo.power.js Maven / Gradle / Ivy
define(function(require) {
var Config = require('config');
var Core = require('core/core');
var Page = require('core/page');
var _ = require('lodash');
var UnitInfoPower = Page.extend(function() {
var _self = this;
// @override
this.load = function(panel, data) {
var arry = _self.parent.dataMap.get(data.optCode);
if(!arry)
arry = new Array();
var table = panel.find('table');
table.datagrid({
data:data.objData,
onCheck:function(rowIndex,rowData){
var dataScopes = $(this).cdatagrid('getChecked').length;
if (dataScopes > 0){
$('#tree_unitinfo_power').tree('check',data.objTarget);
}
var i=0;
for(var j=0;j-1){
table.datagrid('checkRow', index);
}
});
};
this.submit=function(){
};
});
return UnitInfoPower;
});