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', }, ], },