Commit 40464fdd by 无尘

fix: 修改标题

parent 04f5651f
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-11-24 17:13:13
* @LastEditTime: 2020-11-25 09:23:14
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
......@@ -154,9 +154,9 @@ export default {
const { staffName, staffId, wxEnterpriseId } = JSON.parse(localStorage.getItem('haoBanUser'));
that.haoban = { staffName, staffId, wxEnterpriseId };
let bread = [ { name: '指标管理', path: '/target-list' }, { name: '查看门店', path: '/target-store' }, { name: '完善日指标' } ];
// 修改面包屑
const { tab, applicationId, performanceYm } = that.$route.query;
const { tab, applicationId, performanceYm, flag } = that.$route.query;
let bread = [ { name: '指标管理', path: '/target-list' }, { name: '查看门店', path: '/target-store' }, { name: flag == false ? '完善日指标' : '查看日指标' } ];
that.form.date = performanceYm.split('-');
bread[0].path += `?applicationId=${applicationId}&tab=${tab}`;
bread[1].path += `?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-11-24 15:39:27
* @LastEditTime: 2020-11-25 09:23:34
-->
<template>
<div class="common-app-right">
......@@ -95,8 +95,8 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', '/target-list');
const { tab, applicationId, performanceYm, storeInfoId, storeName } = that.$route.query;
let bread = [ { name: '指标管理', path: `/target-list?tab=${tab}&applicationId=${applicationId}` }, { name: '查看门店', path: `/target-store?tab=${tab}&applicationId=${applicationId}&performanceYm=${performanceYm}` }, { name: '完善导购指标' } ];
const { tab, applicationId, performanceYm, storeInfoId, storeName, flag } = that.$route.query;
let bread = [ { name: '指标管理', path: `/target-list?tab=${tab}&applicationId=${applicationId}` }, { name: '查看门店', path: `/target-store?tab=${tab}&applicationId=${applicationId}&performanceYm=${performanceYm}` }, { name: flag == false ? '完善导购指标' : '查看导购指标' } ];
// 修改面包屑
that.$emit('change-nav', bread);
// 禁用判断
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment