作者 开飞机的舒克

活动管理优化

... ... @@ -23,7 +23,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Depict')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-depict" class="form-control " rows="5" name="row[depict]" cols="50"></textarea>
<textarea id="c-depict" class="form-control editor" rows="5" name="row[depict]" cols="50"></textarea>
</div>
</div>
<div class="form-group layer-footer">
... ...
... ... @@ -23,7 +23,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Depict')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-depict" class="form-control " rows="5" name="row[depict]" cols="50">{$row.depict|htmlentities}</textarea>
<textarea id="c-depict" class="form-control editor" rows="5" name="row[depict]" cols="50">{$row.depict|htmlentities}</textarea>
</div>
</div>
<div class="form-group layer-footer">
... ...
... ... @@ -17,6 +17,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
... ... @@ -31,7 +40,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'id', title: __('ID'), operate: false},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
... ...