123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- {extend name="public/layout"/} {block name="title"}重选训练计划{/block} {block name="body"}
- <style type="text/css">
- html,
- body {
- display: block;
- background-color: #fff;
- }
- .layui-table thead tr,
- .layui-table-header {
- background-color: #D8E6F1 !important;
- }
- .layui-fluid {
- display: block;
- border-radius: 5px;
- background-color: #ffffff;
- padding: 15px 30px;
- }
- .layui-tab {
- padding: 15px;
- height: 100%;
- }
- .layui-form-item {
- width: 100%;
- }
- </style>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-body">
- <table lay-filter="checkTrainPlan" id="checkTrainPlan"></table>
- </div>
- </div>
- </div>
- {/block} {block name="js"}
- <script type="text/html" id="pattern">
- <span>{{d.pattern==0?'日期模式':'闯关模式'}}</span>
- </script>
- <script type="text/html" id="trainTime">
- <span>{{d.start_date + ' - ' + d.end_date}}</span>
- </script>
- <script type="text/html" id="customer_name">
- <span>{{d.customer.name}}</span>
- </script>
- <script>
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index'
- }).use(['index', 'table', 'layedit', 'element'], function () {
- var $ = layui.$,
- table = layui.table,
- element = layui.element,
- form = layui.form;
- var field = {};
- var root_id = '{$employee.root_id}';
- var title = '合同';
- form.on('submit(LAY-app-contlist-search)', function (data) {
- var pattern = $('.pattern').val();
- var keyword = $('.keyword').val();
- field['pattern'] = pattern;
- field['keyword'] = keyword;
- //执行重载
- table.reload('checkTrainPlan', {
- where: field,
- page: {
- curr: 1
- }
- });
- });
- table.render({
- elem: '#checkTrainPlan',
- url: "{:url('agents/agent_kehu_list')}?agentid={$agentid}&type=3",
- cols: [
- [
- {
- type: 'numbers',
- field: 'id',
- title: '序号'
- },
- {
- field: 'title',
- title: title+'人姓名',
- templet: '#customer_name'
- },
- {
- field: 'addtime',
- title: title+'时间'
- },
- ]
- ],
- page: true,
- limit: 10,
- height: 'full-60'
- });
- });
- </script>
- {/block}
|