173 lines
6.5 KiB
HTML
173 lines
6.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
<head>
|
|
<th:block th:include="include :: header('抽奖活动管理列表')" />
|
|
</head>
|
|
<body class="gray-bg">
|
|
<div class="container-div">
|
|
<div class="row">
|
|
<div class="col-sm-12 search-collapse">
|
|
<form id="formId">
|
|
<div class="select-list">
|
|
<ul>
|
|
<li>
|
|
<p>活动编码:</p>
|
|
<input type="text" name="DRAWCODE"/>
|
|
</li>
|
|
<li>
|
|
<p>活动名称:</p>
|
|
<input type="text" name="DRAWNAME"/>
|
|
</li>
|
|
<li>
|
|
<p>状态:</p>
|
|
<select name="STATUS" th:with="type=${@dict.getType('start_stop')}">
|
|
<option value="">所有</option>
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
</select>
|
|
</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>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
<a class="btn btn-success" onclick="$.operate.addFull()" shiro:hasPermission="activity:info:add">
|
|
<i class="fa fa-plus"></i> 添加
|
|
</a>
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.editFull()" shiro:hasPermission="activity:info:edit">
|
|
<i class="fa fa-edit"></i> 修改
|
|
</a>
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:info:remove">
|
|
<i class="fa fa-remove"></i> 删除
|
|
</a>
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="activity:info:export">
|
|
<i class="fa fa-download"></i> 导出
|
|
</a>
|
|
</div>
|
|
<div class="col-sm-12 select-table table-striped">
|
|
<table id="bootstrap-table"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<script th:inline="javascript">
|
|
var editFlag = [[${@permission.hasPermi('system:info:edit')}]];
|
|
var removeFlag = [[${@permission.hasPermi('system:info:remove')}]];
|
|
var statustype = [[${@dict.getType('start_stop')}]];
|
|
var expeType = [[${@dict.getType('expeType')}]];
|
|
var prefix = ctx + "activity/info";
|
|
|
|
$(function() {
|
|
var options = {
|
|
url: prefix + "/list",
|
|
createUrl: prefix + "/add",
|
|
updateUrl: prefix + "/edit/{id}",
|
|
removeUrl: prefix + "/remove",
|
|
exportUrl: prefix + "/export",
|
|
modalName: "抽奖活动管理",
|
|
columns: [{
|
|
checkbox: true
|
|
},
|
|
{
|
|
field: 'drawid',
|
|
title: 'id',
|
|
visible: false
|
|
},
|
|
|
|
{
|
|
field: 'drawtype',
|
|
title: '活动类型',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'drawname',
|
|
title: '活动名称'
|
|
},
|
|
{
|
|
field: 'drawcode',
|
|
title: '活动编码',
|
|
},
|
|
{
|
|
field: 'expeno',
|
|
title: '消耗对象',
|
|
formatter: function (value, row, index) {
|
|
return $.table.selectDictLabel(expeType, value);
|
|
}
|
|
},
|
|
{
|
|
field: 'status',
|
|
title: '状态',
|
|
formatter: function (value, row, index) {
|
|
return $.table.selectDictLabel(statustype, value);
|
|
}
|
|
|
|
},
|
|
{
|
|
field: 'STARTTIME',
|
|
title: '开始时间'
|
|
},
|
|
{
|
|
field: 'ENDTIME',
|
|
title: '结束时间'
|
|
},
|
|
|
|
{
|
|
field: 'expenovalue',
|
|
title: '消耗价值'
|
|
},
|
|
{
|
|
field: 'comments',
|
|
title: '备注',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'createtimestamp',
|
|
title: '创建时间'
|
|
},
|
|
{
|
|
field: 'lastupdatetimestamp',
|
|
title: '更新时间',
|
|
visible: false
|
|
},
|
|
|
|
{
|
|
field: 'updateflag',
|
|
title: '是否需要更新缓存',
|
|
visible: false
|
|
|
|
},
|
|
{
|
|
field: 'ruledescription',
|
|
title: '规则描述',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'validatetype',
|
|
title: '校验类型',
|
|
visible: false
|
|
},
|
|
{
|
|
title: '操作',
|
|
align: 'center',
|
|
formatter: function(value, row, index) {
|
|
var actions = [];
|
|
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick=" prizeDetail(\''+row.drawcode+'\',\''+row.drawname+'\')"><i class="fa fa-edit"></i>奖项维护</a> ');
|
|
return actions.join('');
|
|
}
|
|
}]
|
|
};
|
|
$.table.init(options);
|
|
});
|
|
function prizeDetail(drawcode,drawname) {
|
|
DRAWCODE = (drawcode.length) >0 ?drawcode :null;
|
|
DRAWNAME = (drawname.length) >0? drawname :null;
|
|
var url = prefix +'/prizeDetail/' + DRAWCODE +"/" + encodeURIComponent(encodeURIComponent(DRAWNAME));;
|
|
$.modal.openInFoFull("奖项维护", url)
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |