Commit 19aad39d by 无尘

fix: 修改筛选加删除和接口错误跳转页面

parent 6dc8c75d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author : 无尘 * @Author : 无尘
* @Date : 2020-08-13 14:02:22 * @Date : 2020-08-13 14:02:22
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-02 13:58:49 * @LastEditTime: 2020-12-16 11:09:45
* @FilePath : haoban-4\src\components\app\my-customer\store-list.vue * @FilePath : haoban-4\src\components\app\my-customer\store-list.vue
--> -->
<!-- <!--
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
<!-- <div class="font-14 color-303133">门店 {{ total }}</div> --> <!-- <div class="font-14 color-303133">门店 {{ total }}</div> -->
<div class="flex flex-space-between"> <div class="flex flex-space-between">
<div> <div>
<el-input placeholder="请输入门店名称/代码" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input><el-select class="w-168 m-l-10" v-model="storeTypeId" placeholder="" @change="changeCondition"> <el-input placeholder="请输入门店名称/代码" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input><el-select class="w-168 m-l-10" v-model="storeTypeId" placeholder="所有门店类型" clearable @change="changeCondition">
<el-option label="所有门店类型" value=""></el-option>
<el-option v-for="item in storeTypeOptions" :key="item.id" :label="item.name" :value="item.id"> </el-option> <el-option v-for="item in storeTypeOptions" :key="item.id" :label="item.name" :value="item.id"> </el-option>
</el-select> </el-select>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-08 16:16:39 * @LastEditTime: 2020-12-16 14:57:36
*/ */
import axios from 'axios'; import axios from 'axios';
import qs from 'qs'; import qs from 'qs';
...@@ -14,6 +14,25 @@ import { origin, succCode, notAuthCode } from '@/config/index.js'; ...@@ -14,6 +14,25 @@ import { origin, succCode, notAuthCode } from '@/config/index.js';
/* eslint-disable-next-line */ /* eslint-disable-next-line */
// const BASEURL = process.env.NODE_ENV !== 'production' ? 'https://four.gicdev.com' : ''; // const BASEURL = process.env.NODE_ENV !== 'production' ? 'https://four.gicdev.com' : '';
/**
* http状态码处理
* @param {Number} code
*/
function handlerErr(code) {
switch (code) {
case 404:
window.location.href = origin + '/haoban-4/404';
break;
case 403:
window.location.href = origin + '/haoban-4/403';
break;
case 500:
window.location.href = origin + '/haoban-4/500';
break;
}
}
axios.defaults.baseURL = origin; axios.defaults.baseURL = origin;
axios.defaults.withCredentials = true; axios.defaults.withCredentials = true;
const request = (opt, params, config) => { const request = (opt, params, config) => {
...@@ -65,6 +84,7 @@ const request = (opt, params, config) => { ...@@ -65,6 +84,7 @@ const request = (opt, params, config) => {
}).catch(error => { }).catch(error => {
let response = error.response || {}; let response = error.response || {};
let data = response.data || {}; let data = response.data || {};
handlerErr(error.response.status);
Message({ Message({
message: data.message || '数据加载失败', message: data.message || '数据加载失败',
type: 'warning' type: 'warning'
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-27 10:16:37 * @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-02 13:55:26 * @LastEditTime: 2020-12-16 11:03:10
--> -->
<template> <template>
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
</div> </div>
<div class="crowd-scene-search flex flex-space-between m-b-20"> <div class="crowd-scene-search flex flex-space-between m-b-20">
<div> <div>
<el-input placeholder="请输入人群名称" maxlength="50" v-model="searchVal" style="width: 408px;" prefix-icon="el-icon-search" @keyup.native="value => toInput(value)" clearable @clear="clearInput"></el-input><el-select class="w-162 m-l-10" v-model="classifyId" placeholder="所有分类" @change="changeCondition"> <el-input placeholder="请输入人群名称" maxlength="50" v-model="searchVal" style="width: 408px;" prefix-icon="el-icon-search" @keyup.native="value => toInput(value)" clearable @clear="clearInput"></el-input><el-select class="w-162 m-l-10" v-model="classifyId" placeholder="所有分类" clearable @change="changeCondition">
<el-option label="所有分类" value=""></el-option>
<el-option v-for="item in classifyList" :key="item.sceneCrowdCategoryId" :label="item.sceneCrowdCategoryName" :value="item.sceneCrowdCategoryId"> </el-option> <el-option v-for="item in classifyList" :key="item.sceneCrowdCategoryId" :label="item.sceneCrowdCategoryName" :value="item.sceneCrowdCategoryId"> </el-option>
</el-select> </el-select>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-20 14:36:37 * @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-01 18:09:24 * @LastEditTime: 2020-12-16 11:28:49
--> -->
<template> <template>
<div class="customer-assign-wrap"> <div class="customer-assign-wrap">
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
</div> </div>
<div class="table-top flex flex-space-between"> <div class="table-top flex flex-space-between">
<div> <div>
<el-input placeholder="请输入姓名/昵称/会员卡号" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" style="width: 274px;" clearable @clear="clearSearch" @keyup.native="value => toInput(value, searchInput)"> </el-input><el-select class="w-168 m-l-10" v-model="clerkId" placeholder="" @change="changeCondition"> <el-input placeholder="请输入姓名/昵称/会员卡号" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" style="width: 274px;" clearable @clear="clearSearch" @keyup.native="value => toInput(value, searchInput)"> </el-input><el-select class="w-168 m-l-10" v-model="clerkId" placeholder="全部导购" clearable @change="changeCondition">
<el-option label="全部" value=""></el-option> <!-- <el-option label="全部" value=""></el-option> -->
<!-- <el-option label="无归属" value="-1"></el-option> --> <!-- <el-option label="无归属" value="-1"></el-option> -->
<el-option v-for="item in clerkOptions" :key="item.clerkId" :label="item.clerkName" :value="item.clerkId"> </el-option> <el-option v-for="item in clerkOptions" :key="item.clerkId" :label="item.clerkName" :value="item.clerkId"> </el-option>
</el-select><el-select class="w-168 m-l-10" v-model="storeBrandId" placeholder="" @change="changeCondition"> </el-select><el-select class="w-168 m-l-10" v-model="storeBrandId" placeholder="全部店招品牌" clearable @change="changeCondition">
<el-option v-for="item in storeBrandOptions" :key="item.brandId" :label="item.brandName" :value="item.brandId"></el-option> <el-option v-for="item in storeBrandOptions" :key="item.brandId" :label="item.brandName" :value="item.brandId"></el-option>
</el-select> </el-select>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-30 11:31:18 * @LastEditTime: 2020-12-16 10:35:49
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
<div class="flex flex-space-between"> <div class="flex flex-space-between">
<div class=""> <div class="">
<el-input placeholder="请输入导购手机号或代码" prefix-icon="el-icon-search" v-model="searchInput" class="w-293" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"> </el-input> <el-input placeholder="请输入导购手机号或代码" prefix-icon="el-icon-search" v-model="searchInput" class="w-293" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"> </el-input>
<el-select v-model="optType" placeholder="请选择" @change="changeBindList" class="w-168 m-l-10"> <el-select v-model="optType" placeholder="全部状态" clearable @change="changeBindList" class="w-168 m-l-10">
<el-option label="全部状态" value=""></el-option>
<el-option label="绑定" value="0"></el-option> <el-option label="绑定" value="0"></el-option>
<el-option label="解绑" value="1"></el-option> <el-option label="解绑" value="1"></el-option>
</el-select> </el-select>
......
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