Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 96c1735d
authored
Sep 29, 2018
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
https://github.com/glsx-web/authority
2 parents
ec86d91f
c8cf8829
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
src/components/RoleCreate/src/main.vue
src/components/Tree/src/main.vue
src/views/customer/user/index.vue
src/components/RoleCreate/src/main.vue
View file @
96c1735
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"菜单选项:"
prop=
"rights"
>
<gl-form-item
label=
"菜单选项:"
prop=
"rights"
>
<tree
ref=
'tree'
v-model=
"createRuleForm.rights"
:show-checkbox=
"show_checkbox"
:defaultExpandAll=
"defaultExpandAll"
:defaultCheckedKeys=
"createRuleForm.rights"
@
input=
"getMenuOption"
style=
"height:160px"
:key
=
"key
"
></tree>
<tree
ref=
'tree'
v-model=
"createRuleForm.rights"
:show-checkbox=
"show_checkbox"
:defaultExpandAll=
"defaultExpandAll"
:defaultCheckedKeys=
"createRuleForm.rights"
@
input=
"getMenuOption"
style=
"height:160px"
:key
Fresh=
"keyFresh
"
></tree>
</gl-form-item>
</gl-form-item>
</gl-form>
</gl-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
// import { roleCreateStructure } from '@/common/commonConst'
export
default
{
export
default
{
name
:
'RoleCreate'
,
name
:
'RoleCreate'
,
props
:
{
props
:
{
...
@@ -43,7 +42,7 @@ export default {
...
@@ -43,7 +42,7 @@ export default {
watch
:
{
watch
:
{
createVisible
(
val
)
{
createVisible
(
val
)
{
!
val
&&
this
.
$refs
[
'createRuleForm'
].
resetFields
()
!
val
&&
this
.
$refs
[
'createRuleForm'
].
resetFields
()
val
&&
(
this
.
key
=
Date
.
now
())
this
.
keyFresh
=
val
},
},
flagCOrE
(
val
)
{
flagCOrE
(
val
)
{
this
.
title
=
val
?
'新建角色'
:
'角色列表'
this
.
title
=
val
?
'新建角色'
:
'角色列表'
...
@@ -60,7 +59,7 @@ export default {
...
@@ -60,7 +59,7 @@ export default {
departName
:
[],
departName
:
[],
numberErr
:
false
,
numberErr
:
false
,
title
:
''
,
title
:
''
,
key
1
:
Date
.
now
()
,
key
Fresh
:
Boolean
,
createRules
:
{
createRules
:
{
roleName
:
[
roleName
:
[
{
required
:
true
,
message
:
'请输入角色名称!'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入角色名称!'
,
trigger
:
'blur'
}
...
...
src/components/Tree/src/main.vue
View file @
96c1735
<
template
>
<
template
>
<div
class=
"tree"
:style=
"treeStyle"
:key=
"key"
>
<div
class=
"tree"
:style=
"treeStyle"
>
<gl-tree
<gl-tree
ref=
'tree'
ref=
'tree'
highlight-current
highlight-current
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
}
}
},
},
props
:
{
props
:
{
key
:
Number
,
key
Fresh
:
Boolean
,
showCheckbox
:
Boolean
,
showCheckbox
:
Boolean
,
value
:
null
,
value
:
null
,
defaultExpandAll
:
Boolean
,
defaultExpandAll
:
Boolean
,
...
@@ -41,6 +41,11 @@ export default {
...
@@ -41,6 +41,11 @@ export default {
propsData
:
null
propsData
:
null
},
},
watch
:
{
watch
:
{
keyFresh
(
val
)
{
// console.log(`keyFresh----------------------${this.keyFresh}`)
// console.log(this.defaultCheckedKeys)
val
&&
this
.
loadingTree
()
},
propsData
(
val
)
{
propsData
(
val
)
{
this
.
loadingTree
()
this
.
loadingTree
()
}
}
...
...
src/views/customer/user/index.vue
View file @
96c1735
...
@@ -352,14 +352,14 @@ export default {
...
@@ -352,14 +352,14 @@ export default {
this
.
consoleParam
=
[]
this
.
consoleParam
=
[]
this
.
flagRoleOrUser
=
false
this
.
flagRoleOrUser
=
false
this
.
apiParam
=
this
.
$deep_clone
(
rows
[
index
])
this
.
apiParam
=
this
.
$deep_clone
(
rows
[
index
])
console
.
log
(
rows
[
index
])
//
console.log(rows[index])
this
.
apiParam
.
roles
=
this
.
findRolesName
(
this
.
apiParam
.
roles
)
this
.
apiParam
.
roles
=
this
.
findRolesName
(
this
.
apiParam
.
roles
)
console
.
log
(
this
.
apiParam
)
//
console.log(this.apiParam)
this
.
userDetailVisible
=
!
this
.
userDetailVisible
this
.
userDetailVisible
=
!
this
.
userDetailVisible
},
},
handleUserDetailClose
()
{
handleUserDetailClose
()
{
this
.
userDetailVisible
=
!
this
.
userDetailVisible
this
.
userDetailVisible
=
!
this
.
userDetailVisible
this
.
apiParam
=
Number
this
.
apiParam
=
Object
}
}
// 修改启用禁用
// 修改启用禁用
// updateState() {
// updateState() {
...
...
Write
Preview
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