??? 不同的用戶針對(duì)同一個(gè)功能點(diǎn)的操作權(quán)限是不一樣的,為了區(qū)分不同用戶對(duì)同一功能點(diǎn)的操作權(quán)限,提出此方案。
??? 系統(tǒng)設(shè)計(jì)時(shí),操作目標(biāo)的粒度定義為模塊,而控制權(quán)限的類別分為常見(jiàn)的:增,刪,查改,改等權(quán)限。
??? 解決方案:根據(jù)用戶的角色以及當(dāng)前模塊,從數(shù)據(jù)庫(kù)中查出對(duì)應(yīng)操作權(quán)限(PARTER_OPERATION_ROLE_TABLET和OPERATION_TABLE)。把operations存入SESSION中,在jsp中進(jìn)行應(yīng)用。
??
???
?<c:forEach?var="operation"items="${operations}">
?????<c:if?test="${operation.operationId=='1'}"><INPUT?type="button"?value='添?加'??onclick="add();"/?class="SUBbutton"></c:if>
?????<c:if?test="${operation.operationId=='5'}"> <input?type="button"?value="批量刪除審核未通過(guò)"?name="button1"?onClick="batchdelete();"/?class="SUBbutton"></c:if>
?????<c:if?test="${operation.operationId=='6'}"> <input?type="submit"?value="保存排序值"?name="button2"?class="SUBbutton"/></c:if>
???</c:forEach>