|
@@ -142,22 +142,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
title: '编辑',
|
|
|
classname: 'btn btn-success btn-xs btn-magic btn-dialog',
|
|
|
url: 'department/admin/edit',
|
|
|
- },{
|
|
|
- name: 'dispatch',
|
|
|
- text: '删除',
|
|
|
- icon: 'fa fa-trash',
|
|
|
- title: '删除',
|
|
|
- classname: 'btn btn-danger btn-xs btn-magic btn-ajax',
|
|
|
- url: 'department/admin/del',
|
|
|
- confirm: '确定要删除吗?',
|
|
|
- success: function (data, ret) {
|
|
|
- $(".btn-refresh").trigger("click");
|
|
|
- },
|
|
|
- error: function (data, ret) {
|
|
|
- Layer.alert(ret.msg);
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // name: 'dispatch',
|
|
|
+ // text: '删除',
|
|
|
+ // icon: 'fa fa-trash',
|
|
|
+ // title: '删除',
|
|
|
+ // classname: 'btn btn-danger btn-xs btn-magic btn-ajax',
|
|
|
+ // url: 'department/admin/del',
|
|
|
+ // confirm: '确定要删除吗?',
|
|
|
+ // success: function (data, ret) {
|
|
|
+ // $(".btn-refresh").trigger("click");
|
|
|
+ // },
|
|
|
+ // error: function (data, ret) {
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
],
|
|
|
// formatter: function (value, row, index) {
|
|
|
// return Table.api.formatter.operate.call(this, value, row, index);
|