caipin 5 年 前
コミット
13b7df3405
2 ファイル変更11 行追加6 行削除
  1. 10 1
      app/service/cloudEditionService.js
  2. 1 5
      views/cloud/curing.html

+ 10 - 1
app/service/cloudEditionService.js

@@ -89,7 +89,7 @@ var cloudService={
     	
         //获得编办数据
         var compilationList=await this.getCompilationList(); //编办信息
-        console.log(compilationList);
+        
         
         
         //数据组合--cld客户数据
@@ -119,6 +119,15 @@ var cloudService={
             curingCloudList[i].client_id=hash.hashEncode(v.client_id.toString());
             //curingCloudList[i].sso_id=v.sso_id;
             //最后使用
+            curingCloudList[i].latest_usedName='';
+            for(var i=1;i<=compilationList.lenght;i++){
+            	if(compilationList[i]._id==v.latest_used){
+            		curingCloudList[i].latest_usedName=compilationList[i].name;
+            		break;
+            	}
+            }
+            
+            //登录时长
             if(!hash.isExistence(v.online_times)){
             	curingCloudList[i].online_times='';
             }

+ 1 - 5
views/cloud/curing.html

@@ -146,11 +146,7 @@
                                             
                                             <td><%= curing.latest_login %></td>
                                             <td>
-                                            <% compilationList.forEach(function(compilation) { %>
-	                                            <% if( compilation._id == curing.latest_used) {  %>
-	                                        		<%= compilation.name %>
-	                                        	<% }; %>
-                                        	<% }); %>
+                                           <%= curing.latest_usedName %>
                                             </td>
                                             <td><%= curing.online_times %></td>
                                             <td><%= curing.addtime %></td>