作者 郭盛
1 个管道 的构建 通过 耗费 10 秒

修改界面

... ... @@ -56,6 +56,12 @@
<input id="c-price" class="form-control" name="row[price]" type="number">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('权重值')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" class="form-control" name="row[weigh]" type="number">
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
... ...
... ... @@ -30,6 +30,12 @@
<input id="c-price" class="form-control" name="row[price]" type="" value="{$row.price}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('权重值')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
... ...
... ... @@ -510,7 +510,7 @@ class Store extends Api
{
$user_id = $this->getUserId();
$data = Db::name('combination')
->order('createtime desc')
->order('weigh desc')
->select();
foreach ($data as &$v){
$qiniu = get_addon_config('qiniu')['cdnurl'];
... ...
... ... @@ -32,6 +32,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'price', title:__('价格'),operate:false},
{field: 'addintegral', title: __('Addintegral'), operate:false},
{field: 'addnum', title: __('Addnum'), operate:false},
{filed: 'weigh',title:__('权重值'),operate:false},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
// {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
... ...