节点:公共属性抽离

This commit is contained in:
高云鹏 2024-12-12 11:11:32 +08:00
parent c07681e080
commit 1590808256
2 changed files with 10 additions and 8 deletions

View File

@ -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)

View File

@ -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: {