<form action="{% url 'bee_django_exam:user_exam_record_list' 0 %}" method="get">
    {{ search_form }}
    <input type="hidden" name="export" id="export">

    <button class="" onclick="click_search()">查询</button>
{#    <button class="" onclick="click_export()">导出</button>#}
</form>
{% block scripts %}
    <script>
        $(document).ready(function () {

        });
        function click_search() {
            var $form = $("form");
            var $export = $("#export");
            $export.attr("value", "");
            $form.submit()

        }
        function click_export() {
            var $form = $("form");
            var $export = $("#export");
            $export.attr("value", "1");
            $form.submit()

        }
    </script>
{% endblock %}