Commit aeb3511a by caoyanzhi

update: 评价管理菜单调整

parent f99ad2f9
......@@ -8,31 +8,23 @@ export default {
path: 'evaluation',
name: '服务监督',
component: () => import(/* webpackChunkName: "evaluation" */ '../../views/evaluation/index.vue'),
redirect: '/evaluation/newest',
redirect: '/evaluation/manage',
children: [
{
path: 'index',
name: '最新评价',
// component: newest,
redirect: '/evaluation/newest',
redirect: '/evaluation/manage',
meta: {
path: '/evaluation/newest'
path: '/evaluation/manage'
}
},
{
path: 'newest',
name: '最新评价',
component: () => import(/* webpackChunkName: "evaluation" */ '../../views/evaluation/newest.vue'),
path: 'manage',
name: '评价管理',
component: () => import(/* webpackChunkName: "evaluation" */ '../../views/evaluation/manage.vue'),
meta: {
path: '/evaluation/newest'
}
},
{
path: 'charts',
name: '评论概览',
component: () => import(/* webpackChunkName: "evaluation" */ '../../views/evaluation/charts.vue'),
meta: {
path: '/evaluation/charts'
path: '/evaluation/manage'
}
},
{
......
<template>
<section class="eval-charts">
<div class="dm-form__wrap">
<div class="page-tip">以下数据取自近180天</div>
<store-group width="240" class="pr5" :model="storeGroupData" @commit-store="getStoreGroup"></store-group>
<span class="pl10 danger-color">*以下数据取自近180天</span>
</div>
<div class="dm-form__wrap">
<h3 class="dm-title__label">
......@@ -77,7 +77,6 @@ export default {
};
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '企业管理', path: '' }, { name: '服务监督', path: '/evaluation' }, { name: '评价概览', path: '' }]); // eslint-disable-line
this.evaluateOverviewEchart(1);
this.evaluateOverviewEchart(2);
this.evaluateOverviewEchart(3);
......
<template>
<el-tabs class="evaluation-manage" v-model="activeName">
<el-tab-pane label="最新评价" name="first">
<newest></newest>
</el-tab-pane>
<el-tab-pane label="评价概览" name="second">
<charts></charts>
</el-tab-pane>
</el-tabs>
</template>
<script>
import Newest from './newest.vue';
import Charts from './charts.vue';
export default {
name: 'Manage',
components: { Newest, Charts },
data() {
return {
activeName: 'first'
};
}
};
</script>
<style lang="scss" scoped>
.evaluation-manage /deep/ .el-tabs__nav-wrap {
padding-left: 20px;
}
</style>
<template>
<section class="eval-newest dm-wrap" v-loading="loading">
<div class="page-tip">最新评价会在评价时间的隔天展示在小程序端附近门店的门店详情处</div>
<div class="clearfix pb22">
<store-group width="240" class="pr5" :model="storeGroupData" @commit-store="getStoreGroup"></store-group>
<el-date-picker v-if="$route.meta.type !== 'bad'" class="w250" v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="refresh"></el-date-picker>
......@@ -169,23 +170,6 @@ export default {
},
created() {
this.getTableList();
if (this.$route.params.type) {
this.$store.commit('mutations_breadcrumb', [{ name: '企业管理', path: '' }, { name: '服务监督', path: '/evaluation' }, { name: '评价概览', path: '/evaluation/index/charts' }, { name: '差评详情', path: '' }]); // eslint-disable-line
} else {
this.$store.commit('mutations_breadcrumb', [{ name: '企业管理', path: '' }, { name: '服务监督', path: '/evaluation' }, { name: '最新评价', path: '' }]); // eslint-disable-line
}
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
mounted() {
this.getEvaluateSetting();
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>最新评价会在评价时间的隔天展示在小程序端附近门店的门店详情处
</div>`
);
},
watch: {
$route(val) {
......
......@@ -58,7 +58,6 @@ export default {
};
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '企业管理', path: '' }, { name: '服务监督', path: '/evaluation' }, { name: '投诉与建议', path: '/evaluation/suggestion' }, { name: '投诉与建议处理', path: '' }]); // eslint-disable-line
this.getSuggestionsDetail();
},
computed: {
......
......@@ -90,7 +90,6 @@ export default {
this.listParams.status = Number(this.$route.query.status) || '';
this.pageSuggestionsList();
this.$store.commit('mutations_breadcrumb', [{ name: '企业管理', path: '' }, { name: '服务监督', path: '/evaluation' }, { name: '投诉与建议', path: '/suggestion' }]); // eslint-disable-line
},
methods: {
search() {
......
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