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 22e29135
authored
Nov 16, 2018
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改菜单滚动条、恢复默认设置、设置样式
1 parent
e979cff7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
13 deletions
package.json
src/components/LeftManager/src/main.vue
src/components/Tree/src/main.vue
src/views/customer/menu/index.vue
src/views/customer/role/index.vue
vue.config.js
package.json
View file @
22e2913
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
},
},
"dependencies"
:
{
"dependencies"
:
{
"glsx-vue-common"
:
"^1.1.1
5
"
,
"glsx-vue-common"
:
"^1.1.1
7
"
,
"glsx-vue-components"
:
"^1.0.1
2
"
,
"glsx-vue-components"
:
"^1.0.1
5
"
,
"node-sass"
:
"^4.9.3"
,
"node-sass"
:
"^4.9.3"
,
"sass-loader"
:
"^7.1.0"
,
"sass-loader"
:
"^7.1.0"
,
"vee-validate"
:
"^2.1.0-beta.11"
,
"vee-validate"
:
"^2.1.0-beta.11"
,
...
...
src/components/LeftManager/src/main.vue
View file @
22e2913
<
template
>
<
template
>
<div
class=
"menu-box box"
>
<div
class=
"menu-box box"
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"console-btn"
>
<div
ref=
"topInfo"
class=
"console-btn"
>
<div><gl-button
@
click=
"openAll(openOrClose)"
>
{{
openOrClose
?
'全部展开'
:
'全部收起'
}}
</gl-button></div>
<div><gl-button
@
click=
"openAll(openOrClose)"
>
{{
openOrClose
?
'全部展开'
:
'全部收起'
}}
</gl-button></div>
<div><gl-button
@
click=
"pushSublings"
type=
'primary'
:disabled=
"value.push"
>
添加同级菜单
</gl-button></div>
<div><gl-button
@
click=
"pushSublings"
type=
'primary'
:disabled=
"value.push"
>
添加同级菜单
</gl-button></div>
<div><gl-button
@
click=
"pushChildren"
type=
'primary'
:disabled=
"value.push"
>
添加子菜单
</gl-button></div>
<div><gl-button
@
click=
"pushChildren"
type=
'primary'
:disabled=
"value.push"
>
添加子菜单
</gl-button></div>
</div>
</div>
<gl-scroll
:height=
'parseInt(this.$client_height() - this.height - 60)'
>
<tree
<tree
ref=
'tree'
ref=
'tree'
@
node-click=
'nodeClick'
@
node-click=
'nodeClick'
:isDepart=
'isDepart'
:isDepart=
'isDepart'
:updateTree=
"value.updateTree"
:updateTree=
"value.updateTree"
></tree>
></tree>
</gl-scroll>
</div>
</div>
</
template
>
</
template
>
...
@@ -21,7 +23,8 @@ export default {
...
@@ -21,7 +23,8 @@ export default {
name
:
'leftManager'
,
name
:
'leftManager'
,
data
()
{
data
()
{
return
{
return
{
openOrClose
:
true
openOrClose
:
true
,
height
:
''
}
}
},
},
props
:
{
props
:
{
...
@@ -39,6 +42,9 @@ export default {
...
@@ -39,6 +42,9 @@ export default {
isDepart
:
Boolean
,
isDepart
:
Boolean
,
eventBus
:
Object
eventBus
:
Object
},
},
mounted
()
{
this
.
height
=
this
.
$refs
.
topInfo
.
offsetHeight
},
methods
:
{
methods
:
{
// 展开与关闭
// 展开与关闭
openAll
(
val
)
{
openAll
(
val
)
{
...
...
src/components/Tree/src/main.vue
View file @
22e2913
...
@@ -114,8 +114,8 @@ function fn(data, pid) {
...
@@ -114,8 +114,8 @@ function fn(data, pid) {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.tree
{
/*
.tree {
height: 550px;
height: 550px;
overflow-y: scroll;
overflow-y: scroll;
}
}
*/
</
style
>
</
style
>
src/views/customer/menu/index.vue
View file @
22e2913
<
template
>
<
template
>
<gl-row
:gutter=
"100"
:style=
"
{ height: height }" class="mentBox">
<gl-row
:gutter=
"100"
class=
"mentBox"
>
<!-- :style="
{ height: height }" -->
<gl-col
:span=
'8'
>
<gl-col
:span=
'8'
>
<left-manager
:title=
'"菜单列表"'
v-model=
"menuMG"
:node-click=
'nodeClick'
:eventBus=
'eventBus'
></left-manager>
<left-manager
:title=
'"菜单列表"'
v-model=
"menuMG"
:node-click=
'nodeClick'
:eventBus=
'eventBus'
></left-manager>
</gl-col>
</gl-col>
...
@@ -105,9 +107,9 @@ export default {
...
@@ -105,9 +107,9 @@ export default {
LeftManager
,
LeftManager
,
RightForm
RightForm
},
},
mounted
()
{
//
mounted() {
this
.
height
=
this
.
$client_height
()
+
'px'
//
this.height = this.$client_height() + 'px'
},
//
},
methods
:
{
methods
:
{
nodeClick
(
data
,
node
,
that
,
props
)
{
nodeClick
(
data
,
node
,
that
,
props
)
{
this
.
menuMG
.
showDetails
=
true
this
.
menuMG
.
showDetails
=
true
...
...
src/views/customer/role/index.vue
View file @
22e2913
...
@@ -290,8 +290,8 @@ export default {
...
@@ -290,8 +290,8 @@ export default {
},
},
handleUserDetailClose
()
{
handleUserDetailClose
()
{
this
.
userDetailDialogVisible
()
this
.
userDetailDialogVisible
()
this
.
loadingTable
=
true
//
this.loadingTable = true
this
.
getList
()
//
this.getList()
this
.
apiParam
=
Object
this
.
apiParam
=
Object
},
},
handleCreateOrEdit
()
{
handleCreateOrEdit
()
{
...
...
vue.config.js
View file @
22e2913
...
@@ -28,7 +28,7 @@ module.exports = {
...
@@ -28,7 +28,7 @@ module.exports = {
// config.mode = mode
// config.mode = mode
},
},
devServer
:
{
devServer
:
{
port
:
8
085
,
port
:
8
888
,
host
:
'localhost'
,
host
:
'localhost'
,
open
:
true
,
open
:
true
,
proxy
:
{
proxy
:
{
...
...
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