From 9b9ba513d0c54febda0bed25c55a025d4e2fae0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Wed, 20 Nov 2024 17:41:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88=E9=80=BB=E8=BE=91=20?= =?UTF-8?q?=E6=95=85=E9=9A=9C=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E9=80=BB=E8=BE=91=20=E9=93=BE=E8=B7=AF?= =?UTF-8?q?=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=8D=8F=E8=AE=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dasadmin/src/views/backend/logRecord/index.vue | 4 +++- ui/dasadmin/src/views/backend/malfunction/index.vue | 4 +++- ui/dasadmin/src/views/backend/node/protocol.vue | 12 ++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ui/dasadmin/src/views/backend/logRecord/index.vue b/ui/dasadmin/src/views/backend/logRecord/index.vue index d9cc5fa5..d609e1be 100644 --- a/ui/dasadmin/src/views/backend/logRecord/index.vue +++ b/ui/dasadmin/src/views/backend/logRecord/index.vue @@ -628,7 +628,7 @@ const getFileData = (url: string) => { const fileKeyEnums: any = {} const getFileKeyEnum = () => { - return new Promise((resolve) => { + return new Promise((resolve,reject) => { getFileKeyEnumsReq({ madeinfactory: curTreeData.value.madeinFactory, model: curTreeData.value.model, @@ -639,6 +639,8 @@ const getFileKeyEnum = () => { }) resolve(true) } + }).catch(()=>{ + reject(false) }) }) } diff --git a/ui/dasadmin/src/views/backend/malfunction/index.vue b/ui/dasadmin/src/views/backend/malfunction/index.vue index 10c4f839..8377768d 100644 --- a/ui/dasadmin/src/views/backend/malfunction/index.vue +++ b/ui/dasadmin/src/views/backend/malfunction/index.vue @@ -633,7 +633,7 @@ const getFileData = (url: string) => { const fileKeyEnums: any = {} const getFileKeyEnum = () => { - return new Promise((resolve) => { + return new Promise((resolve,reject) => { getFileKeyEnumsReq({ madeinfactory: curTreeData.value.madeinFactory, model: curTreeData.value.model, @@ -644,6 +644,8 @@ const getFileKeyEnum = () => { }) resolve(true) } + }).catch(()=>{ + reject(false) }) }) } diff --git a/ui/dasadmin/src/views/backend/node/protocol.vue b/ui/dasadmin/src/views/backend/node/protocol.vue index e574dd63..fb04c198 100644 --- a/ui/dasadmin/src/views/backend/node/protocol.vue +++ b/ui/dasadmin/src/views/backend/node/protocol.vue @@ -810,11 +810,11 @@ const formColumnList: formColumnType[] = [ list: [ { label: 'TCP', - value: '0', + value: '1', }, { label: 'UDP', - value: '1', + value: '2', }, ], }, @@ -907,11 +907,11 @@ const formColumnList: formColumnType[] = [ list: [ { label: 'TCP', - value: '0', + value: '1', }, { label: 'UDP', - value: '1', + value: '2', }, ], }, @@ -1025,11 +1025,11 @@ const formColumnList: formColumnType[] = [ list: [ { label: 'TCP', - value: '0', + value: '1', }, { label: 'UDP', - value: '1', + value: '2', }, ], },