caipin 5 éve
szülő
commit
4eb5081e7d
2 módosított fájl, 10 hozzáadás és 9 törlés
  1. 2 8
      app/service/cloudEditionService.js
  2. 8 1
      views/cloud/curing.html

+ 2 - 8
app/service/cloudEditionService.js

@@ -69,13 +69,6 @@ var cloudService={
             	}
         	}
         	
-//        	curingList.forEach(function(clValue,clKey){
-//            	if(cclValue.mobile==clValue.mobile){
-//            		curingCloudList[cclKey].client_id=clValue.client_id;
-//            		falg=false;
-//            		throw new Error('end foreach curingList');
-//            	}
-//            });
         	if(falg){//新增本地扩展信息
         		sid=hash.hashDecode(STAFF.sid);
         		var obj = {
@@ -119,9 +112,10 @@ var cloudService={
 
             curingCloudList[i].addtime=moment(v.create_time).format('YYYY-MM-DD HH:mm');
             curingCloudList[i].latest_login=moment(v.latest_login).format('YYYY-MM-DD HH:mm');
-            //curingCloudList[i].id=hash.hashEncode(v.id.toString());
             curingCloudList[i].client_id=hash.hashEncode(v.client_id.toString());
             curingCloudList[i].sso_id=v.sso_id;
+            //最后使用
+            
         });
         
         var parameter='?compilation_id='+compilation_id;

+ 8 - 1
views/cloud/curing.html

@@ -145,7 +145,14 @@
                                             <td><%= curing.clientInfo.companyname %></td>
                                             
                                             <td><%= curing.latest_login %></td>
-                                            <td></td>
+                                            <td>
+                                            <% compilationList.forEach(function(compilation) { %>
+	                                            <% if( compilation._id == curing.latest_used) {  %>
+	                                        		<%= compilation.name %>
+	                                        	<% }; %>
+                                        	<% }); %>
+                                            
+                                            </td>
                                             <td></td>
                                             <td><%= curing.addtime %></td>
                                             <td>