|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">系统限流</div>
|
|
|
|
|
<div class="panel-body row form-inline J_moveSpeedBody">
|
|
|
|
|
<div class="col-sm-3">每天最多搬家:
|
|
|
|
|
<input name="mallDayLimit" value="<?php echo $moveSpeedSystemLimit['mall_day_limit'];?>" type="number" class="form-control ml_5" style="width: 100px;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3">每小时最多搬家:
|
|
|
|
|
<input name="mallHourLimit" value="<?php echo $moveSpeedSystemLimit['mall_hour_limit'];?>" type="number" class="form-control" style="width: 100px;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3">每个商品上货间隔:
|
|
|
|
|
<input name="everyMoveSecondsLimit" value="<?php echo $moveSpeedSystemLimit['every_move_seconds_limit'];?>" type="number" class="form-control" style="width: 100px;" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="isSystem" value="1" />
|
|
|
|
|
<?php if ($moveSpeedSystemLimit['move_speed_system_limit_id']) {?>
|
|
|
|
|
<input type="hidden" name="moveSpeedSystemLimitId" value="<?php echo $moveSpeedSystemLimit['move_speed_system_limit_id'];?>" />
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<div class="col-sm-3"><button class="btn btn-sm btn-primary J_saveMoveSpeed">保存修改</button></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-inline" style="background-color: #e6e5e5;border: 1px solid #cecccc; padding: 10px;border-radius: 5px;">
|
|
|
|
|
<form class="inline" action="<?php echo Zc::url(AdminRouteConst::moveMoveSpeedManage);?>">
|
|
|
|
|
<div class="form-group mr_10">
|
|
|
|
|
<label>店铺ID:</label>
|
|
|
|
|
<?php echo ZcHtml::textInput('mallId', $_GET['mallId'], array('class' => 'form-control'));?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary mr_10">搜索</button>
|
|
|
|
|
</form>
|
|
|
|
|
<button class="btn btn-primary J_showAddMoveMallSpeelLimitModal">添加店铺限流</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<table class="table table-bordered mt_20">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="text-center">店铺信息</th>
|
|
|
|
|
<th class="text-center">每天最多搬家数</th>
|
|
|
|
|
<th class="text-center">每小时最多搬家数</th>
|
|
|
|
|
<th class="text-center">每个商品上货间隔(秒)</th>
|
|
|
|
|
<th class="text-center">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php foreach ($moveSpeedMallLimitList as $moveSpeedMallLimit) {?>
|
|
|
|
|
<tr class="J_moveSpeedBody">
|
|
|
|
|
<input type="hidden" name="mallId" value="<?php echo $moveSpeedMallLimit['mall_id'];?>"/>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<?php echo $moveSpeedMallLimit['mall_name'];?>
|
|
|
|
|
<br />
|
|
|
|
|
<?php echo $moveSpeedMallLimit['mall_id'];?>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<input name="mallDayLimit" value="<?php echo $moveSpeedMallLimit['mall_day_limit'];?>" type="number" class="form-control inline ml_5" style="width: 100px;" />
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<input name="mallHourLimit" value="<?php echo $moveSpeedMallLimit['mall_hour_limit'];?>" type="number" class="form-control inline" style="width: 100px;" />
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<input name="everyMoveSecondsLimit" value="<?php echo $moveSpeedMallLimit['every_move_seconds_limit'];?>" type="number" class="form-control inline" style="width: 100px;" />
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<button class="btn btn-sm btn-primary mr_10 J_saveMoveSpeed">保存修改</button>
|
|
|
|
|
<button class="btn btn-sm btn-danger J_delMoveSpeed" data-mall-id="<?php echo $moveSpeedMallLimit['mall_id'];?>">删除限制</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<?php if($pagin){?>
|
|
|
|
|
<div class="pull-right mt_10">
|
|
|
|
|
<?php echo $pagin->renderLinks();?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" tabindex="-1" role="dialog" id="J_addMoveMallSpeelLimitModal">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content J_moveSpeedBody">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
|
<h4 class="modal-title">添加店铺流量限制</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<form class="form-horizontal">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label">店铺ID:</label>
|
|
|
|
|
<div class="col-sm-7">
|
|
|
|
|
<input type="text" class="form-control" name="mallId" style="width: 200px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label">每天最多搬家数:</label>
|
|
|
|
|
<div class="col-sm-7">
|
|
|
|
|
<input type="number" class="form-control" name="mallDayLimit" style="width: 200px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label">每小时最多搬家数:</label>
|
|
|
|
|
<div class="col-sm-7">
|
|
|
|
|
<input type="number" class="form-control" name="mallHourLimit" style="width: 200px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label">每个商品上货间隔(秒):</label>
|
|
|
|
|
<div class="col-sm-7">
|
|
|
|
|
<input type="number" class="form-control" name="everyMoveSecondsLimit" style="width: 200px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
|
|
|
|
<button type="button" class="btn btn-primary J_saveMoveSpeed" data-is-add="1">添加限流</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php echo HtmlTool::getStaticCommonFile(array('biz/admin/move_speed_manage.js?' . time()));?>
|