修改福袋购买记录查询
This commit is contained in:
@@ -9,24 +9,38 @@
|
|||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
|
|
||||||
<form id="searchForm" action="/admin/luckyBagRecord/recordExport" method="get" target="_blank">
|
<form id="searchForm" action="/admin/luckyBagRecord/recordExport" method="get" target="_blank">
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-12">
|
||||||
福袋:
|
<label for="luckyBagId" class="col-sm-1 control-label">福袋:</label>
|
||||||
<select name="luckyBagId" id="qLuckyBagId" class="form-control">
|
<div class="col-sm-2">
|
||||||
</select>
|
<select name="luckyBagId" id="qLuckyBagId" class="form-control">
|
||||||
送礼人地区:
|
</select>
|
||||||
<select name="sendPartitionId" id="sendPartitionId" class="form-control">
|
</div>
|
||||||
</select>
|
<label for="sendPartitionId" class="col-sm-1 control-label">送礼人地区:</label>
|
||||||
收礼人地区:
|
<div class="col-sm-2">
|
||||||
<select name="receivePartitionId" id="receivePartitionId" class="form-control">
|
<select name="sendPartitionId" id="sendPartitionId" class="form-control">
|
||||||
</select>
|
</select>
|
||||||
购买人平台号:
|
</div>
|
||||||
<input type="text" name="erbanNo" id="qErbanNo" class="input-sm form-control" placeholder="" />
|
<label for="receivePartitionId" 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="" />
|
<select name="receivePartitionId" id="receivePartitionId" class="form-control">
|
||||||
日期:
|
</select>
|
||||||
<input type="text" name="startDate" id="qStartDate" class="input-sm datetime form-control" placeholder="">
|
</div>
|
||||||
-
|
<label for="erbanNo" class="col-sm-1 control-label">购买人平台号:</label>
|
||||||
<input type="text" name="endDate" id="qEndDate" class="input-sm datetime form-control" placeholder="">
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="col-sm-2">
|
<div class="col-sm-2">
|
||||||
@@ -190,9 +204,12 @@ function getLuckyBagGift() {
|
|||||||
var data = res.data;
|
var data = res.data;
|
||||||
var options = [];
|
var options = [];
|
||||||
for (var i = 0, len = data.length; i < len; i++) {
|
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/>
|
//拼接成多个<option><option/>
|
||||||
options.push('<option value="' + item.giftId + '">' + item.giftName + '</option>')
|
options.push('<option value="' + item.giftId + '">' + giftName + '</option>');
|
||||||
}
|
}
|
||||||
$("#qLuckyBagId").html(options.join(' ')); //填充到select标签中
|
$("#qLuckyBagId").html(options.join(' ')); //填充到select标签中
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user