Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
b2347643
Commit
b2347643
authored
Aug 06, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增编辑用户切换数据消失
parent
fe9f13c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
src/pages/authority/user/organizationuser.vue
src/pages/authority/user/organizationuser.vue
+16
-12
No files found.
src/pages/authority/user/organizationuser.vue
View file @
b2347643
...
...
@@ -349,10 +349,10 @@ export default {
});
},
change_type
()
{
this
.
form
.
systemname
=
""
;
this
.
form
.
domain
=
""
;
this
.
form
.
ip
=
[];
this
.
form
.
origin
=
""
;
//
this.form.systemname = "";
//
this.form.domain = "";
//
this.form.ip = [];
//
this.form.origin = "";
},
handleClose
(
tag
)
{
this
.
form
.
ip
.
splice
(
this
.
form
.
ip
.
indexOf
(
tag
),
1
);
...
...
@@ -473,18 +473,22 @@ export default {
this
.
$router
.
back
(
-
1
);
},
add_user
()
{
// this.form.systemname = "";
// this.form.domain = "";
// this.form.ip = [];
// this.form.origin = "";
var
temp
=
{
user_id
:
this
.
form
.
account
,
// 用户名
password
:
this
.
form
.
password
,
user_name
:
this
.
form
.
nickname
,
// 昵称
system_name
:
this
.
form
.
systemname
,
//系统名称
system_name
:
this
.
form
.
type
>=
2
?
this
.
form
.
systemname
:
''
,
//系统名称
phone
:
this
.
form
.
phone
+
""
,
// 电话号
email
:
this
.
form
.
email
,
// 邮箱
department_id
:
this
.
form
.
origin
,
// 组织id
department_id
:
this
.
form
.
type
>=
2
?
this
.
form
.
origin
:
''
,
// 组织id
is_admin
:
this
.
form
.
type
,
state
:
this
.
form
.
able
,
// 用户状态,1——启用,0 禁用
domain_name
:
this
.
form
.
domain
,
//
ip_whitelist
:
this
.
form
.
ip
,
//
domain_name
:
this
.
form
.
type
>=
3
?
this
.
form
.
domain
:
''
,
//
ip_whitelist
:
this
.
form
.
type
>=
3
?
this
.
form
.
ip
:[]
,
//
description
:
this
.
form
.
desc
,
//描述
link_man
:
this
.
form
.
contact
,
};
...
...
@@ -507,14 +511,14 @@ export default {
var
temp
=
{
user_id
:
this
.
form
.
account
,
// 用户名
user_name
:
this
.
form
.
nickname
,
// 昵称
system_name
:
this
.
form
.
systemname
,
//系统名称
system_name
:
this
.
form
.
type
>=
2
?
this
.
form
.
systemname
:
''
,
//系统名称
phone
:
this
.
form
.
phone
+
""
,
// 电话号
email
:
this
.
form
.
email
,
// 邮箱
department_id
:
this
.
form
.
origin
,
// 组织id
department_id
:
this
.
form
.
type
>=
2
?
this
.
form
.
origin
:
''
,
// 组织id
is_admin
:
this
.
form
.
type
,
state
:
this
.
form
.
able
,
// 用户状态,1——启用,0 禁用
domain_name
:
this
.
form
.
domain
,
//
ip_whitelist
:
this
.
form
.
ip
&&
this
.
form
.
ip
.
length
?
this
.
form
.
ip
:
[],
//
domain_name
:
this
.
form
.
type
>=
3
?
this
.
form
.
domain
:
''
,
//
ip_whitelist
:
this
.
form
.
type
>=
3
?
this
.
form
.
ip
&&
this
.
form
.
ip
.
length
?
this
.
form
.
ip
:
[]:
[],
//
description
:
this
.
form
.
desc
,
//描述
link_man
:
this
.
form
.
contact
,
};
...
...
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