mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev
This commit is contained in:
commit
c207de7aab
@ -6,7 +6,7 @@
|
||||
:class="getThemeConfig.isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'"
|
||||
@click="onThemeConfigChange"
|
||||
></i>
|
||||
<el-breadcrumb class="layout-navbars-breadcrumb-hide" :style="{ display: isShowBreadcrumb }">
|
||||
<el-breadcrumb class="layout-navbars-breadcrumb-hide" v-if="isShowcrumb" :style="{ display: isShowBreadcrumb }">
|
||||
<transition-group name="breadcrumb" mode="out-in">
|
||||
<el-breadcrumb-item v-for="(v, k) in [...breadCrumbList, ...crumbPast]" :key="v.path">
|
||||
<span v-if="k == 1" class="layout-navbars-breadcrumb-span">
|
||||
@ -88,6 +88,14 @@ export default {
|
||||
return isBreadcrumb ? '' : 'none';
|
||||
}
|
||||
},
|
||||
isShowcrumb() {
|
||||
const { layout } = this.$store.state.themeConfig.themeConfig;
|
||||
if (layout === 'transverse' || layout === 'classic') {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.initRouteSplit(this.$route.path);
|
||||
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
this.tagsRefsIndex = k;
|
||||
try {
|
||||
if (v.name == 'home_index') {
|
||||
this.$router.replace(`${setting.routePre}/home/`);
|
||||
this.$router.replace(`${setting.routePre}/home_page`);
|
||||
} else {
|
||||
this.$router.push(v);
|
||||
}
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
<div class="diy-page">
|
||||
<div class="i-layout-page-header header-title">
|
||||
<div class="fl_header">
|
||||
<router-link :to="{ path: $routeProStr + '/setting/pages/devise' }"
|
||||
<!-- <router-link :to="{ path: $routeProStr + '/setting/pages/devise' }"
|
||||
><Button icon="ios-arrow-back" size="small" type="text">返回</Button></router-link
|
||||
>
|
||||
<Divider type="vertical" />
|
||||
> -->
|
||||
<!-- <Divider type="vertical" /> -->
|
||||
<span class="ivu-page-header-title mr20" style="padding: 0" v-text="$route.meta.title"></span>
|
||||
<div class="rbtn">
|
||||
<Button v-if="pageId !== 0" class="bnt" @click="setmoren" :loading="loading">保存默认</Button>
|
||||
@ -13,6 +13,7 @@
|
||||
<!-- <div class="data" @click="setmoren">设置默认</div>
|
||||
<div class="data" @click="getmoren">恢复默认</div> -->
|
||||
<Button class="bnt ml20" type="primary" @click="saveConfig" :loading="loading">保存</Button>
|
||||
<Button class="ml20" type="info" @click="closeWindow" :loading="loading">保存并关闭</Button>
|
||||
<Button class="bnt ml20" @click="reast">重置</Button>
|
||||
</div>
|
||||
</div>
|
||||
@ -291,27 +292,6 @@ export default {
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
// 导航离开该组件的对应路由时调用
|
||||
// 可以访问组件实例 `this`
|
||||
if (to.name === 'setting_devise') {
|
||||
this.$Modal.confirm({
|
||||
title: '确定要离开当前页吗?',
|
||||
content: '离开前请确认保存您的设计',
|
||||
okText: '保存并离开',
|
||||
cancelText: '离开',
|
||||
loading: true,
|
||||
onOk: () => {
|
||||
setTimeout(() => {
|
||||
this.saveConfig();
|
||||
this.$Modal.remove();
|
||||
next();
|
||||
}, 1500);
|
||||
},
|
||||
onCancel: () => {
|
||||
next();
|
||||
},
|
||||
});
|
||||
}
|
||||
// 执行路由跳转
|
||||
},
|
||||
beforeCreate() {
|
||||
this.$store.commit('mobildConfig/titleUpdata', '');
|
||||
@ -361,6 +341,26 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
closeWindow() {
|
||||
this.$Modal.confirm({
|
||||
title: '确定保存并关闭当前页吗?',
|
||||
content: '离开前请确认保存您的设计',
|
||||
okText: '保存并关闭',
|
||||
cancelText: '关闭',
|
||||
loading: true,
|
||||
onOk: () => {
|
||||
setTimeout(() => {
|
||||
this.saveConfig();
|
||||
this.$Modal.remove();
|
||||
window.close();
|
||||
}, 1500);
|
||||
},
|
||||
onCancel: () => {
|
||||
window.close();
|
||||
next();
|
||||
},
|
||||
});
|
||||
},
|
||||
leftRemove({ to, from, item, clone, oldIndex, newIndex }) {
|
||||
if (this.isSearch && newIndex == 0) {
|
||||
if (item._underlying_vm_.name == 'z_wechat_attention') {
|
||||
|
||||
@ -52,7 +52,7 @@ export default {
|
||||
component: LayoutMain,
|
||||
children: [
|
||||
{
|
||||
path: routePre + '/home/',
|
||||
path: routePre + '/home_page',
|
||||
name: `${pre}index`,
|
||||
header: 'home',
|
||||
meta: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user