From 93af1c6ffb9ae0e894689ad3a37b548e57d54cff Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期四, 11 三月 2021 19:10:07 +0800 Subject: [PATCH] 有注释的测评系统业务代码 --- src/main/resources/templates/system/dict/data/data.html | 27 ++++++++++++--------------- 1 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/main/resources/templates/system/dict/data/data.html b/src/main/resources/templates/system/dict/data/data.html index beb8834..1bb26be 100644 --- a/src/main/resources/templates/system/dict/data/data.html +++ b/src/main/resources/templates/system/dict/data/data.html @@ -37,15 +37,13 @@ <a class="btn btn-success" onclick="add()" shiro:hasPermission="system:dict:add"> <i class="fa fa-plus"></i>[[#{basis.add}]] </a> - <a style="background-color: #7b76b7;border-color: #7b76b7;color: #FFFFFF" - class="btn single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:dict:edit"> + <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:dict:edit"> <i class="fa fa-edit"></i> [[#{basis.edit}]] </a> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:dict:remove"> <i class="fa fa-remove"></i> [[#{basis.del}]] </a> - <a style="background-color: #a87242;border-color: #a87242;color: #FFFFFF" - class="btn" onclick="$.table.exportExcel()" shiro:hasPermission="system:dict:export"> + <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:dict:export"> <i class="fa fa-download"></i> [[#{basis.export}]] </a> </div> @@ -109,17 +107,16 @@ title: [[#{basis.createTime}]], sortable: true }, - // { - // title: [[#{basis.operate}]], - // 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.dictCode + '\')"><i class="fa fa-edit"></i>'+[[#{basis.edit}]]+'</a> '); - // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.dictCode + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</a>'); - // return actions.join(''); - // } - // } - ] + { + title: [[#{basis.operate}]], + 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.dictCode + '\')"><i class="fa fa-edit"></i>'+[[#{basis.edit}]]+'</a> '); + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.dictCode + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</a>'); + return actions.join(''); + } + }] }; $.table.init(options); }); -- Gitblit v1.9.1