<div class="panel-content">
    <div class="panel-title fluid">
        <div class="title-main">
            <h2>工具</h2>
        </div>
    </div>
    <div class="content-wrap">
        <div class="row">
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>清单规则编辑器
                        <a id="billsLib" href="javascript:void(0);" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>定额编辑器
                        <a id="rationLib" href="javascript:void(0);" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>报表模板
                        <a id="rptTemplate" href="javascript:void(0);" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>人材机库
                        <a id="gljLib" href="javascript:void(0);" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>清单指引编辑器
                        <a id="billsGuidanceLib" href="javascript:void(0);" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>清除项目残留数据
                        <a id="clearJunkBtn" href="javascript:void(0);" class="btn btn-primary pull-right">清除</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>清单模板编辑器
                        <a id="billTemplate" href="/billsTemplate/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>列设置
                        <a id="mainTreeCol" href="/mainTreeCol/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>材料替换库
                        <a id="materialReplace" href="/materialReplace/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>工程特征库
                        <a id="projectFeature" href="/projectFeature/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>费率标准库
                        <a id="feeRate" href="/feeRate/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
            <div class="col-xs-6 mb-30 ">
                <div class="c-body">
                    <h2>计算程序模板库
                        <a id="calcProgram" href="/calcProgram/main" target="_blank" class="btn btn-primary pull-right">进入</a>
                    </h2>
                </div>
            </div>
        </div>
    </div>
</div>
<!--弹出 是否清除数据-->
<div class="modal fade" id="clearJunkModal" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">删除确认</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <div id="delete_showinfo">
                        <label>确认要清除数据库中项目残留数据吗？(每周日03:30自动清除)</label>
                    </div>
                </div>
            </div>
            <div class="modal-footer" style="justify-content: center">
                <button type="button" class="btn btn-primary"  data-dismiss="modal" id="clearJunkY" >是</button>
                <button type="button" class="btn btn-primary"  data-dismiss="modal">否</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/public/web/common_ajax.js"></script>
<script type="text/javascript" src="/public/web/PerfectLoad.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#billsLib').click(function () {
            let href = '/stdBillsmain';
            let newTab = window.open('about:blank');
            CommonAjax.get(href, {}, function () {
               newTab.location.href = href;
            });
        });

        $('#rationLib').click(function () {
            let href = '/rationRepository/main';
            let newTab = window.open('about:blank');
            CommonAjax.get(href, {}, function () {
               newTab.location.href = href;
            });
        });

        $('#rptTemplate').click(function () {
            let href = '/rpt_tpl';
            let newTab = window.open('about:blank');
            CommonAjax.get(href, {}, function () {
               newTab.location.href = href;
            });
        });

        $('#gljLib').click(function () {
            let href = '/stdGljRepository/main';
            let newTab = window.open('about:blank');
            CommonAjax.get(href, {}, function () {
               newTab.location.href = href;
            });
        });

        $('#billsGuidanceLib').click(function () {
            let href = '/billsGuidance/main';
            let newTab = window.open('about:blank');
            CommonAjax.get(href, {}, function () {
               newTab.location.href = href;
            });
        });

        $('#clearJunkBtn').click(function () {
            $('#clearJunkModal').modal('show');
        });
        $('#clearJunkY').click(function () {
            $.bootstrapLoading.start();
             CommonAjax.post('/sysTools/api/clearJunkData', '', function (rstData) {
             $.bootstrapLoading.end();
             }, function () {
             $.bootstrapLoading.end();
             })
        });
    });
</script>