url认证
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="showDialog=true">认领</el-button>
|
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="showDialog=true">认领</el-button>
|
||||||
|
我认领的订单数:{{order_num}}
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<el-input v-model="searchModel.Channel" size="small" placeholder="请输入销售员"></el-input>
|
<el-input v-model="searchModel.Channel" size="small" placeholder="请输入销售员"></el-input>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@@ -62,6 +63,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
showDialog:false,
|
showDialog:false,
|
||||||
retData:[],
|
retData:[],
|
||||||
|
order_num:0,
|
||||||
seller:'',
|
seller:'',
|
||||||
|
|
||||||
takeModel:{
|
takeModel:{
|
||||||
@@ -84,6 +86,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.$store.commit("setCurrentNav","销售管理>>销售员统计分析")
|
this.$store.commit("setCurrentNav","销售管理>>销售员统计分析")
|
||||||
this.get();
|
this.get();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
get() {
|
get() {
|
||||||
@@ -106,6 +109,9 @@ export default {
|
|||||||
item.cSpan=0;
|
item.cSpan=0;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
this.$api.get(this.$api.phpURL + 'order/order/takeOrderNum', this.searchModel).then(res => {
|
||||||
|
this.order_num = res.num;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
resetForm(formName) {
|
resetForm(formName) {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
<el-button size="small" type="primary" @click="useDanPrice">使用专项价</el-button>
|
|
||||||
|
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<el-input v-model="searchModel.keyWord" placeholder="请输入套餐名称/标题" clearable size="small">
|
<el-input v-model="searchModel.keyWord" placeholder="请输入套餐名称/标题" clearable size="small">
|
||||||
|
|||||||
@@ -290,10 +290,30 @@ let router = new Router({
|
|||||||
|
|
||||||
// 使用 router.beforeEach 注册一个全局前置守卫,判断用户是否登陆
|
// 使用 router.beforeEach 注册一个全局前置守卫,判断用户是否登陆
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
let userInfo = local.getUserByCache()
|
||||||
|
if(userInfo != null){
|
||||||
|
$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
url: 'http://juip.wyk/api/Allow/urlCheck',
|
||||||
|
dataType: "json",
|
||||||
|
contentType: "application/json",
|
||||||
|
data: {'url':to.fullPath,'id':userInfo.Manager.ID},
|
||||||
|
success: function (res) {
|
||||||
|
if(res.Code == -10000){
|
||||||
|
router.replace({
|
||||||
|
path: '/login',
|
||||||
|
query: {
|
||||||
|
redirect: router.currentRoute.fullPath
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if (to.path === '/login' || to.path === '/' || to.path === '/r') {
|
if (to.path === '/login' || to.path === '/' || to.path === '/r') {
|
||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
let userInfo = local.getUserByCache()// localStorage.getItem('etorcurrentuser');
|
// localStorage.getItem('etorcurrentuser');
|
||||||
if (!userInfo || userInfo === '') {
|
if (!userInfo || userInfo === '') {
|
||||||
router.replace({
|
router.replace({
|
||||||
path: '/login',
|
path: '/login',
|
||||||
|
|||||||
Reference in New Issue
Block a user