diff --git a/src/views/link/Type/Detail/index.vue b/src/views/link/Type/Detail/index.vue
index 8a84aa8b..8ca766bc 100644
--- a/src/views/link/Type/Detail/index.vue
+++ b/src/views/link/Type/Detail/index.vue
@@ -284,18 +284,24 @@
.configuration
.port
"
- :options="
- portOptionsIndex[
- index
- ]
- "
placeholder="请选择本地端口"
allowClear
show-search
:filter-option="
filterPortOption
"
- />
+ >
+
+ {{ i.label }}
+
+
{
return JSON.stringify(option.label).indexOf(input) >= 0;
};
+const getPortList = (list: any[], id: string) => {
+ const keys = dynamicValidateForm?.cluster?.map?.(item => item.configuration?.port) || []
+ console.log(dynamicValidateForm?.cluster, id, keys)
+ return (list || []).filter(item => item.value === id || !keys.includes(item.value) )
+}
+
const filterConfigByType = (data: any[], type: string) => {
let _temp = type;
if (TCPList.includes(type)) {