Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
abce113e
Commit
abce113e
authored
Jul 26, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户
parent
7d99a434
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
17 deletions
+42
-17
index.vue
src/views/admin/user/index.vue
+42
-17
No files found.
src/views/admin/user/index.vue
View file @
abce113e
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属角色"
prop=
"members"
>
<el-form-item
label=
"所属角色"
prop=
"members"
>
<el-select
v-model=
"form.members"
multiple
filterable
placeholder=
"请选择"
:loading=
"loading"
:remote-method=
"remoteGroupsMethod"
remote
@
change=
"changeMembers"
>
<el-select
v-model=
"form.members"
multiple
filterable
placeholder=
"请选择"
:loading=
"loading"
:remote-method=
"remoteGroupsMethod"
remote
>
<el-option
<el-option
v-for=
"item in myGroups"
v-for=
"item in myGroups"
:key=
"item.id"
:key=
"item.id"
...
@@ -157,6 +157,7 @@ export default {
...
@@ -157,6 +157,7 @@ export default {
dataLimit
:
[],
//数据权限
dataLimit
:
[],
//数据权限
members
:
[],
members
:
[],
},
},
editCompanyId
:
undefined
,
//编辑时公司id
baranchQuery
:
{
baranchQuery
:
{
zoneId
:
null
zoneId
:
null
},
},
...
@@ -346,6 +347,7 @@ export default {
...
@@ -346,6 +347,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
allBranchCompany
=
res
.
data
;
this
.
allBranchCompany
=
res
.
data
;
getObj
(
row
.
id
).
then
(
response
=>
{
getObj
(
row
.
id
).
then
(
response
=>
{
this
.
editCompanyId
=
response
.
data
.
companyId
,
//所属分公司id
this
.
form
.
username
=
response
.
data
.
username
,
this
.
form
.
username
=
response
.
data
.
username
,
this
.
form
.
name
=
response
.
data
.
name
,
this
.
form
.
name
=
response
.
data
.
name
,
this
.
form
.
sex
=
response
.
data
.
sex
,
this
.
form
.
sex
=
response
.
data
.
sex
,
...
@@ -393,9 +395,9 @@ export default {
...
@@ -393,9 +395,9 @@ export default {
this
.
dialogStatus
=
'update'
;
this
.
dialogStatus
=
'update'
;
}
}
},
},
changeMembers
(){
debugger
//
changeMembers(){debugger
this
.
$set
(
this
.
form
,
"members"
,
this
.
form
.
members
)
//
this.$set(this.form, "members", this.form.members)
},
//
},
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'此操作将永久删除, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'此操作将永久删除, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -494,24 +496,47 @@ export default {
...
@@ -494,24 +496,47 @@ export default {
this
.
form
.
zoneId
=
item
;
this
.
form
.
zoneId
=
item
;
this
.
form
.
companyId
=
undefined
;
//片区修改后所属公司联动
this
.
form
.
companyId
=
undefined
;
//片区修改后所属公司联动
this
.
baranchQuery
.
zoneId
=
item
;
this
.
baranchQuery
.
zoneId
=
item
;
if
(
this
.
baranchQuery
.
zoneId
){
getAllBranchCompanyByZoneId
(
this
.
baranchQuery
)
getAllBranchCompanyByZoneId
(
this
.
baranchQuery
)
.
then
(
response
=>
{
.
then
(
response
=>
{
debugger
this
.
allBranchCompany
=
response
.
data
;
this
.
allBranchCompany
=
response
.
data
;
if
(
this
.
editCompanyId
){
this
.
form
.
companyId
=
this
.
editCompanyId
;
this
.
editCompanyId
=
undefined
;
}
})
})
}
},
},
resetTemp
()
{
resetTemp
()
{
this
.
editCompanyId
=
undefined
;
this
.
form
=
{
this
.
form
=
{
username
:
undefined
,
username
:
undefined
,
name
:
undefined
,
name
:
undefined
,
sex
:
'男'
,
sex
:
'男'
,
zoneId
:
undefined
,
status
:
1
,
passwordEdit
:
undefined
,
zoneId
:
undefined
,
//所属片区
companyId
:
undefined
,
companyId
:
undefined
,
//所属分公司id
password
:
""
,
companyName
:
""
,
//所属公司
state2
:
''
,
password
:
undefined
,
passwordEdit
:
undefined
,
description
:
undefined
,
description
:
undefined
,
dataLimit
:
[],
dataLimit
:
[],
//数据权限
members
:
[],
members
:
[],
};
};
// this.form = {
// username: undefined,
// name: undefined,
// status: 1,
// sex: '男',
// zoneId: undefined,
// passwordEdit:undefined,
// companyId: undefined,
// password: "",
// description: undefined,
// dataLimit: [],
// members: [],
// };
},
},
// initGroups() {
// initGroups() {
// getUsers(this.groupId).then(response => {
// getUsers(this.groupId).then(response => {
...
...
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