fix: 网元信息OAM配置支持修改omc ip,排除omc编辑OAM信息
This commit is contained in:
@@ -658,6 +658,7 @@ export default {
|
|||||||
kpiEnable: 'Report',
|
kpiEnable: 'Report',
|
||||||
kpiTimer: 'Reporting Cycle',
|
kpiTimer: 'Reporting Cycle',
|
||||||
kpiTimerPlease: 'Please enter the reporting period (in seconds)',
|
kpiTimerPlease: 'Please enter the reporting period (in seconds)',
|
||||||
|
omcIP: 'OMC IP',
|
||||||
},
|
},
|
||||||
backConf: {
|
backConf: {
|
||||||
export: 'Config Export',
|
export: 'Config Export',
|
||||||
|
|||||||
@@ -658,6 +658,7 @@ export default {
|
|||||||
kpiEnable: '上报',
|
kpiEnable: '上报',
|
||||||
kpiTimer: '上报周期',
|
kpiTimer: '上报周期',
|
||||||
kpiTimerPlease: '请输入上报周期(单位秒)',
|
kpiTimerPlease: '请输入上报周期(单位秒)',
|
||||||
|
omcIP: 'OMC IP',
|
||||||
},
|
},
|
||||||
backConf: {
|
backConf: {
|
||||||
export: '配置导出',
|
export: '配置导出',
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
title: 'OAM Configuration',
|
title: 'OAM Configuration',
|
||||||
sync: true,
|
sync: true,
|
||||||
from: {
|
from: {
|
||||||
|
omcIP: '',
|
||||||
oamEnable: true,
|
oamEnable: true,
|
||||||
oamPort: 33030,
|
oamPort: 33030,
|
||||||
snmpEnable: true,
|
snmpEnable: true,
|
||||||
@@ -77,6 +78,7 @@ function fnModalVisibleByTypeAndId(neType: string, neId: string) {
|
|||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
Object.assign(modalState.from, {
|
Object.assign(modalState.from, {
|
||||||
|
omcIP: data.oamConfig[data.oamConfig.ipType],
|
||||||
oamEnable: data.oamConfig.enable,
|
oamEnable: data.oamConfig.enable,
|
||||||
oamPort: data.oamConfig.port,
|
oamPort: data.oamConfig.port,
|
||||||
snmpEnable: data.snmpConfig.enable,
|
snmpEnable: data.snmpConfig.enable,
|
||||||
@@ -224,6 +226,17 @@ watch(
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-form-item
|
||||||
|
:label="t('views.ne.neInfo.oam.omcIP')"
|
||||||
|
name="omcIP"
|
||||||
|
:label-col="{ span: 6 }"
|
||||||
|
:labelWrap="true"
|
||||||
|
>
|
||||||
|
<a-input
|
||||||
|
v-model:value="modalState.from.omcIP"
|
||||||
|
:maxlength="128"
|
||||||
|
></a-input>
|
||||||
|
</a-form-item>
|
||||||
</a-collapse-panel>
|
</a-collapse-panel>
|
||||||
<a-collapse-panel header="SNMP">
|
<a-collapse-panel header="SNMP">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
|
|||||||
@@ -625,7 +625,10 @@ onMounted(() => {
|
|||||||
<DeleteOutlined />
|
<DeleteOutlined />
|
||||||
{{ t('common.deleteText') }}
|
{{ t('common.deleteText') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="oam">
|
<a-menu-item
|
||||||
|
key="oam"
|
||||||
|
v-if="!['OMC'].includes(record.neType)"
|
||||||
|
>
|
||||||
<FileTextOutlined />
|
<FileTextOutlined />
|
||||||
{{ t('views.ne.common.oam') }}
|
{{ t('views.ne.common.oam') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user