feat: MML网元操作支持区分接口类型
This commit is contained in:
@@ -1661,6 +1661,10 @@ export default {
|
||||
uploadFileTip: 'Are you sure you want to upload the file?',
|
||||
uploadFileOk: 'File Upload Successful',
|
||||
uploadFileErr: 'File Upload Failed',
|
||||
neOperate:{
|
||||
mml: "General",
|
||||
mml2: "Standard",
|
||||
},
|
||||
omcOperate:{
|
||||
noOMC: "No OMC network elements",
|
||||
},
|
||||
|
||||
@@ -1661,6 +1661,10 @@ export default {
|
||||
uploadFileTip: '确认要上传文件吗?',
|
||||
uploadFileOk: '文件上传成功',
|
||||
uploadFileErr: '文件上传失败',
|
||||
neOperate:{
|
||||
mml: "通用",
|
||||
mml2: "标准版",
|
||||
},
|
||||
omcOperate:{
|
||||
noOMC: "暂无OMC网元",
|
||||
},
|
||||
|
||||
@@ -452,6 +452,7 @@ function fnAutoCompleteSelect(_: any, option: any) {
|
||||
key: option.key,
|
||||
operation: option.operation,
|
||||
object: option.object,
|
||||
objectType: option.objectType,
|
||||
param: option.param,
|
||||
};
|
||||
state.from = {};
|
||||
@@ -497,6 +498,7 @@ function fnAutoCompleteChange(value: any, _: any) {
|
||||
key: '',
|
||||
operation: '',
|
||||
object: '',
|
||||
objectType: state.mmlSelect.objectType,
|
||||
param: [],
|
||||
};
|
||||
}
|
||||
@@ -641,7 +643,9 @@ onMounted(() => {
|
||||
:validateTrigger="[]"
|
||||
>
|
||||
<a-form-item :label="t('views.mmlManage.cmdQuickEntry')">
|
||||
<!-- 非UPF通用4100 -->
|
||||
<a-auto-complete
|
||||
v-if="state.neType[0] !== 'UPF'"
|
||||
v-model:value="state.autoCompleteValue"
|
||||
:dropdown-match-select-width="500"
|
||||
style="width: 100%"
|
||||
@@ -653,6 +657,35 @@ onMounted(() => {
|
||||
>
|
||||
<a-textarea :placeholder="t('common.inputPlease')" auto-size />
|
||||
</a-auto-complete>
|
||||
<!-- 可选接口类型mml -->
|
||||
<a-input-group compact v-else>
|
||||
<a-auto-complete
|
||||
v-model:value="state.autoCompleteValue"
|
||||
:dropdown-match-select-width="500"
|
||||
style="width: 80%"
|
||||
:options="state.autoCompleteSearch"
|
||||
@search="fnAutoCompleteSearch"
|
||||
@select="fnAutoCompleteSelect"
|
||||
@change="fnAutoCompleteChange"
|
||||
@keydown="fnAutoCompleteKeydown"
|
||||
>
|
||||
<a-textarea
|
||||
:placeholder="t('common.inputPlease')"
|
||||
auto-size
|
||||
/>
|
||||
</a-auto-complete>
|
||||
<a-select
|
||||
v-model:value="state.mmlSelect.objectType"
|
||||
style="width: 20%"
|
||||
>
|
||||
<a-select-option value="mml">
|
||||
{{ t('views.mmlManage.neOperate.mml') }}
|
||||
</a-select-option>
|
||||
<a-select-option value="mml2">
|
||||
{{ t('views.mmlManage.neOperate.mml2') }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-input-group>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user