1
13693261870
2022-09-16 762f2fb45db004618ba099aa3c0bd89dba1eb843
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
    <title>应用程序管理-列表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <script src="../../../js/paramconfig.js"></script>
    <script type="text/javascript">
        remoteToLoadCss('BootStrap4/assets/css/style.css');
        remoteToLoadJs('BootStrap4/assets/js/jquery.min.js');
        loadLocalCss('../../../css/jquery-ui.min.css');
        loadLocalJs('../../../libs/vue.min.js');
        loadLocalJs('../../../js/common.js');
        loadLocalJs('../../../js/jquery-ui.min.js');
        function initSystemName() {
            var local=window.location.href;
            $.ajax({
                type: "GET",
                url: restServerBaseURL + "sys/systeminfo/queryListAll",
                contentType: "application/json",
                success: function(msg) {
                    var systemList = msg.systemList;
                    jQuery("#appidName").append("<option value=''>全部</option>");
                    var appid = '';
                    if (getAppId()!=null) {
                        appid = getAppId();
                    }
                    jQuery.each(systemList, function(i, item) {
                        if(appid == item.appid) {
                            jQuery("#appidName").append("<option value=" + item.appid + " selected = 'true'>" + item.appfullname + "</option>");
                        }
                        else {
                            jQuery("#appidName").append("<option value=" + item.appid + ">" + item.appfullname + "</option>");
                        }
                    });
                }
            });
        }
 
        
        function findUserByWord(){
            var username = $("#applyusername").val();
            $("#applyusername").autocomplete({
                source: restServerBaseURL + 'org/user/findUserByWord?keyWord='+encodeURI(encodeURI(username)),  //请求的url
                minLength: 1,
            });
        }
    </script>
    <script>
        $(function () {
            initSystemName();
        });
    </script>
    <style>
        .mainbody{
            width: 50%;
            margin: 30px auto;
        }
        #applyusername{
            width:100%;
            height:30px;
            
            text-indent:1rem
        }
    </style>
</head>
<body>
<div class="mainbody">
    <label>应用系统</label> <select class="form-control" id="appidName" style="display: inline-block;"></select>
    <label>用户名称</label>  <input type="text"  value="" id="applyusername"  onkeyup="findUserByWord()" onclick="findUserByWord() " placeholder="输入用户名、中文名或拼音首字母查询">
</div>
</body>
</html>