| | |
| | | <input type="checkbox" lay-filter="product-tpl-state" value="{{d.id}}" lay-skin="switch" lay-text="未处理|已处理" |
| | | {{d.enabled==true?'checked':''}}/> |
| | | </script> |
| | | <!-- 弹窗内容 --> |
| | | <script type="text/html" id="feedback-detail"> |
| | | |
| | | </script> |
| | | |
| | | <script> |
| | | layui.use(['table', 'util', 'admin', 'config', 'form'], function () { |
| | |
| | | |
| | | // 渲染表格 |
| | | var renderTable = function () { |
| | | layer.load(2); |
| | | table.render({ |
| | | elem: '#product-table', |
| | | url: config.base_server + 'api-opration/product', |
| | |
| | | { field: 'enabled', width: 150, templet: '#product-tpl-state', sort: true, title: '状态' }, |
| | | { field: 'createTime', width: 200, sort: true, title: '创建时间' }, |
| | | { align: 'center', width: 100, toolbar: '#product-table-bar', title: '操作' } |
| | | ]], |
| | | done: function () { |
| | | layer.closeAll('loading'); |
| | | } |
| | | ]] |
| | | }); |
| | | } |
| | | renderTable(); |