Commit 22e29135 by 胡悦

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

1 parent e979cff7
...@@ -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.15", "glsx-vue-common": "^1.1.17",
"glsx-vue-components": "^1.0.12", "glsx-vue-components": "^1.0.15",
"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",
......
<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) {
......
...@@ -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>
<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
......
...@@ -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() {
......
...@@ -28,7 +28,7 @@ module.exports = { ...@@ -28,7 +28,7 @@ module.exports = {
// config.mode = mode // config.mode = mode
}, },
devServer: { devServer: {
port: 8085, port: 8888,
host: 'localhost', host: 'localhost',
open: true, open: true,
proxy: { proxy: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!