|
|
@ -35,6 +35,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
{field: 'main_realname', title: __('Main_realname'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_realname', title: __('Main_realname'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_phone', title: __('Main_phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_phone', title: __('Main_phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_cardno', title: __('Main_cardno'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_cardno', title: __('Main_cardno'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
|
|
|
|
{field: 'is_hot', title: __('是否热门'), operate: false, formatter: Controller.api.formatter.custom}, |
|
|
|
// {field: 'main_qq', title: __('Main_qq'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
// {field: 'main_qq', title: __('Main_qq'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
// {field: 'main_wechat', title: __('Main_wechat'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
// {field: 'main_wechat', title: __('Main_wechat'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
{field: 'main_address', title: __('Main_address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'main_address', title: __('Main_address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
@ -199,7 +200,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
api: { |
|
|
|
api: { |
|
|
|
bindevent: function () { |
|
|
|
bindevent: function () { |
|
|
|
Form.api.bindevent($("form[role=form]")); |
|
|
|
Form.api.bindevent($("form[role=form]")); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
formatter: {//渲染的方法
|
|
|
|
|
|
|
|
custom: function (value, row, index) { |
|
|
|
|
|
|
|
//添加上btn-change可以自定义请求的URL进行数据处理
|
|
|
|
|
|
|
|
return '<a class="btn-change text-success" data-url="content/change" data-confirm="确认设为或者取消热门?" data-id="' + row.id + '"><i class="fa ' + (row.is_hot == 0 ? 'fa-toggle-on fa-flip-horizontal text-gray' : 'fa-toggle-on') + ' fa-2x"></i></a>'; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
return Controller; |
|
|
|
return Controller; |
|
|
|