23da8ac7 by lihua

fix

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