fix: 权力主体改成guid
Showing
1 changed file
with
11 additions
and
2 deletions
| ... | @@ -102,7 +102,7 @@ const getArea = (node, resolve) => { | ... | @@ -102,7 +102,7 @@ const getArea = (node, resolve) => { |
| 102 | const baseInfoExpand = ref(true); | 102 | const baseInfoExpand = ref(true); |
| 103 | const assetTableInfoExpand = ref(true); | 103 | const assetTableInfoExpand = ref(true); |
| 104 | const importTableFieldRef = ref(); | 104 | const importTableFieldRef = ref(); |
| 105 | const rightMainTenantList = ref([]); //权利主体下拉列表选择 | 105 | const rightMainTenantList: any = ref([]); //权利主体下拉列表选择 |
| 106 | const baseInfoFormRef = ref(); | 106 | const baseInfoFormRef = ref(); |
| 107 | 107 | ||
| 108 | const baseInfoFormItems = ref([ | 108 | const baseInfoFormItems = ref([ |
| ... | @@ -720,7 +720,9 @@ const save = () => { | ... | @@ -720,7 +720,9 @@ const save = () => { |
| 720 | params.guid = damGuid.value; | 720 | params.guid = damGuid.value; |
| 721 | params.foundMode = route.query.foundMode; | 721 | params.foundMode = route.query.foundMode; |
| 722 | if (route.query.dataSources != '1') { | 722 | if (route.query.dataSources != '1') { |
| 723 | params.rightMain = detailInfo.value.rightMain; | 723 | params.rightMain = JSON.parse(userStore.userData).tenantGuid; |
| 724 | } else { | ||
| 725 | params.rightMainName = rightMainTenantList.value.find(v => v.guid == params.rightMain); | ||
| 724 | } | 726 | } |
| 725 | fullscreenLoading.value = true; | 727 | fullscreenLoading.value = true; |
| 726 | registerCatalogUpdate(params).then((res: any) => { | 728 | registerCatalogUpdate(params).then((res: any) => { |
| ... | @@ -741,6 +743,13 @@ const save = () => { | ... | @@ -741,6 +743,13 @@ const save = () => { |
| 741 | params.damCatalogTableInfo = assetDataTableInfo.value.data; | 743 | params.damCatalogTableInfo = assetDataTableInfo.value.data; |
| 742 | fullscreenLoading.value = true; | 744 | fullscreenLoading.value = true; |
| 743 | console.log(params, 'params'); | 745 | console.log(params, 'params'); |
| 746 | if (route.query.dataSources != '1') { | ||
| 747 | let userData = userStore.userData; | ||
| 748 | params.rightMain = userData.tenantGuid; | ||
| 749 | params.rightMainName = userData.tenantName; | ||
| 750 | } else { | ||
| 751 | params.rightMainName = rightMainTenantList.value.find(v => v.guid == params.rightMain); | ||
| 752 | } | ||
| 744 | // params.rightMain = JSON.parse(userStore.userData).tenantGuid; | 753 | // params.rightMain = JSON.parse(userStore.userData).tenantGuid; |
| 745 | registerCatalogSave(params).then((res: any) => { | 754 | registerCatalogSave(params).then((res: any) => { |
| 746 | fullscreenLoading.value = false; | 755 | fullscreenLoading.value = false; | ... | ... |
-
Please register or sign in to post a comment