fix
Showing
1 changed file
with
9 additions
and
8 deletions
| ... | @@ -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 | /** 基本信息的入参定义表格配置 */ | ... | ... |
-
Please register or sign in to post a comment