Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
74846114
authored
2025-01-10 09:46:12 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据资产登记更新
1 parent
85a7559b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
src/api/modules/queryService.ts
src/store/modules/user.ts
src/views/data_asset/registerCatalogCreate.vue
src/api/modules/queryService.ts
View file @
7484611
...
...
@@ -33,13 +33,6 @@ export const getSystemMenu = (params) => {
});
};
export const getCurrentUserInfo = (tenantGuid) => {
return request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_PERSONAL_URL
}
/staff/
data
/
get
-
current
-
staff
?
tenantGuid
=
$
{
tenantGuid
}
`,
method: "post",
});
};
// 获取当前用户对应的产品和菜单
export const getUserInfo = () => {
return request({
...
...
src/store/modules/user.ts
View file @
7484611
...
...
@@ -56,7 +56,7 @@ const useUserStore = defineStore(
currentTenantGuid
.
value
=
res
.
data
.
tenantInfoList
&&
res
.
data
.
tenantInfoList
.
length
?
res
.
data
.
tenantInfoList
[
0
].
guid
:
''
;
localStorage
.
setItem
(
'currentTenantGuid'
,
currentTenantGuid
.
value
);
let
currentTenant
=
res
.
data
.
tenantInfoList
?.[
0
];
getCurrentUserInfo
(
currentTenantGuid
.
value
).
then
((
res
:
any
)
=>
{
getCurrentUserInfo
(
{
tenantGuid
:
currentTenantGuid
.
value
}
).
then
((
res
:
any
)
=>
{
console
.
log
(
res
,
'getCurrentUserInfo'
);
if
(
res
.
code
==
'00000'
)
{
localStorage
.
setItem
(
'userData'
,
JSON
.
stringify
(
res
.
data
));
...
...
src/views/data_asset/registerCatalogCreate.vue
View file @
7484611
...
...
@@ -494,7 +494,7 @@ const addAssetTable = () => {
onBeforeMount
(()
=>
{
// const currentTenantGuid = localStorage.getItem('currentTenantGuid');
// getCurrentUserInfo(
currentTenantGuid
).then((res: any) => {
// getCurrentUserInfo(
{tenantGuid: currentTenantGuid}
).then((res: any) => {
// console.log(res, 'getCurrentUserInfo');
// if (res.code == '00000') {
// localStorage.setItem('userData', JSON.stringify(res.data));
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment