|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="btn-group-sm hidden-xs" id="toolbar" role="group"> |
|
|
|
|
<a class="btn btn-success" th:onclick="$.operate.add([[${dict.dictType}]])" shiro:hasPermission="system:dict:add"> |
|
|
|
|
<a class="btn btn-success" onclick="add()" shiro:hasPermission="system:dict:add"> |
|
|
|
|
<i class="fa fa-plus"></i> 新增 |
|
|
|
|
</a> |
|
|
|
|
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="system:dict:edit"> |
|
|
|
@ -135,6 +135,12 @@
|
|
|
|
|
isAsc: params.order |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*字典数据-新增字典*/ |
|
|
|
|
function add() { |
|
|
|
|
var dictType = $("#dictType option:selected").val(); |
|
|
|
|
$.operate.add(dictType); |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
</body> |
|
|
|
|
</html> |