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

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

parent 3e7ddc02
......@@ -9,7 +9,7 @@ Component({
pageNo: 1,
pageSize: 10,
<% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? [] : null},` %>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? '[]' : null},` %>
<% } %>
},
list: [],
......@@ -40,13 +40,13 @@ Component({
// 未选择任何条件搜索
const {
<% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}` %>
<%- `${winnersFilterData[i]},` %>
<% } %>
} = this.data.searchInfo;
if (
<% 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();
......@@ -68,7 +68,7 @@ Component({
pageNo: 1,
pageSize: 10,
<% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? [] : null},` %>
<%- `${winnersFilterData[i]}: ${winnersFilterData[i] == 'timeRange' ? '[]' : null},` %>
<% } %>
},
list: [],
......@@ -144,13 +144,13 @@ Component({
// 未选择任何条件搜索
const {
<% for(var i = 0; i < winnersFilterData.length; ++i) {%>
<%- `${winnersFilterData[i]}` %>
<%- `${winnersFilterData[i]},` %>
<% } %>
} = this.data.searchInfo;
if (
<% 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();
......
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