|
@@ -8,7 +8,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
index_url: 'basedata/index' + location.search,
|
|
|
add_url: 'basedata/add',
|
|
|
edit_url: 'basedata/edit',
|
|
|
-// del_url: 'basedata/del',
|
|
|
+ del_url: 'basedata/del',
|
|
|
multi_url: 'basedata/multi',
|
|
|
import_url: 'basedata/import',
|
|
|
table: 'basedata',
|
|
@@ -30,7 +30,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'key', title: __('Key'), operate: 'LIKE'},
|
|
|
{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}
|
|
|
+ {field: 'operate', title: __('Operate'), table: table,
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'del',
|
|
|
+ text:'删除',
|
|
|
+ title:'删除',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-danger btn-ajax',
|
|
|
+ url:'basedata/del/ids/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ refresh:true,
|
|
|
+ hidden:function(row){
|
|
|
+ return row.id > 4 ? false : true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|