|
@@ -46,7 +46,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// {field: 'latitude', title: __('Latitude'), operate: 'LIKE'},
|
|
|
// {field: 'aite', title: __('Aite'), operate: 'LIKE'},
|
|
|
{field: 'is_public', title: __('Is_public'), searchList: {"1":__('Is_public 1'),"2":__('Is_public 2')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'toptime', title: __('toptime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
+ {field: 'operate', title: __('Operate'), table: table,
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'toptime',
|
|
|
+ text:'置顶',
|
|
|
+ title:'置顶',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-ajax',
|
|
|
+ url:'topicdongtai/toptime/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ refresh:true,
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|
|
@@ -54,6 +68,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
|
},
|
|
|
+ toptime: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
add: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|