|
@@ -51,15 +51,15 @@
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:configuration:add">
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
</a>
|
|
|
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:configuration:edit">
|
|
|
- <i class="fa fa-edit"></i> 修改
|
|
|
- </a>
|
|
|
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:configuration:remove">
|
|
|
- <i class="fa fa-remove"></i> 删除
|
|
|
- </a>
|
|
|
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:configuration:export">
|
|
|
- <i class="fa fa-download"></i> 导出
|
|
|
- </a>
|
|
|
+ <!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:configuration:edit">-->
|
|
|
+ <!--<i class="fa fa-edit"></i> 修改-->
|
|
|
+ <!--</a>-->
|
|
|
+ <!--<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:configuration:remove">-->
|
|
|
+ <!--<i class="fa fa-remove"></i> 删除-->
|
|
|
+ <!--</a>-->
|
|
|
+ <!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:configuration:export">-->
|
|
|
+ <!--<i class="fa fa-download"></i> 导出-->
|
|
|
+ <!--</a>-->
|
|
|
</div>
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
<table id="bootstrap-table"></table>
|
|
@@ -89,23 +89,27 @@
|
|
|
{
|
|
|
field : 'alertContent',
|
|
|
title : '弹框内容',
|
|
|
- width : '300px',
|
|
|
+ width : '200px',
|
|
|
formatter: function(value, row, index) {
|
|
|
return $.table.tooltip(value);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
field : 'alertStartTime',
|
|
|
- title : '弹框开始时间'
|
|
|
+ title : '开始时间'
|
|
|
},
|
|
|
{
|
|
|
field : 'alertEndTime',
|
|
|
- title : '弹框结束时间'
|
|
|
+ title : '结束时间'
|
|
|
},
|
|
|
{
|
|
|
field : 'alertNum',
|
|
|
- title : '弹框每日可弹次数'
|
|
|
+ title : '次数'
|
|
|
},
|
|
|
+ {
|
|
|
+ field : 'salesLevel',
|
|
|
+ title : '通知部门'
|
|
|
+ },
|
|
|
{
|
|
|
field : 'userType',
|
|
|
title : '用户类型',
|
|
@@ -134,8 +138,12 @@
|
|
|
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.alertId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
- actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.alertId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
+ if (row.alertStatus == 0) {
|
|
|
+ actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.alertId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
+ } else {
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.alertId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
+ actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.alertId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
+ }
|
|
|
return actions.join('');
|
|
|
}
|
|
|
}]
|