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/exam/demographyParam/demographyParam.html | 27 ++++++++++++--------------- 1 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/main/resources/templates/exam/demographyParam/demographyParam.html b/src/main/resources/templates/exam/demographyParam/demographyParam.html index cd5a0b3..17b6110 100644 --- a/src/main/resources/templates/exam/demographyParam/demographyParam.html +++ b/src/main/resources/templates/exam/demographyParam/demographyParam.html @@ -45,15 +45,13 @@ <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:demographyParam: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="exam:demographyParam:edit"> + <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:demographyParam:edit"> <i class="fa fa-edit"></i> [[#{basis.edit}]] </a> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:demographyParam: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="exam:demographyParam:export"> + <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:demographyParam:export"> <i class="fa fa-download"></i> [[#{basis.export}]] </a> </div> @@ -147,17 +145,16 @@ field : 'remark', title : [[#{basis.remark}]] }, - // { - // 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.paramId + '\')"><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.paramId + '\')"><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.paramId + '\')"><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.paramId + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</a>'); + return actions.join(''); + } + }] }; $.table.init(options); }); -- Gitblit v1.9.1