From d0f2dcba1aba0933a514c75af50e1975b0793c6c Mon Sep 17 00:00:00 2001 From: lll Date: Fri, 27 Oct 2023 16:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=98=E9=BE=99=E9=BE=99=E4=B8=B2=E5=8F=A3?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 22 +- src/components/ChiGate.vue | 320 ++++---- src/components/ChiGateway.vue | 270 +++---- src/components/CloneView.vue | 900 +++++++++++++--------- src/components/DataView.vue | 638 +++++++-------- src/components/IpConfiguration.vue | 205 +++++ src/components/PortConfiguration.vue | 207 +++++ src/components/SerialPort.vue | 1066 +++++++++++++++----------- src/validate.js | 7 + 9 files changed, 2222 insertions(+), 1413 deletions(-) create mode 100644 src/components/IpConfiguration.vue create mode 100644 src/components/PortConfiguration.vue create mode 100644 src/validate.js diff --git a/src/App.vue b/src/App.vue index e5bad54..6cac192 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,13 +17,15 @@ + + \ No newline at end of file + diff --git a/src/components/ChiGateway.vue b/src/components/ChiGateway.vue index 07e4c51..58ac64d 100644 --- a/src/components/ChiGateway.vue +++ b/src/components/ChiGateway.vue @@ -1,154 +1,164 @@ \ No newline at end of file + diff --git a/src/components/CloneView.vue b/src/components/CloneView.vue index ffeee8f..343de32 100644 --- a/src/components/CloneView.vue +++ b/src/components/CloneView.vue @@ -1,413 +1,547 @@ \ No newline at end of file + + .con_right { + width: 480px; + + .dialog-footer { + .el-button { + width: 80px; + height: 30px; + line-height: 0.5; + } + } + } + } +} + diff --git a/src/components/DataView.vue b/src/components/DataView.vue index e6bc9f5..831c528 100644 --- a/src/components/DataView.vue +++ b/src/components/DataView.vue @@ -1,326 +1,348 @@ - diff --git a/src/components/IpConfiguration.vue b/src/components/IpConfiguration.vue new file mode 100644 index 0000000..2a5d438 --- /dev/null +++ b/src/components/IpConfiguration.vue @@ -0,0 +1,205 @@ + + diff --git a/src/components/PortConfiguration.vue b/src/components/PortConfiguration.vue new file mode 100644 index 0000000..2d35353 --- /dev/null +++ b/src/components/PortConfiguration.vue @@ -0,0 +1,207 @@ + + + diff --git a/src/components/SerialPort.vue b/src/components/SerialPort.vue index d5b6d02..f3b8027 100644 --- a/src/components/SerialPort.vue +++ b/src/components/SerialPort.vue @@ -1,475 +1,667 @@ \ No newline at end of file + diff --git a/src/validate.js b/src/validate.js new file mode 100644 index 0000000..5f1552c --- /dev/null +++ b/src/validate.js @@ -0,0 +1,7 @@ +// 辅助函数,检查主DNS服务器地址是否有效 +export let isValidPrimaryDNS = (value) => { + // 在这里可以添加更多的校验逻辑 + // 例如,检查是否是有效的IP地址或域名 + // 这里只提供了一个简单的示例 + return /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/.test(value); +};