• 【若依】多级联动下拉的实现(附HTML及JavaScript参考代码)


    一、实现效果:

    在这里插入图片描述
    在这里插入图片描述

    二、代码示例:

    <div class="form-group">    
        <label class="col-sm-3 control-label is-required">满意度事件:label>
        <div class="col-sm-8">
            <select id="event" name="csatEnent" class="form-control m-b" th:with="type=${@dict.getType('sc_csat_event')}" required>
                <option value="">请选择option>
                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}">option>
            select>
        div>
    div>
    
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">满意度事件编号:label>
        <div class="col-sm-8">
            <select id="eventids" name="castEventId" class="form-control m-b">
                <option value="">请选择option>
            select>
        div>
    div>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    $("#event").change(function () {
       $.ajax({
            url: ctx + "sc/csat/eventids",
            type: 'GET',
            data: {
                event: $("#event").val(),
            },
            success: function (data) {
                $("#eventids").empty();
                $("#eventids").append("");
                for (var i = 0; i < data.length; i++) {
                    $("#eventids").append(" + data[i] + "");
                }
            }
        })
    })
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16

    三、注意事项:

    错误:url: ctx + "/sc/csat/eventids",
    正确:url: ctx + "sc/csat/eventids",

    四、附后端接收请求代码:

    @GetMapping("/eventids")
    @ResponseBody
    public List<Integer> selectEventIds(String event) {
        List<Integer> ids = null;
        if (event != null && event.length() == 1) {
            if (event.equals("0")) {
                ids = scHdrService.selectIds();
            }
        }
        System.out.println(ids.toString());
        return ids;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    五、惊蛰:

    To address the problems that ambulances have no accompanying doctors or inexperienced accompanying doctors under the situation of medical resources shortage, and that hospitals have difficulty in obtaining diagnostic information of emergency patients’ diseases before the ambulance arrives at the hospital, and thus cannot make emergency preparations in advance. In this paper, we study and implement a medical intelligent diagnosis system with Elasticsearch as the core, combined with Spring Boot open source technology framework, Python web crawler and other multi-disciplinary technologies. The system first uses web crawlers to collect disease data required by the system on medical websites, then builds the system knowledge base runtime environment on Tencent cloud servers, then use Spring Data to improve the development efficiency of the system and simplify the interaction between users and data. Extensive tests show that the system has a high accuracy of diagnosis, up to 83%; The diagnostic results are complete, including various types of information such as clinical examinations, commonly used drugs and treatments; and the average response time for diagnosis is about 21.27ms. Therefore, this system can be used to assist ambulance doctors to make quick diagnosis of emergency patients and enable the hospital to predict the relevant information of emergency patients in advance, so as to win precious first aid time for emergency patients.

  • 相关阅读:
    n皇后问题,不用递归
    java常见面试基础题2
    Vue导航守卫beforeRouteEnter,beforeRouteUpdate,beforeRouteLeave
    【Java系列】Java 基础
    求生之路2专用服务器搭建对抗模式,药抗模式,特殊模式Ubuntu系统另附上游戏代码以及控制台代码
    3.3、差错检测
    打印 pyspark.sql.dataframe.DataFrame 有哪些列
    wordpress博客趣主题个人静态网页模板
    数字IC前端学习笔记:时钟切换电路
    【正点原子STM32连载】第五十章 照相机实验 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
  • 原文地址:https://blog.csdn.net/weixin_45953673/article/details/126215495