|
@@ -2,6 +2,8 @@
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
<head>
|
|
|
<th:block th:include="include :: header('企业微信发送消息历史记录列表')" />
|
|
|
+ <th:block th:include="include :: datetimepicker-css" />
|
|
|
+
|
|
|
</head>
|
|
|
<body class="gray-bg">
|
|
|
<div class="container-div">
|
|
@@ -11,16 +13,18 @@
|
|
|
<div class="select-list">
|
|
|
<ul>
|
|
|
<li>
|
|
|
- <p>是否发送成功:</p>
|
|
|
- <input type="text" name="isSuccess"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <p>类型:</p>
|
|
|
- <select name="type" th:with="type=${@dict.getType('')}">
|
|
|
+ <p>是否成功:</p>
|
|
|
+ <select name="isSuccess" th:with="type=${@dict.getType('sys_success')}">
|
|
|
<option value="">所有</option>
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
</select>
|
|
|
</li>
|
|
|
+ <li class="select-time">
|
|
|
+ <label>创建时间: </label>
|
|
|
+ <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
|
|
+ <span>-</span>
|
|
|
+ <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
|
|
+ </li>
|
|
|
<li>
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
@@ -39,10 +43,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<th:block th:include="include :: footer" />
|
|
|
+ <th:block th:include="include :: datetimepicker-js" />
|
|
|
<script th:inline="javascript">
|
|
|
- var editFlag = [[${@permission.hasPermi('wxportal:wxmessage:edit')}]];
|
|
|
+
|
|
|
+ var successDict = [[${@dict.getType('sys_success')}]];//销售人员等级
|
|
|
var prefix = ctx + "wxmessage";
|
|
|
|
|
|
+
|
|
|
$(function() {
|
|
|
var options = {
|
|
|
url: prefix + "/list",
|
|
@@ -65,7 +72,10 @@
|
|
|
},
|
|
|
{
|
|
|
field : 'isSuccess',
|
|
|
- title : '是否发送成功'
|
|
|
+ title : '是否发送成功',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ return $.table.selectDictLabel(successDict, value);
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field : 'sendText',
|
|
@@ -73,19 +83,30 @@
|
|
|
},
|
|
|
{
|
|
|
field : 'type',
|
|
|
- title : '类型'
|
|
|
+ title : '类型',
|
|
|
+ visible:false
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|
|
|
formatter: function(value, row, index) {
|
|
|
var actions = [];
|
|
|
- actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>查看</a> ');
|
|
|
+ actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>查看</a> ');
|
|
|
return actions.join('');
|
|
|
}
|
|
|
}]
|
|
|
};
|
|
|
$.table.init(options);
|
|
|
+
|
|
|
+ $('#date').datetimepicker({
|
|
|
+ forceParse: 0,//设置为0,时间不会跳转1899,会显示当前时间。
|
|
|
+ language: 'zh-CN',//显示中文
|
|
|
+ format: 'yyyy-mm-dd',//显示格式
|
|
|
+ minView: "month",//设置只显示到月份
|
|
|
+ initialDate: new Date(),//初始化当前日期
|
|
|
+ autoclose: true,//选中自动关闭
|
|
|
+ todayBtn: true//显示今日按钮
|
|
|
+ })
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|