23da8ac7 by lihua

fix

1 parent 14fbd030
......@@ -696,14 +696,15 @@ const productData: any = ref([]);
const apiList: any = ref([]);
const getAPIOptions = (scope) => {
apiList.value.forEach(a => {
if (a.guid != scope.row.guid && productData.value.some(p => p.apiGuid == a.guid)) {
a.disabled = true;
} else {
a.disabled = false;
}
})
return apiList.value;
// 预先构建产品数据的 GUID 集合
const usedApiGuids = new Set(
productData.value.map(p => p.apiGuid)
);
return apiList.value.map(api => ({
...api,
disabled: api.guid !== scope.row.guid && usedApiGuids.has(api.guid)
}));
}
/** 基本信息的入参定义表格配置 */
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!