修改福袋购买记录查询
This commit is contained in:
@@ -9,24 +9,38 @@
|
||||
<div id="toolbar">
|
||||
|
||||
<form id="searchForm" action="/admin/luckyBagRecord/recordExport" method="get" target="_blank">
|
||||
<div class="col-sm-10">
|
||||
福袋:
|
||||
<select name="luckyBagId" id="qLuckyBagId" class="form-control">
|
||||
</select>
|
||||
送礼人地区:
|
||||
<select name="sendPartitionId" id="sendPartitionId" class="form-control">
|
||||
</select>
|
||||
收礼人地区:
|
||||
<select name="receivePartitionId" id="receivePartitionId" class="form-control">
|
||||
</select>
|
||||
购买人平台号:
|
||||
<input type="text" name="erbanNo" id="qErbanNo" class="input-sm form-control" placeholder="" />
|
||||
开出礼物名称:
|
||||
<input type="text" name="giftName" id="qGiftName" 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="sendPartitionId" class="col-sm-1 control-label">送礼人地区:</label>
|
||||
<div class="col-sm-2">
|
||||
<select name="sendPartitionId" id="sendPartitionId" class="form-control">
|
||||
</select>
|
||||
</div>
|
||||
<label for="receivePartitionId" class="col-sm-1 control-label">收礼人地区:</label>
|
||||
<div class="col-sm-2">
|
||||
<select name="receivePartitionId" id="receivePartitionId" 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="giftName" class="col-sm-1 control-label">开出礼物名称:</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="giftName" id="qGiftName" 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">
|
||||
@@ -190,9 +204,12 @@ function getLuckyBagGift() {
|
||||
var data = res.data;
|
||||
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