修复福袋数据统计查询问题
This commit is contained in:
@@ -9,19 +9,32 @@
|
||||
<div id="toolbar">
|
||||
|
||||
<form id="searchForm" action="/admin/luckyBagRecord/statsExport" method="get" target="_blank">
|
||||
<div class="col-sm-10">
|
||||
福袋:
|
||||
<select name="luckyBagId" id="qLuckyBagId" class="form-control">
|
||||
</select>
|
||||
地区:
|
||||
<select name="partitionId" id="partitionId" class="form-control">
|
||||
</select>
|
||||
平台号:
|
||||
<input type="text" name="erbanNo" id="qErbanNo" class="input-sm form-control" placeholder="" />
|
||||
日期:
|
||||
<input type="text" name="startDate" id="qStartDate" class="input-sm datetime form-control" placeholder="">
|
||||
-
|
||||
<input type="text" name="endDate" id="qEndDate" class="input-sm datetime form-control" placeholder="">
|
||||
<div class="col-sm-12">
|
||||
<label for="luckyBagId" class="col-sm-1 control-label">福袋:</label>
|
||||
<div class="col-sm-2">
|
||||
<select name="luckyBagId" id="qLuckyBagId" class="form-control">
|
||||
</select>
|
||||
</div>
|
||||
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||
<div class="col-sm-2">
|
||||
<select name="partitionId" id="partitionId" class="form-control">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label for="erbanNo" class="col-sm-1 control-label">平台号:</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="erbanNo" id="qErbanNo" class="input-sm form-control" placeholder="" />
|
||||
</div>
|
||||
<label for="startDate" class="col-sm-1 control-label">日期:</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="startDate" id="qStartDate" class="input-sm datetime form-control" placeholder="">
|
||||
</div>
|
||||
|
||||
<label for="endDate" class="col-sm-1 control-label">-</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="endDate" id="qEndDate" class="input-sm datetime form-control" placeholder="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-sm-2">
|
||||
@@ -175,12 +188,15 @@ export default {
|
||||
buildSelectOption(
|
||||
"#partitionId",
|
||||
null,
|
||||
data.map((v) => {
|
||||
[{
|
||||
value: '',
|
||||
text: '全部'
|
||||
}].concat(data.map((v) => {
|
||||
return {
|
||||
value: v.id,
|
||||
text: v.desc,
|
||||
};
|
||||
})
|
||||
}))
|
||||
);
|
||||
});
|
||||
},
|
||||
@@ -225,8 +241,12 @@ function getLuckyBagGift() {
|
||||
var options = [];
|
||||
for (var i = 0, len = data.length; i < len; i++) {
|
||||
var item = data[i];
|
||||
let giftName = item.giftName;
|
||||
if (giftName.startsWith('{') && giftName.endsWith('}')) {
|
||||
giftName = JSON.parse(giftName).zh;
|
||||
}
|
||||
//拼接成多个<option><option/>
|
||||
options.push('<option value="' + item.giftId + '">' + item.giftName + '</option>')
|
||||
options.push('<option value="' + item.giftId + '">' + giftName + '</option>')
|
||||
}
|
||||
$("#qLuckyBagId").html(options.join(' ')); //填充到select标签中
|
||||
}
|
||||
|
Reference in New Issue
Block a user