forked from qiushanhe/dm-manage-web
接待人页面
This commit is contained in:
@@ -7,23 +7,27 @@
|
|||||||
*/
|
*/
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import store from './store';
|
import store from './store';
|
||||||
import {
|
import { Message } from 'element-ui';
|
||||||
Message
|
|
||||||
} from 'element-ui';
|
|
||||||
import NProgress from 'nprogress';
|
import NProgress from 'nprogress';
|
||||||
import 'nprogress/nprogress.css';
|
import 'nprogress/nprogress.css';
|
||||||
import {
|
import { getToken } from '@/utils/auth';
|
||||||
getToken
|
import { isRelogin } from '@/utils/request';
|
||||||
} from '@/utils/auth';
|
|
||||||
import {
|
|
||||||
isRelogin
|
|
||||||
} from '@/utils/request';
|
|
||||||
|
|
||||||
NProgress.configure({
|
NProgress.configure({
|
||||||
showSpinner: false
|
showSpinner: false
|
||||||
});
|
});
|
||||||
|
|
||||||
const whiteList = ['/login', '/auth-redirect', '/bind', '/register', '/question', '/clue/feedback/follow', '/clue/feedback/arrival'];
|
const whiteList = [
|
||||||
|
'/login',
|
||||||
|
'/auth-redirect',
|
||||||
|
'/bind',
|
||||||
|
'/register',
|
||||||
|
'/question',
|
||||||
|
'/clue/feedback/follow',
|
||||||
|
'/clue/feedback/arrival',
|
||||||
|
'/coach/count',
|
||||||
|
'/coach/count/detail'
|
||||||
|
];
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
|
|||||||
@@ -29,55 +29,69 @@ import Layout from '@/layout';
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// 公共路由
|
// 公共路由
|
||||||
export const constantRoutes = [{
|
export const constantRoutes = [
|
||||||
|
{
|
||||||
path: '/redirect',
|
path: '/redirect',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: '/redirect/:path(.*)',
|
path: '/redirect/:path(.*)',
|
||||||
component: () => import('@/views/redirect')
|
component: () => import('@/views/redirect')
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
component: () => import('@/views/login'),
|
component: () => import('@/views/login'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/register',
|
path: '/register',
|
||||||
component: () => import('@/views/register'),
|
component: () => import('@/views/register'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/question',
|
path: '/question',
|
||||||
component: () => import('@/views/question'),
|
component: () => import('@/views/question'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/clue/feedback/follow',
|
path: '/clue/feedback/follow',
|
||||||
component: () => import('@/views/zs/feedback/follow'),
|
component: () => import('@/views/zs/feedback/follow'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/clue/feedback/arrival',
|
path: '/clue/feedback/arrival',
|
||||||
component: () => import('@/views/zs/feedback/arrival'),
|
component: () => import('@/views/zs/feedback/arrival'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
path: '/coach/count',
|
||||||
|
component: () => import('@/views/sch/coach/count'),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/coach/count/detail',
|
||||||
|
component: () => import('@/views/sch/coach/count/detail'),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
path: '/404',
|
path: '/404',
|
||||||
component: () => import('@/views/error/404'),
|
component: () => import('@/views/error/404'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/401',
|
path: '/401',
|
||||||
component: () => import('@/views/error/401'),
|
component: () => import('@/views/error/401'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: 'index',
|
redirect: 'index',
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/index'),
|
component: () => import('@/views/index'),
|
||||||
name: 'Index',
|
name: 'Index',
|
||||||
@@ -86,42 +100,44 @@ export const constantRoutes = [{
|
|||||||
icon: 'dashboard',
|
icon: 'dashboard',
|
||||||
affix: true
|
affix: true
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
// {
|
},
|
||||||
// path: '/demo',
|
// {
|
||||||
// component: Layout,
|
// path: '/demo',
|
||||||
// redirect: 'noredirect',
|
// component: Layout,
|
||||||
// meta: {
|
// redirect: 'noredirect',
|
||||||
// title: 'Demo',
|
// meta: {
|
||||||
// icon: 'xx'
|
// title: 'Demo',
|
||||||
// },
|
// icon: 'xx'
|
||||||
// children: [{
|
// },
|
||||||
// path: '/base-page',
|
// children: [{
|
||||||
// component: () => import('@/views/demo/basePage/index'),
|
// path: '/base-page',
|
||||||
// name: 'BasePage',
|
// component: () => import('@/views/demo/basePage/index'),
|
||||||
// meta: {
|
// name: 'BasePage',
|
||||||
// title: 'BasePage',
|
// meta: {
|
||||||
// icon: 'xx'
|
// title: 'BasePage',
|
||||||
// }
|
// icon: 'xx'
|
||||||
// },
|
// }
|
||||||
// {
|
// },
|
||||||
// path: '/base-components',
|
// {
|
||||||
// component: () => import('@/views/demo/baseComponents/index'),
|
// path: '/base-components',
|
||||||
// name: 'BaseComponents',
|
// component: () => import('@/views/demo/baseComponents/index'),
|
||||||
// meta: {
|
// name: 'BaseComponents',
|
||||||
// title: 'BaseComponents',
|
// meta: {
|
||||||
// icon: 'xx'
|
// title: 'BaseComponents',
|
||||||
// }
|
// icon: 'xx'
|
||||||
// }
|
// }
|
||||||
// ]
|
// }
|
||||||
// },
|
// ]
|
||||||
{
|
// },
|
||||||
|
{
|
||||||
path: '/user',
|
path: '/user',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
redirect: 'noredirect',
|
redirect: 'noredirect',
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'profile',
|
path: 'profile',
|
||||||
component: () => import('@/views/system/user/profile/index'),
|
component: () => import('@/views/system/user/profile/index'),
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
@@ -129,17 +145,20 @@ export const constantRoutes = [{
|
|||||||
title: '个人中心',
|
title: '个人中心',
|
||||||
icon: 'user'
|
icon: 'user'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// 动态路由,基于用户权限动态去加载
|
// 动态路由,基于用户权限动态去加载
|
||||||
export const dynamicRoutes = [{
|
export const dynamicRoutes = [
|
||||||
|
{
|
||||||
path: '/system/user-auth',
|
path: '/system/user-auth',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
permissions: ['system:user:edit'],
|
permissions: ['system:user:edit'],
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'role/:userId(\\d+)',
|
path: 'role/:userId(\\d+)',
|
||||||
component: () => import('@/views/system/user/authRole'),
|
component: () => import('@/views/system/user/authRole'),
|
||||||
name: 'AuthRole',
|
name: 'AuthRole',
|
||||||
@@ -147,14 +166,16 @@ export const dynamicRoutes = [{
|
|||||||
title: '分配角色',
|
title: '分配角色',
|
||||||
activeMenu: '/system/user'
|
activeMenu: '/system/user'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
|
{
|
||||||
path: '/system/role-auth',
|
path: '/system/role-auth',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
permissions: ['system:role:edit'],
|
permissions: ['system:role:edit'],
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'user/:roleId(\\d+)',
|
path: 'user/:roleId(\\d+)',
|
||||||
component: () => import('@/views/system/role/authUser'),
|
component: () => import('@/views/system/role/authUser'),
|
||||||
name: 'AuthUser',
|
name: 'AuthUser',
|
||||||
@@ -162,14 +183,16 @@ export const dynamicRoutes = [{
|
|||||||
title: '分配用户',
|
title: '分配用户',
|
||||||
activeMenu: '/system/role'
|
activeMenu: '/system/role'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
|
{
|
||||||
path: '/system/dict-data',
|
path: '/system/dict-data',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
permissions: ['system:dict:list'],
|
permissions: ['system:dict:list'],
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'index/:dictId(\\d+)',
|
path: 'index/:dictId(\\d+)',
|
||||||
component: () => import('@/views/system/dict/data'),
|
component: () => import('@/views/system/dict/data'),
|
||||||
name: 'Data',
|
name: 'Data',
|
||||||
@@ -177,14 +200,16 @@ export const dynamicRoutes = [{
|
|||||||
title: '字典数据',
|
title: '字典数据',
|
||||||
activeMenu: '/system/dict'
|
activeMenu: '/system/dict'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
|
{
|
||||||
path: '/monitor/job-log',
|
path: '/monitor/job-log',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
permissions: ['monitor:job:list'],
|
permissions: ['monitor:job:list'],
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/monitor/job/log'),
|
component: () => import('@/views/monitor/job/log'),
|
||||||
name: 'JobLog',
|
name: 'JobLog',
|
||||||
@@ -192,14 +217,16 @@ export const dynamicRoutes = [{
|
|||||||
title: '调度日志',
|
title: '调度日志',
|
||||||
activeMenu: '/monitor/job'
|
activeMenu: '/monitor/job'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
|
{
|
||||||
path: '/zs/clue-form',
|
path: '/zs/clue-form',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
permissions: ['zs:clue:add', 'zs:clue:edit'],
|
permissions: ['zs:clue:add', 'zs:clue:edit'],
|
||||||
children: [{
|
children: [
|
||||||
|
{
|
||||||
path: 'index/:clueId(\\d+)',
|
path: 'index/:clueId(\\d+)',
|
||||||
component: () => import('@/views/zs/clue/ClueForm'),
|
component: () => import('@/views/zs/clue/ClueForm'),
|
||||||
name: 'ClueForm',
|
name: 'ClueForm',
|
||||||
@@ -207,8 +234,9 @@ export const dynamicRoutes = [{
|
|||||||
title: '线索详情',
|
title: '线索详情',
|
||||||
activeMenu: '/zs/clue'
|
activeMenu: '/zs/clue'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// 防止连续点击多次路由报错
|
// 防止连续点击多次路由报错
|
||||||
|
|||||||
57
src/views/sch/coach/count/detail.vue
Normal file
57
src/views/sch/coach/count/detail.vue
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<!-- 接待人员详情页 -->
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form v-show="showSearch" ref="queryForm" :model="queryParams" size="small" :inline="true" label-width="68px">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="coachList">
|
||||||
|
<el-table-column type="index" width="55" align="center" />
|
||||||
|
<el-table-column label="学员姓名" align="center" prop="schoolName" />
|
||||||
|
<el-table-column label="联系方式" align="center" prop="placeName" />
|
||||||
|
<el-table-column label="到场状态" align="center" prop="coachName" />
|
||||||
|
<el-table-column label="备注" align="center" prop="phone" />
|
||||||
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-hasPermi="['sch:coach:edit']" size="mini" type="text" icon="el-icon-edit" @click="handleAddAndUpdate(scope.row)">修改</el-button>
|
||||||
|
<el-button v-hasPermi="['sch:coach:remove']" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listCoach, getCoach, delCoach } from '@/api/sch/coach';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 教练表格数据
|
||||||
|
coachList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
type: null, // 1本日统计 2本月统计
|
||||||
|
placeId: null,
|
||||||
|
coachName: null,
|
||||||
|
phone: null
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询教练列表 */
|
||||||
|
getList() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
63
src/views/sch/coach/count/index.vue
Normal file
63
src/views/sch/coach/count/index.vue
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<template>
|
||||||
|
<!-- 接待人统计页面 -->
|
||||||
|
<div class="app-container" style="max-width: 600px; margin: auto;">
|
||||||
|
<el-form v-show="showSearch" ref="queryForm" :model="queryParams" size="small" :inline="true" label-width="68px">
|
||||||
|
<el-form-item label="联系方式" prop="phone">
|
||||||
|
<el-input v-model="queryParams.phone" placeholder="请输入联系方式" clearable @keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="验证码" prop="code">
|
||||||
|
<el-input v-model="queryParams.code" placeholder="请输入验证码" clearable @keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-card class="box-card">
|
||||||
|
<div slot="header" class="clearfix">
|
||||||
|
<span>接待统计</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div><span>今日接到人数:100</span></div>
|
||||||
|
<div><span>今日成交人数:69</span></div>
|
||||||
|
<div><span>今日未成交人数:31</span>
|
||||||
|
<router-link :to="'/coach/count/detail'"> 详情</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div><span>本月接到人数:200</span></div>
|
||||||
|
<div><span>本月成交人数:169</span></div>
|
||||||
|
<div><span>本月未成交人数:31</span></div>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listCoach, delCoach } from '@/api/sch/coach';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Count',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
phone: null,
|
||||||
|
code: null
|
||||||
|
},
|
||||||
|
countInfo: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询统计结果 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user