generateVedio.html 2.47 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="vedioEditForm" id="vedioEditForm" method="post" enctype="multipart/form-data">
        <input type="hidden" name="orderCode" id="orderCodeId"/>
        <div style="margin-top: 20px;margin-left: 30px">
            <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
                <tr style="height: 60px">
                    <td width="15%"><span style="color:red">*</span>摄像头设备</td>
                    <td width="50%">
                        <input id="cameraCodeID" name="cameraCode" class="easyui-textbox" style="width: 380px;"/>
                    </td>
                </tr>

                <tr style="height: 60px" >
                    <td width="15%"><span style="color:red">*</span><label>视频时间</label></td>
                    <td colspan="3">
                        <input class="easyui-datetimebox" name="startTimeStr" id="startTime" data-options="required:true,showSeconds:true" style="width:200px"> ~
                        <input class="easyui-datetimebox" name="endTimeStr" id="endTime" data-options="required:true,showSeconds:true" style="width:200px">
                    </td>
                </tr>

            </table>
        </div>
    </form>
</div>
<script>

    $(function () {
        $('#vedioEditForm #orderCodeId').val(orderCodeEx);
        $("#vedioEditForm #startTime").datetimebox({
            required: true,
            missingMessage: "开始时间不能为空",
            prompt: "开始时间",
            showSeconds : true
        });

        $("#vedioEditForm #endTime").datetimebox({
            required: true,
            missingMessage: "结束时间不能为空",
            prompt: "结束时间",
            showSeconds : true
        });

        $.ajax({
            contentType: "application/json",
            dataType: "json",
            type: "GET",
            async:false,
            url: contextPath + '/live/queryCameraRecord',
            success: function (data) {
                if (data.code != 200 || !data.data || data.data.length == 0) {
                    return;
                }
                $("#cameraCodeID").myCombobox({
                    prompt: "选择摄像头",
                    width: 200,
                    data: data.data,
                    valueField: "cameraCode",
                    textField: "cameraName"
                });
            }
        });
    });
</script>