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/test_package/test_package.html | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/main/resources/templates/exam/test_package/test_package.html b/src/main/resources/templates/exam/test_package/test_package.html
index 682f0eb..9e6b883 100644
--- a/src/main/resources/templates/exam/test_package/test_package.html
+++ b/src/main/resources/templates/exam/test_package/test_package.html
@@ -77,8 +77,7 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:test_package:add">
<i class="fa fa-plus"></i> [[#{basis.create}]]
</a>
- <a style="background-color: #7b76b7;border-color: #7b76b7;color: #FFFFFF"
- class="btn single disabled" onclick="$.operate.edit()"
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()"
shiro:hasPermission="exam:test_package:edit">
<i class="fa fa-edit"></i> [[#{basis.edit}]]
</a>
@@ -86,16 +85,13 @@
shiro:hasPermission="exam:test_package: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:test_package:export">
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:test_package:export">
<i class="fa fa-download"></i> [[#{basis.export}]]
</a>
- <a style="background-color: #6fcef3;border-color: #6fcef3;color: #FFFFFF"
- class="btn" onclick="javascript:recover()" shiro:hasPermission="exam:test_package:recover">
+ <a class="btn btn-default" onclick="javascript:recover()" shiro:hasPermission="exam:test_package:recover">
<i class="fa fa-address-book"></i> [[#{jsp.exam.test_package.006}]]
</a>
- <a style="background-color: #7b76b7;border-color: #7b76b7;color: #FFFFFF"
- class="btn" onclick="javascript:testReport()" shiro:hasPermission="exam:test_package:testreport">
+ <a class="btn btn-warning" onclick="javascript:testReport()" shiro:hasPermission="exam:test_package:testreport">
<i class="fa fa-download"></i> [[#{jsp.exam.test_package.007}]]
</a>
</div>
@@ -239,8 +235,8 @@
align: 'center',
formatter: function (value, row, index) {
var actions = [];
- // actions.push('<a class="btn btn-info btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>'+[[#{basis.del}]]+'</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>'+[[#{basis.edit}]]+'</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>'+[[#{basis.del}]]+'</a>');
return actions.join('');
}
}]
--
Gitblit v1.9.1