Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
af60e9ac
Commit
af60e9ac
authored
Nov 16, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加账号弹窗关闭 重新获取账号数量
parent
54157196
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
EnterpriseAddAccount.vue
.../enterpriseManagement/components/EnterpriseAddAccount.vue
+1
-1
index.vue
dsk-operate-ui/src/views/enterpriseManagement/index.vue
+18
-11
No files found.
dsk-operate-ui/src/views/enterpriseManagement/components/EnterpriseAddAccount.vue
View file @
af60e9ac
...
@@ -55,7 +55,7 @@ export default {
...
@@ -55,7 +55,7 @@ export default {
},
},
addAccountCount
:
{
addAccountCount
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
1
default
:
0
}
}
},
},
watch
:
{
watch
:
{
...
...
dsk-operate-ui/src/views/enterpriseManagement/index.vue
View file @
af60e9ac
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
// 企业信息
// 企业信息
addAccountEnterpriseInfo
:
{},
addAccountEnterpriseInfo
:
{},
// 该租户下已经创建账号数量
// 该租户下已经创建账号数量
addAccountCount
:
1
addAccountCount
:
0
};
};
},
},
created
()
{
created
()
{
...
@@ -242,24 +242,31 @@ export default {
...
@@ -242,24 +242,31 @@ export default {
methods
:
{
methods
:
{
enterpriseDialogClose
()
{
enterpriseDialogClose
()
{
this
.
addAccountDialog
=
false
;
this
.
addAccountDialog
=
false
;
this
.
getAccountCount
(
this
.
addAccountEnterpriseInfo
.
tenantId
);
this
.
addAccountEnterpriseInfo
=
this
.
$options
.
data
.
call
(
this
).
addAccountEnterpriseInfo
;
this
.
addAccountEnterpriseInfo
=
this
.
$options
.
data
.
call
(
this
).
addAccountEnterpriseInfo
;
this
.
addAccountCount
=
this
.
$options
.
data
.
call
(
this
).
addAccountCount
;
},
async
getAccountCount
(
tenantId
)
{
try
{
const
countResult
=
await
getEnterpriseAddAccountCountApi
(
tenantId
);
if
(
countResult
.
code
==
200
)
{
this
.
addAccountCount
=
countResult
.
data
;
}
}
catch
(
error
)
{
console
.
log
(
error
);
}
},
},
// 新增用户账号
// 新增用户账号
async
handleAddAccount
(
row
)
{
async
handleAddAccount
(
row
)
{
try
{
try
{
if
(
!
row
.
tenantId
)
return
this
.
$message
.
warning
(
"缺少租户ID"
);
if
(
!
row
.
tenantId
)
return
this
.
$message
.
warning
(
"缺少租户ID"
);
const
countResult
=
await
getEnterpriseAddAccountCountApi
(
row
.
tenantId
);
await
this
.
getAccountCount
(
row
.
tenantId
);
if
(
countResult
.
code
==
200
)
{
if
(
this
.
addAccountCount
>=
6
)
{
if
(
countResult
.
data
>=
6
)
{
this
.
addAccountCount
=
countResult
.
data
;
return
this
.
$message
.
warning
(
"该租户下已经添加过五个账号"
);
return
this
.
$message
.
warning
(
"该租户下已经添加过五个账号"
);
}
}
this
.
addAccountEnterpriseInfo
=
row
;
this
.
addAccountEnterpriseInfo
=
row
;
this
.
addAccountDialog
=
true
;
this
.
addAccountDialog
=
true
;
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
},
},
//获取企业方案列表
//获取企业方案列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment