1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

add the price query window to the rais menu (#549)

when opening the window you must hide the menu and the tag-views
This commit is contained in:
Elsio Sanchez 2020-11-28 17:48:47 -04:00 committed by GitHub
parent 89904a5d94
commit 640851f909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View File

@ -21,14 +21,11 @@ export default {
switch (this.metadata.fileName) { switch (this.metadata.fileName) {
case 'PriceChecking': case 'PriceChecking':
form = import('@/components/ADempiere/Form/PriceChecking') form = import('@/components/ADempiere/Form/PriceChecking')
this.$store.dispatch('settings/changeSetting', {
key: 'showNavar',
value: true
})
this.$store.dispatch('settings/changeSetting', { this.$store.dispatch('settings/changeSetting', {
key: 'showMenu', key: 'showMenu',
value: false value: false
}) })
this.$store.dispatch('app/toggleSideBar', false)
this.$store.dispatch('settings/changeSetting', { this.$store.dispatch('settings/changeSetting', {
key: 'tagsView', key: 'tagsView',
value: false value: false

View File

@ -106,6 +106,7 @@ export default {
return this.$store.state.settings.showMenu return this.$store.state.settings.showMenu
}, },
set(val) { set(val) {
this.$store.dispatch('app/toggleSideBar')
this.$store.dispatch('settings/changeSetting', { this.$store.dispatch('settings/changeSetting', {
key: 'showMenu', key: 'showMenu',
value: val value: val

View File

@ -2,7 +2,7 @@
<div :class="classObj" class="app-wrapper"> <div :class="classObj" class="app-wrapper">
<div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside" /> <div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
<sidebar v-show="showMenu" class="sidebar-container" /> <sidebar v-show="showMenu" class="sidebar-container" />
<div :class="{hasTagsView:needTagsView}" class="main-container"> <div :class="{hasTagsView:needTagsView}" class="main-container" :style="showMenu ? '' : 'margin-left:0px'">
<div :class="{'fixed-header':fixedHeader}"> <div :class="{'fixed-header':fixedHeader}">
<navbar v-show="showNavar" /> <navbar v-show="showNavar" />
<tags-view v-if="needTagsView" /> <tags-view v-if="needTagsView" />

View File

@ -68,13 +68,14 @@ const staticRoutes = [
{ {
path: '/PriceChecking', path: '/PriceChecking',
component: Layout, component: Layout,
hidden: true, hidden: false,
children: [ children: [
{ {
path: '/PriceChecking', path: '/PriceChecking',
component: () => import('@/views/ADempiere/Form'), component: () => import('@/views/ADempiere/Form'),
name: 'PriceChecking', name: 'PriceChecking',
meta: { meta: {
icon: 'shopping',
title: 'PriceChecking', title: 'PriceChecking',
isIndex: true isIndex: true
} }
@ -84,7 +85,7 @@ const staticRoutes = [
{ {
path: '/BarcodeReader', path: '/BarcodeReader',
component: Layout, component: Layout,
hidden: false, hidden: true,
children: [ children: [
{ {
path: '/BarcodeReader', path: '/BarcodeReader',