Skip to content

Commit

Permalink
fix(mail): fix tmpl js error
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinzZH committed Jun 15, 2018
1 parent e443ffe commit 204ee81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/tsw/util/auto-report/src/mail.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@
</tr>
</thead>
<tbody>
<%for(i = 0; i < data.total_arr.length; i++){%>
item = data.total_arr[i++];
<%for(i = 0; i < data.total_arr.length; i++){
item = data.total_arr[i++];
%>

<tr class="<%=(i % 2 == 0 ? 'alt' : '')%>">
<td class="dimension"><%=item.config.title%></td>
<td class="dimension"><%=item.mod_act%></td>
Expand Down
3 changes: 2 additions & 1 deletion bin/tsw/util/auto-report/tmpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ define(function(require, exports, module) {
if (data.total_arr.length) {
__p.push('<table>\n <thead>\n <tr>\n <th>项目名称</th>\n <th>mod_act</th>\n <th>报错次数</th>\n <th>负责人</th>\n </tr>\n </thead>\n <tbody>');
for (i = 0; i < data.total_arr.length; i++) {
__p.push(' item = data.total_arr[i++];\n <tr class="');
item = data.total_arr[i++];
__p.push(' \n <tr class="');
_p((i % 2 == 0 ? 'alt' : ''));
__p.push('">\n <td class="dimension">');
_p(item.config.title);
Expand Down

0 comments on commit 204ee81

Please sign in to comment.