作者 王智

daima

... ... @@ -102,6 +102,14 @@ class Renwu extends Model
{
return $this->belongsTo('User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function xiuser()
{
return $this->belongsTo('User', 'xi_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function zhaouser()
{
return $this->belongsTo('User', 'zhao_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function vip()
... ...
... ... @@ -80,12 +80,12 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weight" data-rule="required" class="form-control" name="row[weight]" type="text">
</div>
</div>
<!--<div class="form-group">-->
<!--<label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>-->
<!--<div class="col-xs-12 col-sm-8">-->
<!--<input id="c-weight" data-rule="required" class="form-control" name="row[weight]" type="text">-->
<!--</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">
... ...
... ... @@ -80,12 +80,12 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weight" data-rule="required" class="form-control" name="row[weight]" type="text" value="{$row.weight|htmlentities}">
</div>
</div>
<!--<div class="form-group">-->
<!--<label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>-->
<!--<div class="col-xs-12 col-sm-8">-->
<!--<input id="c-weight" data-rule="required" class="form-control" name="row[weight]" type="text" value="{$row.weight|htmlentities}">-->
<!--</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">
... ...
... ... @@ -35,7 +35,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'opentime', title: __('Opentime')},
{field: 'mobile', title: __('Mobile')},
{field: 'is_show', title: __('Is_show'), searchList: {"1":__('Is_show 1'),"0":__('Is_show 0')}, formatter:Table.api.formatter.toggle},
{field: 'weight', title: __('Weight')},
// {field: 'weight', title: __('Weight')},
// {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}
... ...