angular.directive("allocatedAndUnallocatedPallets
",allocatedAndUnallocatedPallets
)
allocatedAndUnallocatedPallets.$inject = ["palletService","loading",]
var currentScope = {
loadsheetObjList: "=loadsheetlist",
allocateData: "=allocate" //模板中的数据
};
var directive = {
restrict: "E",
replace: true,
scope: currentScope,
templateUrl: "ShuttleTruckPlanner/app/template/all-routes-thumb.html?" + new Date().getTime().toString(),
link: linkFunc
};
function linkFunc( scope, el, attr, ctrl ) {
scope.getPalletThumbStyle = function ( usedHeight, containerHeight, borderColor ) {
return palletService.getPalletStyle(usedHeight, containerHeight, borderColor);
}; //模板中调用的方法
}