function initTable() {
tableIns = febs.table.init({
elem: $view.find('table'),
id: 'cjDataTable',
url: ctx + 'cjdata/list',
cols: [[
{type: 'checkbox'},
{title: '序号', type: 'numbers'},
{field: 'title', title: '标题', minWidth: 300},
{field: 'publishTime', title: '发布时间', sort:true,minWidth: 60},
{field: 'source', title: '来源', sort:true,minWidth: 60},//
{field: 'context', title: '文章内容', minWidth:260},
{field: 'createTime', title: '创建时间',sort:true,minWidth: 140},//
{field: 'url', title: '链接', minWidth:180},
{field: 'imgjudge',title: '操作', toolbar: '#cjData-option', minWidth: 240}//, fixed: 'right'
]]
});
}
<script type="text/html" id="cjData-option">
{{# if(d.imgjudge === 0){ }}
<a class="layui-btn layui-btn-xs" style="background-color: #1E9FFF" lay-filter="down" lay-event="download" shiro:hasPermission="cjData:download">下载图片</a>
{{# } }}
</script>