|  | @@ -105,4 +105,25 @@ Project.prototype.getData = function(projectID, callback){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +Project.prototype.getFilterData = function (projectID, filter) {
 | 
	
		
			
				|  |  | +    let functions = [];
 | 
	
		
			
				|  |  | +    let getModuleData = function (moduleName) {
 | 
	
		
			
				|  |  | +        return function (cb) {
 | 
	
		
			
				|  |  | +            moduleMap[moduleName].getData(projectID, function (err, name, data) {
 | 
	
		
			
				|  |  | +                cb(err, {'moduleName': name, 'data': data})
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    for (let itemName of filter) {
 | 
	
		
			
				|  |  | +        functions.push(getModuleData(itemName));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    async.parallel(functions, function (err, results) {
 | 
	
		
			
				|  |  | +        if (err) {
 | 
	
		
			
				|  |  | +            throw '获取项目数据出错';
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +            return results;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  module.exports = new Project();
 |