提交 8c244e81 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 aa4db965
...@@ -16,7 +16,6 @@ import InputBox from './components/input-box/input-box.vue' ...@@ -16,7 +16,6 @@ import InputBox from './components/input-box/input-box.vue'
import AppKeepAlive from './components/app-keep-alive/app-keep-alive.vue' import AppKeepAlive from './components/app-keep-alive/app-keep-alive.vue'
import TabPageExp from './components/tab-page-exp/tab-page-exp.vue' import TabPageExp from './components/tab-page-exp/tab-page-exp.vue'
import AppLang from './components/app-lang/app-lang.vue' import AppLang from './components/app-lang/app-lang.vue'
import AppTheme from './components/app-theme/app-theme.vue'
import AppUser from './components/app-user/app-user.vue' import AppUser from './components/app-user/app-user.vue'
import AppForm from './components/app-form/app-form.vue' import AppForm from './components/app-form/app-form.vue'
import APPAutocomplete from './components/app-autocomplete/app-autocomplete.vue' import APPAutocomplete from './components/app-autocomplete/app-autocomplete.vue'
...@@ -100,7 +99,6 @@ export const AppComponents = { ...@@ -100,7 +99,6 @@ export const AppComponents = {
v.component('app-keep-alive',AppKeepAlive); v.component('app-keep-alive',AppKeepAlive);
v.component('tab-page-exp',TabPageExp); v.component('tab-page-exp',TabPageExp);
v.component('app-lang',AppLang); v.component('app-lang',AppLang);
v.component('app-theme',AppTheme);
v.component('app-user',AppUser); v.component('app-user',AppUser);
v.component('app-form', AppForm); v.component('app-form', AppForm);
v.component('app-autocomplete', APPAutocomplete); v.component('app-autocomplete', APPAutocomplete);
......
<template> <template>
<div class="ibiz-page-tag" v-if="$store.state.pageMetas.length > 0"> <div class="ibiz-page-tag" v-if="$appService.navHistory.historyPathList > 0">
<div class="move-btn move-left" @click="leftMove"> <div class="move-btn move-left" @click="leftMove">
<icon type="ios-arrow-back" /> <icon type="ios-arrow-back" />
</div> </div>
<div ref="scrollBody" class="tags-body"> <div ref="scrollBody" class="tags-body">
<div ref="scrollChild" class="tags-container" :style="{left: styleLeft + 'px'}"> <div ref="scrollChild" class="tags-container" :style="{left: styleLeft + 'px'}">
<transition-group name="tags-transition"> <transition-group name="tags-transition">
<template v-for="(meta, index) of $store.state.pageMetas"> <template v-for="(page, index) of $appService.navHistory.historyPathList">
<Tag ref="tagElement" :key="index" :class="isActive(index) ? 'tag-is-active' : ''" :name="index" closable @click.native="changePage(index)" @on-close="onClose(index)"> <Tag ref="tagElement" :key="index" :class="isActive(page) ? 'tag-is-active' : ''" :name="index" closable @click.native="changePage(page)" @on-close="onClose(page)">
<div class="tag-text"> <div class="tag-text">
<div :title="getCaption(meta.caption, meta.info)" style="max-width: 300px;"> <div :title="getCaption(page.meta.caption, page.meta.info)" style="max-width: 300px;">
<i v-if="meta.iconCls && !Object.is(meta.iconCls, '')" :class="meta.iconCls"></i> <i v-if="page.meta.iconCls && !Object.is(page.meta.iconCls, '')" :class="page.meta.iconCls"></i>
<img v-else :src="meta.imgPath" class="text-icon" /> <img v-else :src="page.meta.imgPath" class="text-icon" />
&nbsp;{{getCaption(meta.caption, meta.info)}} &nbsp;{{getCaption(page.meta.caption, page.meta.info)}}
</div> </div>
</div> </div>
</Tag> </Tag>
...@@ -42,6 +42,7 @@ import { Environment } from '../../environments/environment'; ...@@ -42,6 +42,7 @@ import { Environment } from '../../environments/environment';
@Component({}) @Component({})
export default class TabPageExp extends Vue { export default class TabPageExp extends Vue {
@Provide() @Provide()
public styleLeft: number = 0; public styleLeft: number = 0;
...@@ -97,12 +98,11 @@ export default class TabPageExp extends Vue { ...@@ -97,12 +98,11 @@ export default class TabPageExp extends Vue {
/** /**
* 是否选中 * 是否选中
* *
* @param {(string | number)} index * @param {*} page
* @returns * @returns {boolean}
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public isActive(index: string | number) { public isActive(page: any): boolean {
const page = this.$store.state.pageTagList[index];
if (Object.is(page.fullPath, this.$route.fullPath)) { if (Object.is(page.fullPath, this.$route.fullPath)) {
return true; return true;
} }
...@@ -112,14 +112,12 @@ export default class TabPageExp extends Vue { ...@@ -112,14 +112,12 @@ export default class TabPageExp extends Vue {
/** /**
* 关闭 * 关闭
* *
* @param {*} event * @param {*} page
* @param {*} name
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public onClose(name: any) { public onClose(page: any) {
const page = this.$store.getters.getPage(name);
if (!page) { if (!page) {
this.$store.commit("deletePage", name); this.$appService.navHistory.remove(page);
this.gotoPage(); this.gotoPage();
} }
const appview = this.$store.getters['viewaction/getAppView'](page.viewtag); const appview = this.$store.getters['viewaction/getAppView'](page.viewtag);
...@@ -130,14 +128,14 @@ export default class TabPageExp extends Vue { ...@@ -130,14 +128,14 @@ export default class TabPageExp extends Vue {
title: title, title: title,
content: content, content: content,
onOk: () => { onOk: () => {
this.$store.commit("deletePage", name); this.$appService.navHistory.remove(page);
this.gotoPage(); this.gotoPage();
}, },
onCancel: () => { onCancel: () => {
} }
}); });
} else { } else {
this.$store.commit("deletePage", name); this.$appService.navHistory.remove(page);
this.gotoPage(); this.gotoPage();
} }
} }
...@@ -149,8 +147,7 @@ export default class TabPageExp extends Vue { ...@@ -149,8 +147,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public isClose() { public isClose() {
const pageTagList = this.$store.state.pageTagList; if (this.$appService.navHistory.historyList.length > 1) {
if (pageTagList.length > 1) {
return true; return true;
} }
return false; return false;
...@@ -159,12 +156,11 @@ export default class TabPageExp extends Vue { ...@@ -159,12 +156,11 @@ export default class TabPageExp extends Vue {
/** /**
* 切换分页 * 切换分页
* *
* @param {*} index * @param {*} page
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public changePage(index: any) { public changePage(page: any) {
this.$store.commit("setCurPage", index); this.gotoPage(page);
this.gotoPage();
} }
/** /**
...@@ -173,20 +169,14 @@ export default class TabPageExp extends Vue { ...@@ -173,20 +169,14 @@ export default class TabPageExp extends Vue {
* @returns * @returns
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public gotoPage() { public gotoPage(page?: any) {
const length = this.$store.state.historyPathList.length; if (page) {
if (length > 0) { if (Object.is(page.fullPath, this.$route.fullPath)) {
const path = this.$store.state.historyPathList[length - 1];
if (Object.is(path, this.$route.fullPath)) {
return; return;
} }
const index = this.$store.state.pageTagList.findIndex((page: any) => Object.is(page.fullPath, path));
if (index >= 0) {
const page = this.$store.state.pageTagList[index];
this.$router.push({ path: page.path, params: page.params, query: page.query }); this.$router.push({ path: page.path, params: page.params, query: page.query });
}
} else { } else {
let path: string | null = window.sessionStorage.getItem(Environment.AppName); const path: string | null = window.sessionStorage.getItem(Environment.AppName);
if(path) { if(path) {
this.$router.push({path: path}); this.$router.push({path: path});
} else { } else {
...@@ -214,11 +204,11 @@ export default class TabPageExp extends Vue { ...@@ -214,11 +204,11 @@ export default class TabPageExp extends Vue {
/** /**
* 移动至指定页面标签 * 移动至指定页面标签
* *
* @param {*} to * @param {*} page
* @memberof TabPageExp * @memberof TabPageExp
*/ */
public moveToView(to: any) { public moveToView(page: any) {
const pages: any[] = this.$store.state.pageTagList; const pages: any[] = this.$appService.navHistory.historyList;
let leftWidth: number = 0; let leftWidth: number = 0;
this.$nextTick(() => { this.$nextTick(() => {
pages.forEach((page, index) => { pages.forEach((page, index) => {
...@@ -227,7 +217,7 @@ export default class TabPageExp extends Vue { ...@@ -227,7 +217,7 @@ export default class TabPageExp extends Vue {
return ; return ;
} }
const el = tag[index].$el; const el = tag[index].$el;
if (Object.is(page.fullPath, to.fullPath)) { if (Object.is(page.fullPath, page.fullPath)) {
this.setLeft(el, leftWidth); this.setLeft(el, leftWidth);
} else { } else {
leftWidth += el.offsetWidth; leftWidth += el.offsetWidth;
...@@ -262,10 +252,10 @@ export default class TabPageExp extends Vue { ...@@ -262,10 +252,10 @@ export default class TabPageExp extends Vue {
*/ */
public doTagAction(name: string) { public doTagAction(name: string) {
if (Object.is(name, 'closeAll')) { if (Object.is(name, 'closeAll')) {
this.$store.commit("removeAllPage"); this.$appService.navHistory.reset();
this.gotoPage(); this.gotoPage();
} else if (Object.is(name, 'closeOther')) { } else if (Object.is(name, 'closeOther')) {
this.$store.commit("removeOtherPage"); this.$appService.navHistory.removeOther(this.$route);
this.moveToView(this.$route); this.moveToView(this.$route);
} }
} }
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-account-info-form/edit-account-info ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-account-info-form/edit-account-info
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-address-form/edit-address-form.vue' ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-address-form/edit-address-form.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-introduction-form/edit-introduction ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/edit-introduction-form/edit-introduction
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_treeexpbar from '@widgets/account/gradationtreeexpbar-treeexpbar/gra ...@@ -18,7 +18,7 @@ import view_treeexpbar from '@widgets/account/gradationtreeexpbar-treeexpbar/gra
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/info-all-form/info-all-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/info-all-form/info-all-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/info-major-contact-form/info-major-conta ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/info-major-contact-form/info-major-conta
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infot ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infot
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_grid from '@widgets/account/inner-pickip-grid/inner-pickip-grid.vue' ...@@ -18,7 +18,7 @@ import view_grid from '@widgets/account/inner-pickip-grid/inner-pickip-grid.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/account/inner-pickup-viewpickupviewpa ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/account/inner-pickup-viewpickupviewpa
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/account/pickup-viewpickupviewpanel-pi ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/account/pickup-viewpickupviewpanel-pi
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/quick-create-form/quick-create-form.vue' ...@@ -18,7 +18,7 @@ import view_form from '@widgets/account/quick-create-form/quick-create-form.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/account/summary-dashboard/summary-dashboard ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/account/summary-dashboard/summary-dashboard
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/activity-pointer/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/activity-pointer/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -16,7 +16,7 @@ import { ActivityPointerRedirectViewBase } from './activity-pointer-redirect-vie ...@@ -16,7 +16,7 @@ import { ActivityPointerRedirectViewBase } from './activity-pointer-redirect-vie
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/appointment/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/appointment/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/appointment/quick-create-form/quick-create-form. ...@@ -18,7 +18,7 @@ import view_form from '@widgets/appointment/quick-create-form/quick-create-form.
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_grid from '@widgets/contact/by-account-grid/by-account-grid.vue'; ...@@ -18,7 +18,7 @@ import view_grid from '@widgets/contact/by-account-grid/by-account-grid.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/address-edit-form/address-edit-form.vue' ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/address-edit-form/address-edit-form.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/book-edit-form/book-edit-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/book-edit-form/book-edit-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/market-edit-form/market-edit-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/market-edit-form/market-edit-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/person-edit-form/person-edit-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/person-edit-form/person-edit-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/abstract-info-form/abstract-info-form.vu ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/abstract-info-form/abstract-info-form.vu
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infot ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infot
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/contact/pickup-viewpickupviewpanel-pi ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/contact/pickup-viewpickupviewpanel-pi
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/quick-create-form/quick-create-form.vue' ...@@ -18,7 +18,7 @@ import view_form from '@widgets/contact/quick-create-form/quick-create-form.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/contact/con-abs-dashboard/con-abs-dashboard ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/contact/con-abs-dashboard/con-abs-dashboard
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/email/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/email/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/fax/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/fax/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/letter/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/letter/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/metric/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/metric/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/metric/pickup-viewpickupviewpanel-pic ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/metric/pickup-viewpickupviewpanel-pic
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/phone-call/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/phone-call/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/subject/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/subject/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/subject/pickup-viewpickupviewpanel-pi ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/subject/pickup-viewpickupviewpanel-pi
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/task/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/task/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/task/quick-create-form/quick-create-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/task/quick-create-form/quick-create-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/transaction-currency/default-searchform/de ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/transaction-currency/default-searchform/de
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/transaction-currency/pickup-viewpicku ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/transaction-currency/pickup-viewpicku
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/uom/default-searchform/default-searchform. ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/uom/default-searchform/default-searchform.
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/uom/pickup-viewpickupviewpanel-pickup ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/uom/pickup-viewpickupviewpanel-pickup
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice-detail/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice-detail/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/invoice-detail/default-searchform/default- ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/invoice-detail/default-searchform/default-
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/invoice/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/invoice/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice/info-form/info-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice/info-form/info-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/invoice/info-viewtabexppanel-tabexppanel/ ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/invoice/info-viewtabexppanel-tabexppanel/
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice/quick-create-form/quick-create-form.vue' ...@@ -18,7 +18,7 @@ import view_form from '@widgets/invoice/quick-create-form/quick-create-form.vue'
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/invoice/board-dashboard/board-dashboard.vue ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/invoice/board-dashboard/board-dashboard.vue
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-activity/default-searchform/defau ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-activity/default-searchform/defau
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-activity/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-activity/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-activity/quick-create-form/quick-create ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-activity/quick-create-form/quick-create
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/edit-head-form/edit-head-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/edit-head-form/edit-head-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign/default-searchform/default-search ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign/default-searchform/default-search
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-campagin-form/info-campagin-form.v ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-campagin-form/info-campagin-form.v
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-head-form/info-head-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-head-form/info-head-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-manager-form/info-manager-form.vue ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-manager-form/info-manager-form.vue
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-schedule-form/info-schedule-form.v ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/info-schedule-form/info-schedule-form.v
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/campaign/infotabexppanel-tabexppanel/info ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/campaign/infotabexppanel-tabexppanel/info
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-list/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-list/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-list/default-searchform/default-s ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-list/default-searchform/default-s
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/quick-create-form/quick-create-form.vue ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign/quick-create-form/quick-create-form.vue
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-response/default-searchform/defau ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/campaign-response/default-searchform/defau
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-response/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-response/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-response/quick-create-form/quick-create ...@@ -18,7 +18,7 @@ import view_form from '@widgets/campaign-response/quick-create-form/quick-create
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/campaign/head-summary-dashboard/head-summar ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/campaign/head-summary-dashboard/head-summar
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/campaign/summary-dashboard/summary-dashboar ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/campaign/summary-dashboard/summary-dashboar
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/ibiz-list/default-searchform/default-searc ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/ibiz-list/default-searchform/default-searc
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/abstract-info-form/abstract-info-form. ...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/abstract-info-form/abstract-info-form.
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/ibiz-list/infotabexppanel-tabexppanel/inf ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/ibiz-list/infotabexppanel-tabexppanel/inf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/abstract-edit-form/abstract-edit-form. ...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/abstract-edit-form/abstract-edit-form.
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/quick-create-form/quick-create-form.vu ...@@ -18,7 +18,7 @@ import view_form from '@widgets/ibiz-list/quick-create-form/quick-create-form.vu
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/ibiz-list/summary-dashboard/summary-dashboa ...@@ -18,7 +18,7 @@ import view_dashboard from '@widgets/ibiz-list/summary-dashboard/summary-dashboa
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/list-account/default-searchform/default-se ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/list-account/default-searchform/default-se
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-account/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-account/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-account/main-grid/main-grid.vue'; ...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-account/main-grid/main-grid.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-account/quick-create-by-list-form/quick-cre ...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-account/quick-create-by-list-form/quick-cre
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-contact/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-contact/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/list-contact/default-searchform/default-se ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/list-contact/default-searchform/default-se
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-contact/inner-grid/inner-grid.vue'; ...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-contact/inner-grid/inner-grid.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-lead/main-grid/main-grid.vue'; ...@@ -18,7 +18,7 @@ import view_grid from '@widgets/list-lead/main-grid/main-grid.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-lead/quick-create-by-list-form/quick-create ...@@ -18,7 +18,7 @@ import view_form from '@widgets/list-lead/quick-create-by-list-form/quick-create
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/price-level/default-searchform/default-sea ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/price-level/default-searchform/default-sea
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/price-level/pickup-viewpickupviewpane ...@@ -18,7 +18,7 @@ import view_pickupviewpanel from '@widgets/price-level/pickup-viewpickupviewpane
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/product-association/main-form/main-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/product-association/main-form/main-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product-association/default-searchform/def ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product-association/default-searchform/def
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_form from '@widgets/product/pro-info-form/pro-info-form.vue'; ...@@ -18,7 +18,7 @@ import view_form from '@widgets/product/pro-info-form/pro-info-form.vue';
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/product/info-viewtabexppanel-tabexppanel/ ...@@ -18,7 +18,7 @@ import view_tabexppanel from '@widgets/product/info-viewtabexppanel-tabexppanel/
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf ...@@ -20,7 +20,7 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag }); vm.$appService.navHistory.setViewTag(vm.viewtag, to);
}); });
} }
}) })
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册