双重预防项目-国泰新华二开定制版
马宇豪
2023-08-21 635dd6bf2afa0f6ba4dcb4b8438dc1fc4745fca6
修改搜索框
已修改2个文件
46 ■■■■ 文件已修改
src/main/resources/templates/tr/hiddenDangerCheck/dangerLedger/dangerLedger.html 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/hiddenDangerCheck/dangerLedger/dangerLedger.html
@@ -78,13 +78,20 @@
                                <option value="超期改">超期改</option>
                            </select>
                        </li>
                        <li>
                        <li style="display: flex;align-items: center">
                            <label>整改部门:</label>
                            <select name="rectifyDeptIdLedger">
                                <option value="">所有</option>
                                <option th:each="dept : ${deptList}" th:text="${dept.deptName}"
                                        th:value="${dept.deptId}"></option>
                            </select>
<!--                            <select name="rectifyDeptIdLedger">-->
<!--                                <option value="">所有</option>-->
<!--                                <option th:each="dept : ${deptList}" th:text="${dept.deptName}"-->
<!--                                        th:value="${dept.deptId}"></option>-->
<!--                            </select>-->
                            <div class="input-group" style="width: 200px">
                                <input name="rectifyDeptIdLedger" type="hidden" id="rectifyDeptIdLedger">
                                <input onclick="selectDangerDeptTree()" id="dangerDeptName" type="text"
                                       placeholder="请选择部门" class="form-control" required
                                       readonly="readonly">
                                <span class="input-group-addon"><i class="fa fa-search"></i></span>
                            </div>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
@@ -356,7 +363,29 @@
        $.operate.openDetailInfo("查看隐患验收信息", detailDangerAcceptUrl.replace("{id}", id));
    }
    /*隐患责任部门  选择 start*/
    function selectDangerDeptTree() {
        var treeId = $("#rectifyDeptIdLedger").val();
        var deptId = $.common.isEmpty(treeId) ? "100" : $("#rectifyDeptIdLedger").val();
        var url = ctx + "system/dept/selectDeptTreeByCompanyId/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitBeCheckedDept
        };
        $.modal.openOptions(options);
    }
    function doSubmitBeCheckedDept(index, layero) {
        var tree = layero.find("iframe")[0].contentWindow.$._tree;
        // if ($.tree.notAllowParents(tree)) {
        var body = layer.getChildFrame('body', index);
        $("#rectifyDeptIdLedger").val(body.find('#treeId').val());
        $("#dangerDeptName").val(body.find('#treeName').val());
        layer.close(index);
        // }
    }
</script>
</body>
</html>
src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html
@@ -312,8 +312,9 @@
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">隐患整改资金:</label>
                <div class="col-sm-8">
                    <input name="rectifyFund" class="form-control" type="text" required>
                <div class="col-sm-8" style="display: flex;align-items: center">
                    <input name="rectifyFund" class="form-control" type="number" placeholder="请输入数字(单位:万)" required>
                    <span style="width: 50px;background: #ccc;height:34px;text-align: center;line-height: 34px">万</span>
                </div>
            </div>
            <div class="form-group">