作者 杨育虎

2

... ... @@ -5,7 +5,6 @@ return [
'Avatar' => '轮播图',
'Createtime' => '创建时间',
'Updatetime' => '更改时间',
'Color' => '颜色',
'Web' => '跳转',
'Weight' => '权重'
];
... ...
... ... @@ -15,12 +15,6 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Color')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-color" data-rule="required" class="form-control" name="row[color]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Web')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-web" data-rule="required" class="form-control" name="row[web]" type="text">
... ...
... ... @@ -15,12 +15,6 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Color')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-color" data-rule="required" class="form-control" name="row[color]" type="text" value="{$row.color|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Web')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-web" data-rule="required" class="form-control" name="row[web]" type="text" value="{$row.web|htmlentities}">
... ...
... ... @@ -26,11 +26,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'avatar', title: __('Avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'color', title: __('Color')},
{field: 'web', title: __('Web')},
{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: 'web', title: __('Web')},
{field: 'weight', title: __('Weight')},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]
... ...