Commit 22e29135 by 胡悦

修改菜单滚动条、恢复默认设置、设置样式

1 parent e979cff7
......@@ -8,8 +8,8 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"glsx-vue-common": "^1.1.15",
"glsx-vue-components": "^1.0.12",
"glsx-vue-common": "^1.1.17",
"glsx-vue-components": "^1.0.15",
"node-sass": "^4.9.3",
"sass-loader": "^7.1.0",
"vee-validate": "^2.1.0-beta.11",
......
<template>
<div class="menu-box box">
<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="pushSublings" type='primary' :disabled="value.push">添加同级菜单</gl-button></div>
<div><gl-button @click="pushChildren" type='primary' :disabled="value.push">添加子菜单</gl-button></div>
</div>
<gl-scroll :height='parseInt(this.$client_height() - this.height - 60)'>
<tree
ref='tree'
@node-click='nodeClick'
:isDepart='isDepart'
:updateTree="value.updateTree"
></tree>
</gl-scroll>
</div>
</template>
......@@ -21,7 +23,8 @@ export default {
name: 'leftManager',
data() {
return {
openOrClose: true
openOrClose: true,
height: ''
}
},
props: {
......@@ -39,6 +42,9 @@ export default {
isDepart: Boolean,
eventBus: Object
},
mounted() {
this.height = this.$refs.topInfo.offsetHeight
},
methods: {
// 展开与关闭
openAll(val) {
......
......@@ -114,8 +114,8 @@ function fn(data, pid) {
}
</script>
<style scoped>
.tree {
/* .tree {
height: 550px;
overflow-y: scroll;
}
} */
</style>
<template>
<gl-row :gutter="100" :style="{ height: height }" class="mentBox">
<gl-row :gutter="100"
class="mentBox">
<!-- :style="{ height: height }" -->
<gl-col :span='8'>
<left-manager :title='"菜单列表"' v-model="menuMG" :node-click='nodeClick' :eventBus='eventBus'></left-manager>
</gl-col>
......@@ -105,9 +107,9 @@ export default {
LeftManager,
RightForm
},
mounted() {
this.height = this.$client_height() + 'px'
},
// mounted() {
// this.height = this.$client_height() + 'px'
// },
methods: {
nodeClick(data, node, that, props) {
this.menuMG.showDetails = true
......
......@@ -290,8 +290,8 @@ export default {
},
handleUserDetailClose() {
this.userDetailDialogVisible()
this.loadingTable = true
this.getList()
// this.loadingTable = true
// this.getList()
this.apiParam = Object
},
handleCreateOrEdit() {
......
......@@ -28,7 +28,7 @@ module.exports = {
// config.mode = mode
},
devServer: {
port: 8085,
port: 8888,
host: 'localhost',
open: true,
proxy: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!