作者 开飞机的舒克

后台修改

... ... @@ -57,7 +57,7 @@ class Banner extends Backend
->paginate($limit);
foreach ($list as $row) {
$row->visible(['id','title','images','is_url','url','details']);
$row->visible(['id','title','images','is_url','url','details','createtime']);
}
... ...
... ... @@ -41,7 +41,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Details')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-details" class="form-control " rows="5" name="row[details]" cols="50"></textarea>
<textarea id="c-details" class="form-control editor" rows="5" name="row[details]" cols="50"></textarea>
</div>
</div>
<div class="form-group layer-footer">
... ...
... ... @@ -28,10 +28,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'id', title: __('Id')},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
{field: 'is_url', title: __('Is_url'), searchList: {"0":__('Is_url 0'),"1":__('Is_url 1')}, formatter: Table.api.formatter.normal},
{field: 'is_url', title: __('Is_url'), searchList: {"0":__('Is_url 0'),"1":__('Is_url 1')}},
{field: 'url', title: __('Url'), operate: 'LIKE', formatter: Table.api.formatter.url},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]
... ...