1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- {extend name="public/layout" /} {block name="title"}素材库{/block}
- {block name="body"}
- <style>
- html,
- body {
- display: block;
- /*min-width: 1100px;*/
- background-color: white;
- }
- .layui-table thead tr,
- .layui-table-header {
- background-color: #D8E6F1 !important;
- }
- </style>
- <body>
- <div class="layui-fluid">
- <table id="log" lay-filter="log"></table>
- </div>
- <script type="text/html" id="employeetpl">
- {{# if(d.employee){ }}
- {{d.employee.name}}
- {{# }else{ }}
-
- {{# } }}
- </script>
- <script type="text/html" id="sawtpl">
- {{# if(d.saw == 1){ }}
- 已读
- {{# }else{ }}
- 未读
- {{# } }}
- </script>
- {/block}
- {block name="js"}
- <script>
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'table'], function () {
- var $ = layui.$,
- table = layui.table;
- table.render({
- elem: '#log',
- url: '{:url("msg/read_list")}?index='+"{$id}",
- page: true,
- height: 'full-50',
- cols: [
- [{
- type: 'numbers',
- field: 'id',
- fixed: 'left',
- title: '序号',
- }, {
- align: 'employee',
- toolbar: '#employeetpl',
- title: '接收人',
- }, {
- align: 'center',
- field: 'saw',
- title: '状态',
- toolbar: '#sawtpl',
- }]
- ],
- text: '对不起,加载出现异常!'
- });
- });
- </script>
- {/block}
|