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/enterprise/enterprise.html | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/templates/exam/enterprise/enterprise.html b/src/main/resources/templates/exam/enterprise/enterprise.html index 102d433..1caa235 100644 --- a/src/main/resources/templates/exam/enterprise/enterprise.html +++ b/src/main/resources/templates/exam/enterprise/enterprise.html @@ -39,13 +39,13 @@ <a class="btn btn-success" onclick="$.operate.addTab()" shiro:hasPermission="exam:enterprise:add"> <i class="fa fa-plus"></i> [[#{basis.add}]] </a> - <a class="btn single disabled" style="background-color: #7b76b7;border-color: #7b76b7;color: #FFFFFF" onclick="$.operate.editTab()" shiro:hasPermission="exam:enterprise:edit"> + <a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="exam:enterprise:edit"> <i class="fa fa-edit"></i> [[#{basis.edit}]] </a> - <a class="btn btn-info single disabled" onclick="operUseTimes()" shiro:hasPermission="exam:enterprise:editUserTimes"> + <a class="btn btn-warning single disabled" onclick="operUseTimes()" shiro:hasPermission="exam:enterprise:editUserTimes"> <i class="fa fa-edit"></i> [[#{jsp.test.number.setting}]] </a> - <a class="btn single disabled" style="background-color: #6fcef3;border-color: #6fcef3;color: #FFFFFF" onclick="resetpwd()" shiro:hasPermission="exam:enterprise:resetpwd"> + <a class="btn btn-warning single disabled" onclick="resetpwd()" shiro:hasPermission="exam:enterprise:resetpwd"> <i class="fa fa-edit"></i> [[#{menu.user.resetpwd}]] </a> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:enterprise:remove"> @@ -119,10 +119,10 @@ 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.editTab(\'' + row.userId + '\')"><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.userId + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</a> '); - actions.push('<a style="background-color: #b459d4;border-color: #b459d4;color: #FFFFFF" class="btn btn-xs ' + freeloginFlag + '" href="javascript:void(0)" onclick="freelogin(\'' + row.userId + '\')"><i class="fa fa-eye"></i>'+[[#{basis.freelogin}]]+'</a>'); - actions.push('<a style="background-color: #a87242;border-color: #a87242;color: #FFFFFF" class="btn btn-xs ' + resetpwdFlag + '" href="javascript:void(0)" onclick="authUser(\'' + row.userId + '\')"><i class="fa fa-edit"></i>'+[[#{jsp.product.package.authorization}]]+'</a> '); + actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.userId + '\')"><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.userId + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</a> '); + actions.push('<a class="btn btn-danger btn-xs ' + freeloginFlag + '" href="javascript:void(0)" onclick="freelogin(\'' + row.userId + '\')"><i class="fa fa-eye"></i>'+[[#{basis.freelogin}]]+'</a>'); + actions.push('<a class="btn btn-success btn-xs ' + resetpwdFlag + '" href="javascript:void(0)" onclick="authUser(\'' + row.userId + '\')"><i class="fa fa-edit"></i>'+[[#{jsp.product.package.authorization}]]+'</a> '); return actions.join(''); } }] -- Gitblit v1.9.1