|
@@ -19,7 +19,7 @@
|
|
|
|
|
|
|
|
|
<li>
|
|
|
- <p>供应信息标题:</p>
|
|
|
+ <p>供应标题:</p>
|
|
|
<input type="text" name="supplyTitle"/>
|
|
|
</li>
|
|
|
<li>
|
|
@@ -41,7 +41,7 @@
|
|
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endReleaseTime]"/>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <p>供应信息状态:</p>
|
|
|
+ <p>供应状态:</p>
|
|
|
<select name="status">
|
|
|
<option value="">所有</option>
|
|
|
<option value="0">征集中</option>
|
|
@@ -58,16 +58,16 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:supply:add">
|
|
|
+ <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="notice:supply:add">
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
</a>
|
|
|
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:supply:edit">
|
|
|
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="notice:supply:edit">
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
</a>
|
|
|
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:supply:remove">
|
|
|
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="notice:supply:remove">
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
</a>
|
|
|
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:supply:export">
|
|
|
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="notice:supply:export">
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
</a>
|
|
|
</div>
|
|
@@ -79,9 +79,9 @@
|
|
|
<th:block th:include="include :: footer" />
|
|
|
<script th:inline="javascript">
|
|
|
var conductStatus = [[${@dict.getType('conduct_status')}]];
|
|
|
- var editFlag = [[${@permission.hasPermi('system:supply:edit')}]];
|
|
|
- var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
|
|
|
- var removeFlag = [[${@permission.hasPermi('system:supply:remove')}]];
|
|
|
+ var editFlag = [[${@permission.hasPermi('notice:supply:edit')}]];
|
|
|
+ //var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
|
|
|
+ var removeFlag = [[${@permission.hasPermi('notice:supply:remove')}]];
|
|
|
var prefix = ctx + "notice/supply";
|
|
|
|
|
|
$(function() {
|
|
@@ -111,12 +111,12 @@
|
|
|
// },
|
|
|
{
|
|
|
field : 'supplyTitle',
|
|
|
- title : '供应信息标题'
|
|
|
+ title : '供应标题'
|
|
|
},
|
|
|
- {
|
|
|
+ /* {
|
|
|
field : 'supplyDetails',
|
|
|
title : '供应信息详情'
|
|
|
- },
|
|
|
+ },*/
|
|
|
{
|
|
|
field : 'manufacturer',
|
|
|
title : '生产厂家'
|
|
@@ -131,30 +131,33 @@
|
|
|
},
|
|
|
{
|
|
|
field : 'releaseTime',
|
|
|
- title : '发布时间'
|
|
|
+ title : '发布时间',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ return value.split(' ')[0];
|
|
|
+ }
|
|
|
},
|
|
|
- {
|
|
|
- field : 'picture',
|
|
|
+ /* {
|
|
|
+ field : 'picture',
|
|
|
title : '商品图片'
|
|
|
- },
|
|
|
+ },*/
|
|
|
{
|
|
|
field : 'status',
|
|
|
- title : '供应信息状态',
|
|
|
+ title : '供应状态',
|
|
|
formatter: function(value, row, index) {
|
|
|
return $.table.selectDictLabel(conductStatus, value);
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- field : 'remark',
|
|
|
+ /* {
|
|
|
+ field : 'remark',
|
|
|
title : '备注'
|
|
|
- },
|
|
|
+ },*/
|
|
|
{
|
|
|
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 ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-edit"></i>查看</a> ');
|
|
|
+ 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.detail(\'' + row.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
return actions.join('');
|
|
|
}
|
|
@@ -162,6 +165,8 @@
|
|
|
};
|
|
|
$.table.init(options);
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|