Authored by htoooth

Merge branch 'master' of http://git.yoho.cn/OPENTECH/yoho-node-ci

@@ -698,7 +698,7 @@ const task = { @@ -698,7 +698,7 @@ const task = {
698 let params = ctx.request.body || {}; 698 let params = ctx.request.body || {};
699 let key = params.code || ''; 699 let key = params.code || '';
700 let start = params.start || 0; 700 let start = params.start || 0;
701 - let stop = params.stop || 100; 701 + let stop = params.stop || 1000;
702 702
703 return ctx.redis.lrangeAsync(`global:yoho:task:log:${key}`, start, stop).then(rdata => { 703 return ctx.redis.lrangeAsync(`global:yoho:task:log:${key}`, start, stop).then(rdata => {
704 let data = _.map(rdata, item => { 704 let data = _.map(rdata, item => {
@@ -31,11 +31,20 @@ @@ -31,11 +31,20 @@
31 border-collapse: separate; 31 border-collapse: separate;
32 border-spacing: 0 4px; 32 border-spacing: 0 4px;
33 } 33 }
34 - .task-log tbody tr:nth-child(odd) td:first-child { 34 + .task-log tbody tr:nth-child(5n + 1) td:first-child {
35 border-left: 2px solid #00C656; 35 border-left: 2px solid #00C656;
36 } 36 }
37 - .task-log tbody tr:nth-child(even) td:first-child {  
38 - border-left: 2px solid #4F95E8; 37 + .task-log tbody tr:nth-child(5n + 2) td:first-child {
  38 + border-left: 2px solid #1e90ff;
  39 + }
  40 + .task-log tbody tr:nth-child(5n + 3) td:first-child {
  41 + border-left: 2px solid #00faff;
  42 + }
  43 + .task-log tbody tr:nth-child(5n + 4) td:first-child {
  44 + border-left: 2px solid #ee82ee;
  45 + }
  46 + .task-log tbody tr:nth-child(5n + 5) td:first-child {
  47 + border-left: 2px solid #FFFF00;
39 } 48 }
40 .task-log tbody tr.empty td { 49 .task-log tbody tr.empty td {
41 border: none !important; 50 border: none !important;
@@ -204,9 +213,9 @@ @@ -204,9 +213,9 @@
204 213
205 return that.getTaskLog(taskData).then(rdata => { 214 return that.getTaskLog(taskData).then(rdata => {
206 setTimeout(function() { 215 setTimeout(function() {
207 - layer.close(layerIndex);  
208 that.rendLog(rdata.data); 216 that.rendLog(rdata.data);
209 - }, 2000); 217 + layer.close(layerIndex);
  218 + }, 800);
210 }); 219 });
211 }); 220 });
212 221