wuwei
2025-06-16 9f7d99e9aa7fe85c6951d2f60361766e76c7bdfe
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>智能机房管理平台-端口配置</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" type="text/css" href="./plugins/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="css/page/sys-port.css"/>
    <style>
        /*table 纵向滚动显示并隐藏滚动条*/
        .table-tbody {
            height: 340px;
            overflow-y: scroll;
        }
 
        /*chrome 和Safari ----隐藏滚动条*/
        .table-tbody::-webkit-scrollbar {
            width: 0 !important;
        }
 
        /*IE 10+ ----隐藏滚动条*/
        .table-tbody {
            -ms-overflow-style: none;
        }
 
        /*Firefox ----隐藏滚动条*/
        .table-tbody {
            scrollbar-width: none;
        }
    </style>
</head>
 
<body>
<div class="i-container">
    <div class="jmkt-main">
        <div class="layui-col-space20">
            <div class="layui-col-lg5 layui-col-md5">
                <div class="pdgxq-m1-left pdgxq-m1-box">
                    <div style="margin: 10px;color: #FFFFFF;font-size: 16px;">
                        请选择需要启动的端口并配置相关参数
                    </div>
                </div>
            </div>
            <div class="layui-col-lg7 layui-col-md7">
                <div class="pdgxq-m1-right pdgxq-m1-box">
                    <div class="pdgxq-table jmkt-table-wrap">
                        <div>
                            <table class="layui-table pdgxq-table1" lay-skin="nob">
                                <colgroup>
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>串口</th>
                                    <th>波特率</th>
                                    <th>校验</th>
                                    <th>数据位</th>
                                    <th>停止位</th>
                                    <th>超时时间</th>
                                    <th>调度间隔</th>
                                    <th>启用</th>
                                </tr>
                                </thead>
                            </table>
                            <table class="layui-table pdgxq-table1 table-tbody" lay-skin="nob" id="table">
                                <colgroup>
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                    <col width="12.5%">
                                </colgroup>
                                <tbody id="tbody-data" style="text-align: left">
                                <tr>
                                    <td>
                                        <select id="no-1" class="f1" disabled>
                                            <option value="1" selected>COM1</option>
                                            <option value="2">COM2</option>
                                            <option value="3">COM3</option>
                                            <option value="4">COM4</option>
                                            <option value="5">COM5</option>
                                            <option value="6">COM6</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="baudrate-1" class="f1">
                                            <option value="115200">115200</option>
                                            <option value="57600">57600</option>
                                            <option value="38400">38400</option>
                                            <option value="19200">19200</option>
                                            <option value="9600" selected>9600</option>
                                            <option value="4800">4800</option>
                                            <option value="2400">2400</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="parity-1" class="f1">
                                            <option value="0">不校验</option>
                                            <option value="1">奇校验</option>
                                            <option value="2">偶校验</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="databits-1" class="f1">
                                            <option value="5">5</option>
                                            <option value="6">6</option>
                                            <option value="7">7</option>
                                            <option value="8">8</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="stopbits-1" class="f1">
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                        </select>
                                    </td>
                                    <td>
                                        <input id="timeout-1" class="f1" value="500">ms
                                    </td>
                                    <td>
                                        <input id="pollTime-1" class="f1" value="1000">ms
                                    </td>
                                    <td>
                                        <input id="vld-1" class="f2" type="checkbox" checked>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div style="height: 15px;border-top: 1px solid #444d58;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg5 layui-col-md5">
                <div style="text-align: center">
                    <div class="layui-input-block btns" style="margin-left: 15px">
                        <button class="layui-btn layui-btn-normal" onclick="save()" style="width: 100px">保存</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
</div>
</div>
 
<script src="./js/jquery.min.js"></script>
<!--<script src="./plugins/layui/layui.js"></script>-->
<script src="./js/page/sys-port.js"></script>
 
</body>
 
</html>