通知
This commit is contained in:
parent
863a6621fd
commit
c0a7b7d7e8
|
|
@ -79,6 +79,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'],
|
||||||
// }
|
// }
|
||||||
return Table.api.formatter.operate.call(this, value, row, index);
|
return Table.api.formatter.operate.call(this, value, row, index);
|
||||||
},
|
},
|
||||||
|
align: 'left',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: "setArea",
|
name: "setArea",
|
||||||
|
|
@ -91,6 +92,31 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'],
|
||||||
icon: 'fa fa-add',
|
icon: 'fa fa-add',
|
||||||
refresh: true,
|
refresh: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'edit',
|
||||||
|
text: "修改",
|
||||||
|
icon: 'fa fa-pencil',
|
||||||
|
title: __('Edit'),
|
||||||
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
|
classname: 'btn btn-xs btn-info btn-editone',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'del',
|
||||||
|
text: "删除",
|
||||||
|
icon: 'fa fa-trash',
|
||||||
|
title: __('Delete'),
|
||||||
|
extend: 'data-toggle="tooltip"',
|
||||||
|
classname: 'btn btn-xs btn-danger btn-delone',
|
||||||
|
visible: function (row) {
|
||||||
|
if (row.id == Config.admin.id) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (row.id == 1 || row.id == 100) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user