-
- {{ $t('panel.view') }}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{ $t('panel.module') }}
-
+
+
+ {{ $t('panel.module') }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{
this.show = false
})
@@ -222,7 +240,10 @@ export default {
this.$router.replace('/panel/index')
},
showPanel(type) {
- this.show = !this.show
+ debugger
+ if (this.showIndex === -1 || this.showIndex === type) {
+ this.show = !this.show
+ }
this.showIndex = type
},
addEventClick() {
@@ -230,7 +251,7 @@ export default {
},
closeSidebar(evt) {
const parent = evt.target.closest('.button-div-class')
- const self = evt.target.closest('.leftPanel')
+ const self = evt.target.closest('.el-drawer__wrapper')
// 点击样式按钮 排除
const stick = evt.target.closest('.el-icon-magic-stick')
if (!parent && !self && !stick) {
@@ -239,13 +260,13 @@ export default {
this.showIndex = -1
}
},
- insertToBody() {
- this.$nextTick(() => {
- const elx = this.$refs.leftPanel
- const body = document.querySelector('body')
- body.insertBefore(elx, body.firstChild)
- })
- },
+ // insertToBody() {
+ // this.$nextTick(() => {
+ // const elx = this.$refs.leftPanel
+ // const body = document.querySelector('body')
+ // body.insertBefore(elx, body.firstChild)
+ // })
+ // },
resetID(data) {
if (data) {
@@ -422,4 +443,19 @@ export default {
}
}
+.this_canvas{
+ height: calc(100vh - 91px);
+ overflow: auto;
+}
+.el-main{
+ height: calc(100vh - 91px);
+ padding: 0!important;
+ overflow: auto;
+ position: relative;
+}
+
+.el-main >>> .el-drawer__wrapper{
+ width: 310px!important;
+}
+