first commit
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
{extend name="../../base/view/common/base" /}
|
||||
<!-- 主体 -->
|
||||
{block name="body"}
|
||||
<style>
|
||||
.layui-table-tool-temp{padding-right:0}
|
||||
</style>
|
||||
<div class="p-page">
|
||||
<form class="layui-form gg-form-bar border-x border-t" lay-filter="barsearchform">
|
||||
<div class="layui-input-inline" style="width:300px;">
|
||||
<input type="text" class="layui-input" id="diff_time" placeholder="会议日期" readonly name="diff_time">
|
||||
</div>
|
||||
<div class="layui-input-inline" style="width:220px;">
|
||||
<input type="text" name="keywords" placeholder="会议主题" class="layui-input"/>
|
||||
</div>
|
||||
<div class="layui-input-inline" style="width:150px;">
|
||||
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="table-search"><i class="layui-icon layui-icon-search mr-1"></i>搜索</button>
|
||||
<button type="reset" class="layui-btn layui-btn-reset" lay-filter="table-reset">清空</button>
|
||||
</div>
|
||||
</form>
|
||||
<table class="layui-hide" id="test" lay-filter="test"></table>
|
||||
</div>
|
||||
<script type="text/html" id="toolbarDemo">
|
||||
<h3>会议纪要</h3>
|
||||
</script>
|
||||
{/block}
|
||||
<!-- /主体 -->
|
||||
|
||||
<!-- 脚本 -->
|
||||
{block name="script"}
|
||||
<script>
|
||||
const moduleInit = ['tool','oaPicker','laydatePlus','tablePlus'];
|
||||
function gouguInit() {
|
||||
var table = layui.tablePlus, tool = layui.tool ,form = layui.form, laydatePlus = layui.laydatePlus;
|
||||
//日期范围
|
||||
var diff_time = new laydatePlus({'target':'diff_time'});
|
||||
|
||||
layui.pageTable = table.render({
|
||||
elem: '#test',
|
||||
title: '会议纪要列表',
|
||||
toolbar: '#toolbarDemo',
|
||||
defaultToolbar: false,
|
||||
page: true, //开启分页
|
||||
limit: 20,
|
||||
height: 'full-114',
|
||||
url: "/oa/meeting/datalist", //数据接口
|
||||
cols: [
|
||||
[
|
||||
{type:'checkbox',fixed:'left'},
|
||||
{
|
||||
field: 'id',
|
||||
title: '序号',
|
||||
align: 'center',
|
||||
width: 80
|
||||
}, {
|
||||
field: 'meeting_date',
|
||||
title: '会议日期',
|
||||
align: 'center',
|
||||
width: 100
|
||||
},{
|
||||
field: 'title',
|
||||
title: '会议主题',
|
||||
minWidth:240
|
||||
},{
|
||||
field: 'did_name',
|
||||
title: '主办部门',
|
||||
align: 'center',
|
||||
width: 90
|
||||
},{
|
||||
field: 'anchor',
|
||||
title: '主持人',
|
||||
align: 'center',
|
||||
width: 90
|
||||
},{
|
||||
field: 'recorder_name',
|
||||
title: '记录人',
|
||||
align: 'center',
|
||||
width: 90
|
||||
}, {
|
||||
field: 'right',
|
||||
title: '操作',
|
||||
width: 80,
|
||||
align: 'center',
|
||||
templet: function(d){
|
||||
return '<span class="layui-btn layui-btn-xs layui-bg-blue" lay-event="view">查看</span>';
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
//监听行工具事件
|
||||
table.on('tool(test)', function(obj) {
|
||||
var data = obj.data;
|
||||
if (obj.event === 'view') {
|
||||
tool.side("/adm/meeting/records_view?id="+data.id);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
<!-- /脚本 -->
|
||||
@@ -0,0 +1,64 @@
|
||||
{extend name="../../base/view/common/base" /}
|
||||
<!-- 主体 -->
|
||||
{block name="body"}
|
||||
<form class="layui-form p-4">
|
||||
<h3 class="pb-3">会议纪要</h3>
|
||||
<table class="layui-table layui-table-form">
|
||||
<tr>
|
||||
<td class="layui-td-gray">会议时间</td>
|
||||
<td>{$detail.meeting_date|date='Y-m-d H:i:s'}</td>
|
||||
<td class="layui-td-gray">主持人</td>
|
||||
<td>{$detail.anchor_name}</td>
|
||||
<td class="layui-td-gray">记录人</td>
|
||||
<td>{$detail.recorder_name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray">会 议 室</td>
|
||||
<td colspan="3">{$detail.room}</td>
|
||||
<td class="layui-td-gray">主办部门</td>
|
||||
<td>{$detail.did_name|default=""}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray">参会人员</td>
|
||||
<td colspan="5">{$detail.join_names}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray">会议主题</td>
|
||||
<td colspan="5">{$detail.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray" style="vertical-align:top;">会议内容</td>
|
||||
<td colspan="5">{$detail.content}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray-2" style="vertical-align:top;">下一步<br>工作计划</td>
|
||||
<td colspan="5">{$detail.plans}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray">参会人员签字</td>
|
||||
<td colspan="5">{$detail.sign_names}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray">共享给谁</td>
|
||||
<td colspan="5">{$detail.share_names}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray" style="vertical-align:top;">备注信息</td>
|
||||
<td colspan="5">{$detail.remarks|default=''}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
<!-- /主体 -->
|
||||
|
||||
<!-- 脚本 -->
|
||||
{block name="script"}
|
||||
<script>
|
||||
const moduleInit = ['tool'];
|
||||
function gouguInit() {
|
||||
var form = layui.form,tool=layui.tool;
|
||||
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
<!-- /脚本 -->
|
||||
Reference in New Issue
Block a user