diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue
index 74ef2ab..d633be1 100644
--- a/src/components/XyTable/index.vue
+++ b/src/components/XyTable/index.vue
@@ -199,7 +199,7 @@ export default {
>
{
- tableItem.map((item, index) => {
+ tableItem.filter(i => !i.hidden).map((item, index) => {
//自定义表格内容
if (item.customFn) {
return (
diff --git a/src/layout/index.vue b/src/layout/index.vue
index d2a4861..2da9b78 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -57,7 +57,7 @@
-
@@ -83,7 +83,7 @@
-
+
@@ -98,6 +98,10 @@ import { Navbar, Sidebar, AppMain } from "./components";
import ResizeMixin from "./mixin/ResizeHandler";
import worker from "./components/worker/index.vue";
import axios from "axios";
+window.$isShowTopBar = true;
+window.hideTopBar = () => {
+ window.$isShowTopBar = false
+}
export default {
name: "Layout",
components: {
@@ -109,6 +113,7 @@ export default {
mixins: [ResizeMixin],
data() {
return {
+ isShowTopBar: window.$isShowTopBar,
isIframe: false,
active: 0,
bookUrl: process.env.VUE_APP_OUT_Book,
@@ -164,6 +169,13 @@ export default {
this.$router.push(item.path);
},
},
+ created() {
+ window.routerTo = {};
+ for (let key in this.$store.state.permission.rootMenu) {
+ let item = this.$store.state.permission.rootMenu[key]
+ window.routerTo[item.path] = () => this.$router.push(item.path)
+ }
+ },
mounted() {
},
watch: {
@@ -384,7 +396,7 @@ div:has(iframe) {
overflow: hidden;
}
iframe {
- height: 100%;
+ height: calc(100vh - #{$topbarHeight});
width: calc(100% + 12px);
border: none;
@@ -395,3 +407,20 @@ iframe {
}
+
diff --git a/src/permission.js b/src/permission.js
index aaf1e94..7b25622 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -22,7 +22,6 @@ router.beforeEach(async (to, from, next) => {
// start progress bar
NProgress.start()
store.commit('app/SET_ISINIFRAME')
- console.log('iframe',store.state.app.isInIframe)
// set page title
document.title = getPageTitle(to.meta.title)
@@ -54,12 +53,7 @@ router.beforeEach(async (to, from, next) => {
if (hasToken) {
if (to.path === '/login') {
// if is logged in, redirect to the home page
- await store.dispatch('user/resetToken')
-
- next(to.fullPath)
- // next({
- // path: '/'
- // })
+ next({ path: '/' })
NProgress.done()
} else {
// determine whether the user has obtained his permission roles through getInfo
diff --git a/src/views/away/component/addAway.vue b/src/views/away/component/addAway.vue
index d71ff1b..24bfdc3 100644
--- a/src/views/away/component/addAway.vue
+++ b/src/views/away/component/addAway.vue
@@ -14,6 +14,7 @@
标题 :
是否用车 :
-
+
是
否
@@ -37,7 +38,7 @@
是否室内补助 :
-
+
是
否
@@ -49,6 +50,7 @@
开始时间 :
开始时间 :
用车审核 :
-
+
待申请
流转中
已结办
@@ -86,7 +89,7 @@
市内补助审核 :
-
+
待申请
流转中
已结办
@@ -98,7 +101,19 @@
出差审核 :
-
+
+ 待申请
+ 流转中
+ 已结办
+
+
+
+
+
+
+
出差报销审核 :
+
+
待申请
流转中
已结办
@@ -113,7 +128,9 @@