<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('签署文件列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>

                        <li>
                            <p>签署人：</p>
                            <input type="text" name="signerName"/>
                        </li>
                        <li>
                            <p>签署企业：</p>
                            <input type="text" name="chainsName"/>
                        </li>
                        <li>
                            <p>签署类型：</p>
                            <select name="types" th:with="type=${@dict.getType('wx_tms_self')}">
                                <option value="">所有</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </li>
                        <li>
                            <p>授权委托类型：</p>
                            <select name="authType" th:with="type=${@dict.getType('wx_empower_authType')}">
                                <option value="">所有</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </li>

                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">

        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:file:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:file:remove')}]];
    var prefix = ctx + "system/orderFile";

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "签署文件列表",
            columns: [{
                checkbox: true
            },
                {
                    field : 'orderId',
                    title : '订单id'
                },
                {
                    field : 'chainsName',
                    title : '签署企业'
                },
                {
                    field : 'signerName',
                    title : '签署人名称'
                },
            /*    {
                    field : 'types',
                    title : '签署类型'
                },*/
                {
                    field : 'createTime',
                    title : '签署时间'
                },
                {
                    field : 'flowId',
                    title : '签署流程id'
                },
                {
                    field : 'fileUrl',
                    title : '操作',
                    formatter : function (value,row,index) {
                        return '<a class="btn btn-success btn-xs" href='+ctx+value+' target="_blank"><i class="fa fa-download"></i>查看</a>';
                    }
                }
                /*,
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.orderId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }*/
                ]
        };
        $.table.init(options);
    });


    
</script>
</body>
</html>