作者 王智

RSA1

... ... @@ -10,6 +10,8 @@
class="fa fa-refresh"></i> </a>
<!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('cards/add')?'':'hide'}"-->
<!--title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>-->
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('cards/uploadmoban')?'':'hide'}"
title="下载导入模板"><i class="fa fa-plus"></i> 下载导入模板</a>
<!--<a href="javascript:;"-->
<!--class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('cards/edit')?'':'hide'}"-->
<!--title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
... ...
... ... @@ -37,28 +37,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
operate: 'RANGE',
addclass: 'datetimerange',
formatter: Table.api.formatter.datetime
},
{
// field: 'operate',
// title: __('Operate'),
// table: table,
// events: Table.api.events.operate,
// formatter: Table.api.formatter.operate
buttons: [
{
name: 'moban',
text: __('下载导入模板'),
title: __('下载导入模板'),
classname: 'btn btn-xs btn-primary btn-dialog',
icon: 'fa fa-angellist',
url: 'Cards/uploadmoban',
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
}
]
}
]
]
... ...