Browse Source

字典数据根据选择下拉新增

pull/61/head
RuoYi 6 years ago
parent
commit
dc07b97cdb
  1. 8
      ruoyi-admin/src/main/resources/templates/system/dict/data/data.html

8
ruoyi-admin/src/main/resources/templates/system/dict/data/data.html

@ -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>
Loading…
Cancel
Save