|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 | 6 | <title>坠好用的上位机</title>
|
7 | 7 | <link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel=" stylesheet" >
|
| 8 | + <link href="https://cdn.jsdelivr.net/npm/bootstrap-switch/dist/css/bootstrap-switch.min.css" rel="stylesheet"> |
8 | 9 | <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
9 | 10 | <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script>
|
| 11 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script> |
10 | 12 | <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
|
11 | 13 | <script src="https://cdn.jsdelivr.net/npm/vue-toasted/dist/vue-toasted.min.js"></script>
|
12 | 14 | <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
41 | 43 | </nav>
|
42 | 44 |
|
43 | 45 | <div class="tab-content" id="nav-tabContent">
|
| 46 | + |
44 | 47 | <div class="tab-pane fade show active" id="nav-serialport" role="tabpanel" aria-labelledby="nav-home-tab">
|
45 | 48 | <div id="serial">
|
46 | 49 | <p><div class="input-group mb-3">
|
|
54 | 57 | <p><button class="btn btn-primary" v-on:click="openserial">打开串口</button>
|
55 | 58 | <button class="btn btn-danger" v-on:click="closeserial">关闭串口</button></p>
|
56 | 59 | </div>
|
57 |
| - <div class="input-group" id="fileupload"> |
| 60 | + <p><div class="input-group" id="fileupload"> |
58 | 61 | <div class="input-group-prepend">
|
59 | 62 | <button class="btn btn-primary" v-on:click="upload">上传</button>
|
60 | 63 | </div>
|
61 | 64 | <div class="custom-file">
|
62 | 65 | <input type="file" class="custom-file-input" @change="choose($event)">
|
63 | 66 | <label class="custom-file-label">{{file.name}}</label>
|
64 | 67 | </div>
|
| 68 | + </div></p> |
| 69 | + <div><p><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#variablesModalScrollable">变量列表</button></p></div> |
| 70 | + <div id="saveconfig"> |
| 71 | + <p>保存变量列表 <input type="checkbox" name="checkbox-sda"></p> |
| 72 | + <p>保存观察变量 <input type="checkbox" name="checkbox-svr"></p> |
| 73 | + <p>保存修改列表 <input type="checkbox" name="checkbox-svm"></p> |
65 | 74 | </div>
|
66 |
| - <div><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#variablesModalScrollable">变量列表</button></div> |
| 75 | + |
67 | 76 | <div class="modal fade" id="variablesModalScrollable" tabindex="-1" role="dialog">
|
68 | 77 | <div class="modal-dialog modal-dialog-scrollable modal-xl" role="document">
|
69 | 78 | <div class="modal-content">
|
@@ -239,6 +248,7 @@ <h5 class="modal-title" id="NewVariableModLabel">添加变量</h5>
|
239 | 248 | </div>
|
240 | 249 | </div>
|
241 | 250 | </div>
|
| 251 | + <script src="/assets/js/switch.js"></script> |
242 | 252 | <script src="/assets/js/toast.js"></script>
|
243 | 253 | <script src="/assets/js/file.js"></script>
|
244 | 254 | <script src="/assets/js/serial.js"></script>
|
|
0 commit comments