Commit c7bfd0e1 authored by 管新明's avatar 管新明

fix: 中奖名单前端模板调整

parent 3e7ddc02
...@@ -9,7 +9,7 @@ Component({ ...@@ -9,7 +9,7 @@ Component({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? [] : null},` %> <%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? '[]' : null},` %>
<% } %> <% } %>
}, },
list: [], list: [],
...@@ -40,13 +40,13 @@ Component({ ...@@ -40,13 +40,13 @@ Component({
// 未选择任何条件搜索 // 未选择任何条件搜索
const { const {
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}` %> <%- `${winnersFilterData[i]},` %>
<% } %> <% } %>
} = this.data.searchInfo; } = this.data.searchInfo;
if ( if (
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i] == 'timeRange' ? `${!winnersFilterData[i].length}` : `${!winnersFilterData[i]}`} ${i === winnersFilterData.length - 1 ? '' : '&&'}` %> <%- `${winnersFilterData[i] == 'timeRange' ? `!${winnersFilterData[i].length}` : `!${winnersFilterData[i]}`} ${i === winnersFilterData.length - 1 ? '' : '&&'}` %>
<% } %> <% } %>
) { ) {
this.resetData(); this.resetData();
...@@ -68,7 +68,7 @@ Component({ ...@@ -68,7 +68,7 @@ Component({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? [] : null},` %> <%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? '[]' : null},` %>
<% } %> <% } %>
}, },
list: [], list: [],
...@@ -144,13 +144,13 @@ Component({ ...@@ -144,13 +144,13 @@ Component({
// 未选择任何条件搜索 // 未选择任何条件搜索
const { const {
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}` %> <%- `${winnersFilterData[i]},` %>
<% } %> <% } %>
} = this.data.searchInfo; } = this.data.searchInfo;
if ( if (
<% for(var i = 0; i < winnersFilterData.length; ++i) {%> <% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i] == 'timeRange' ? `${!winnersFilterData[i].length}` : `${!winnersFilterData[i]}`} ${i === winnersFilterData.length - 1 ? '' : '&&'}` %> <%- `${winnersFilterData[i] == 'timeRange' ? `!${winnersFilterData[i].length}` : `!${winnersFilterData[i]}`} ${i === winnersFilterData.length - 1 ? '' : '&&'}` %>
<% } %> <% } %>
) { ) {
this.resetData(); this.resetData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment