diff --git a/ui/dasadmin/src/views/backend/node/index.vue b/ui/dasadmin/src/views/backend/node/index.vue index a7f784b5..325f5b44 100644 --- a/ui/dasadmin/src/views/backend/node/index.vue +++ b/ui/dasadmin/src/views/backend/node/index.vue @@ -178,6 +178,7 @@ import { uploadNodeReq, submitNodeConfigReq, } from '/@/api/backend/node/request' +import {protocolList} from '/@/views/backend/node/utils' import { getInstitutionalTreeListReq } from '/@/api/backend/org/request' import { debounce } from 'lodash-es' import ProtocolComponent from './protocol.vue' @@ -530,14 +531,6 @@ const getLinkData = (nodeId: string, linkName?: string) => { }) } -const protocolList = [ - // * 代表需要配置的协议 - { label: 'IEC104从 *', value: 9 }, - { label: 'MODBUSTCP从 *', value: 17 }, - { label: 'MODBUS', value: 80 }, - { label: 'ADS', value: 81 }, - { label: '故障日志', value: 79 }, -] const protocolPartVisible = ref(false) const protocolDisabled = ref(false) diff --git a/ui/dasadmin/src/views/backend/node/utils.ts b/ui/dasadmin/src/views/backend/node/utils.ts index 9b43f74d..c5cc5c34 100644 --- a/ui/dasadmin/src/views/backend/node/utils.ts +++ b/ui/dasadmin/src/views/backend/node/utils.ts @@ -1,5 +1,14 @@ import { LocaleType, BooleanNumber, SheetTypes } from '@univerjs/core' +export const protocolList = [ + // * 代表需要配置的协议 + { label: 'IEC104从 *', value: 9 }, + { label: 'MODBUSTCP从 *', value: 17 }, + { label: 'MODBUS', value: 80 }, + { label: 'ADS', value: 81 }, + { label: '故障日志', value: 79 }, +] + export const excelDefaultConfig: any = { // IEC104从 9: {