ript type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="batchGen" sa:hasPermission="sysGenerator:add">批量生成</button>
    </div>
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-xs" lay-event="gen" sa:hasPermission="sysGenerator:add">生成</a>
</script>

</body>
</html>

<script>
    layui.use(function () {
        var table = layui.table;
        var form = layui.form;
        var layer = layui