From 8051989d2cfa203f266a05ea6426eda132517247 Mon Sep 17 00:00:00 2001 From: jackhoo_98 Date: Wed, 15 Mar 2023 17:03:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=90=E7=BB=B4=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E7=AE=A1=E7=90=86=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DataCollect/Channel/data.ts | 2 +- .../Collector/Point/Save/SaveOPCUA.vue | 20 +--- src/views/link/Protocol/Save/FileUpload.vue | 4 +- src/views/link/Protocol/Save/index.vue | 101 ++++++++++-------- src/views/link/Protocol/index.vue | 6 +- src/views/link/Protocol/type.d.ts | 8 ++ src/views/link/Type/Detail/index.vue | 6 +- 7 files changed, 76 insertions(+), 71 deletions(-) create mode 100644 src/views/link/Protocol/type.d.ts diff --git a/src/views/DataCollect/Channel/data.ts b/src/views/DataCollect/Channel/data.ts index 4330f067..158b211e 100644 --- a/src/views/DataCollect/Channel/data.ts +++ b/src/views/DataCollect/Channel/data.ts @@ -63,7 +63,7 @@ export const regDomain = new RegExp( ); export const checkEndpoint = (_rule: Rule, value: string): Promise => new Promise(async (resolve, reject) => { - const res = await validateField(value); + const res: any = await validateField(value); return res.result.passed ? resolve('') : reject(res.result.reason); }); export const FormValidate = { diff --git a/src/views/DataCollect/Collector/Point/Save/SaveOPCUA.vue b/src/views/DataCollect/Collector/Point/Save/SaveOPCUA.vue index 08fe3c4d..b6178cab 100644 --- a/src/views/DataCollect/Collector/Point/Save/SaveOPCUA.vue +++ b/src/views/DataCollect/Collector/Point/Save/SaveOPCUA.vue @@ -190,22 +190,4 @@ watch( ); - + diff --git a/src/views/link/Protocol/Save/FileUpload.vue b/src/views/link/Protocol/Save/FileUpload.vue index 015ddc4b..64a77491 100644 --- a/src/views/link/Protocol/Save/FileUpload.vue +++ b/src/views/link/Protocol/Save/FileUpload.vue @@ -58,7 +58,7 @@ const handleChange = async (info: UploadChangeParam) => { if (info.file.status === 'done') { loading.value = false; const result = info.file.response?.result; - const api = await querySystemApi(['paths']); + const api: any = await querySystemApi(['paths']); const path = api.result[0]?.properties ? api.result[0]?.properties['base-path'] : ''; @@ -86,6 +86,8 @@ const handleChange = async (info: UploadChangeParam) => { .upload-box { :deep(.ant-btn) { width: 100px; + border-top-left-radius: 0; + border-bottom-left-radius: 0; } } diff --git a/src/views/link/Protocol/Save/index.vue b/src/views/link/Protocol/Save/index.vue index 6384a442..a9d2eaeb 100644 --- a/src/views/link/Protocol/Save/index.vue +++ b/src/views/link/Protocol/Save/index.vue @@ -11,25 +11,45 @@ :model="formData" name="basic" autocomplete="off" + ref="formRef" > - + - - + - +