活动管理-活动次数记录列表修改

This commit is contained in:
dy 2021-03-31 11:51:32 +08:00
parent 84699a9412
commit bc954dbea1
1 changed files with 154 additions and 137 deletions

View File

@ -1,151 +1,167 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head> <head>
<th:block th:include="include :: header('活动次数记录信息列表')" /> <th:block th:include="include :: header('活动次数记录信息列表')"/>
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
<div class="row"> <div class="row">
<div class="col-sm-12 search-collapse"> <div class="col-sm-12 search-collapse">
<form id="formId"> <form id="formId">
<div class="select-list"> <div class="select-list">
<ul> <ul>
<li> <li>
<label>活动代码:</label> <label>活动代码:</label>
<input type="text" name="DRAWCODE"/> <select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
</li> <option value="">所有</option>
<li> <option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
<label>任务流水:</label> th:value="${drawInfo.DRAWCODE}"></option>
<input type="text" name="TASKID"/> </select>
</li> </li>
<li>
<label>任务流水:</label>
<input type="text" name="TASKID"/>
</li>
<!-- <li>--> <!-- <li>-->
<!-- <label>可用次数:</label>--> <!-- <label>可用次数:</label>-->
<!-- <input type="text" name="AVAILABLENUMBER"/>--> <!-- <input type="text" name="AVAILABLENUMBER"/>-->
<!-- </li>--> <!-- </li>-->
<li> <!-- <li>-->
<label>手机号:</label> <!-- <label>手机号:</label>-->
<input type="text" name="PHONE"/> <!-- <input type="text" name="PHONE"/>-->
</li> <!-- </li>-->
<!-- <li>--> <!-- <li>-->
<!-- <label>身份认证状态:</label>--> <!-- <label>身份认证状态:</label>-->
<!-- <input type="text" name="VSTATE"/>--> <!-- <input type="text" name="VSTATE"/>-->
<!-- </li>--> <!-- </li>-->
<li> <!-- <li>-->
<label>用户等级:</label> <!-- <label>用户等级:</label>-->
<input type="text" name="ULEVEL"/> <!-- <input type="text" name="ULEVEL"/>-->
</li> <!-- </li>-->
<li> <!-- <li>-->
<label>次数类型:</label> <!-- <label>次数类型:</label>-->
<select name="TYPE" th:with="type=${@dict.getType('drawType')}" style="width: 80px"> <!-- <select name="TYPE" th:with="type=${@dict.getType('drawType')}" style="width: 80px">-->
<option value="">所有</option> <!-- <option value="">所有</option>-->
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
</select> <!-- </select>-->
</li> <!-- </li>-->
<!-- <li>--> <!-- <li>-->
<!-- <label>赠送次数:</label>--> <!-- <label>赠送次数:</label>-->
<!-- <input type="text" name="ADDNUMBER"/>--> <!-- <input type="text" name="ADDNUMBER"/>-->
<!-- </li>--> <!-- </li>-->
<li> <li>
<label>状态:</label> <label>状态:</label>
<select name="STATE" th:with="type=${@dict.getType('status')}" style="width: 80px"> <select name="STATE" th:with="type=${@dict.getType('status')}" style="width: 80px">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
</select> th:value="${dict.dictValue}"></option>
</li> </select>
<!-- <li>--> </li>
<!-- <label>请求来源:</label>--> <!-- <li>-->
<!-- <input type="text" name="SOURCE"/>--> <!-- <label>请求来源:</label>-->
<!-- </li>--> <!-- <input type="text" name="SOURCE"/>-->
<!-- <li>--> <!-- </li>-->
<!-- <label>是否白名单:</label>--> <!-- <li>-->
<!-- <input type="text" name="ISSPECIALFLAG"/>--> <!-- <label>是否白名单:</label>-->
<!-- </li>--> <!-- <input type="text" name="ISSPECIALFLAG"/>-->
<li> <!-- </li>-->
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> <li>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
</li> class="fa fa-search"></i>&nbsp;搜索</a>
</ul> <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
</div> class="fa fa-refresh"></i>&nbsp;重置</a>
</form> </li>
</div> </ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group"> <div class="btn-group-sm" id="toolbar" role="group">
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="activity:DrawTaskNotify:add">--> <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="activity:DrawTaskNotify:add">-->
<!-- <i class="fa fa-plus"></i> 添加--> <!-- <i class="fa fa-plus"></i> 添加-->
<!-- </a>--> <!-- </a>-->
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="activity:DrawTaskNotify:edit">--> <!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="activity:DrawTaskNotify:edit">-->
<!-- <i class="fa fa-edit"></i> 修改--> <!-- <i class="fa fa-edit"></i> 修改-->
<!-- </a>--> <!-- </a>-->
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:DrawTaskNotify:remove">--> <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:DrawTaskNotify:remove">-->
<!-- <i class="fa fa-remove"></i> 删除--> <!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>--> <!-- </a>-->
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="activity:DrawTaskNotify:export"> <a class="btn btn-warning" onclick="$.table.exportExcel()"
<i class="fa fa-download"></i> 导出 shiro:hasPermission="activity:DrawTaskNotify:export">
</a> <i class="fa fa-download"></i> 导出
</div> </a>
<div class="col-sm-12 select-table table-striped"> </div>
<table id="bootstrap-table"></table> <div class="col-sm-12 select-table table-striped">
</div> <table id="bootstrap-table"></table>
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> </div>
<script th:inline="javascript"> <th:block th:include="include :: footer"/>
var editFlag = [[${@permission.hasPermi('activity:DrawTaskNotify:edit')}]]; <script th:inline="javascript">
var removeFlag = [[${@permission.hasPermi('activity:DrawTaskNotify:remove')}]]; var editFlag = [[${@permission.hasPermi('activity:DrawTaskNotify:edit')}]];
var STATEDatas = [[${@dict.getType('status')}]]; var removeFlag = [[${@permission.hasPermi('activity:DrawTaskNotify:remove')}]];
var prefix = ctx + "activity/DrawTaskNotify"; var STATEDatas = [[${@dict.getType('status')}]];
var drawTypes = [[${@dict.getType('drawType')}]]; var prefix = ctx + "activity/DrawTaskNotify";
var drawTypes = [[${@dict.getType('drawType')}]];
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
$(function() { $(function () {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
createUrl: prefix + "/add", createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "活动次数记录信息", modalName: "活动次数记录信息",
columns: [{ columns: [{
checkbox: true checkbox: true
}, },
// {
// field: 'tasknotifyid',
// title: '业务主键'
// },
{ {
field: 'drawcode', field: 'tasknotifyid',
title: '活动代码' title: '业务主键',
},
{
field: 'taskid',
title: '任务流水'
},
{
field: 'userid',
title: '用户标识',
visible: false visible: false
}, },
{ {
field: 'type', field: 'userid',
title: '赠送次数类型', title: '用户标识'
formatter: function(value, row, index) { },
return $.table.selectDictLabel(drawTypes, value); {
field: 'drawcode',
title: '活动代码',
formatter: function (value, row, index) {
return $.table.selectDrawname(drawInfoList, value);
} }
}, },
{ {
field: 'addnumber', field: 'addnumber',
title: '赠送次数' title: '赠送次数'
}, },
{
field: 'availablenumber',
title: '可用次数'
},
{ {
field: 'state', field: 'state',
title: '状态', title: '状态',
formatter: function(value, row, index) { formatter: function (value, row, index) {
return $.table.selectDictLabel(STATEDatas, value); return $.table.selectDictLabel(STATEDatas, value);
} }
}, },
{ {
field: 'availablenumber', field: 'type',
title: '可用次数' title: '赠送次数类型',
formatter: function (value, row, index) {
return $.table.selectDictLabel(drawTypes, value);
}
},
{
field: 'taskid',
title: '任务流水'
},
{
field: 'tasktype',
title: '请求类型'
}, },
{ {
field: 'checkingdate', field: 'checkingdate',
@ -154,28 +170,29 @@
}, },
{ {
field: 'phone', field: 'phone',
title: '手机号' title: '手机号',
visible: false
}, },
{ {
field: 'tasktype', field: 'vstate',
title: '请求类型', title: '身份认证状态',
visible: false visible: false
}, },
{
field: 'vstate',
title: '身份认证状态'
},
{ {
field: 'ulevel', field: 'ulevel',
title: '用户等级' title: '用户等级',
visible: false
}, },
{ {
field: 'source', field: 'source',
title: '请求来源' title: '请求来源',
visible: false
}, },
{ {
field: 'isspecialflag', field: 'isspecialflag',
title: '是否白名单' title: '是否白名单',
visible: false
}, },
{ {
field: 'requestflag', field: 'requestflag',
@ -192,10 +209,10 @@
// return actions.join(''); // return actions.join('');
// } // }
// } // }
] ]
}; };
$.table.init(options); $.table.init(options);
}); });
</script> </script>
</body> </body>
</html> </html>