Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
19aad39d
Commit
19aad39d
authored
Dec 16, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改筛选加删除和接口错误跳转页面
parent
6dc8c75d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
14 deletions
+31
-14
store-list.vue
src/components/app/my-customer/store-list.vue
+2
-3
request.js
src/utils/request.js
+21
-1
crowd-scene.vue
src/views/apps/customer-app/crowd-scene.vue
+2
-3
customer-assign.vue
src/views/apps/customer-app/customer-assign.vue
+4
-4
sync-log.vue
src/views/business/sync-log.vue
+2
-3
No files found.
src/components/app/my-customer/store-list.vue
View file @
19aad39d
...
...
@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-08-13 14:02:22
* @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
-->
<!--
...
...
@@ -16,8 +16,7 @@
<!--
<div
class=
"font-14 color-303133"
>
门店
{{
total
}}
家
</div>
-->
<div
class=
"flex flex-space-between"
>
<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-option
label=
"所有门店类型"
value=
""
></el-option>
<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
v-for=
"item in storeTypeOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</div>
...
...
src/utils/request.js
View file @
19aad39d
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-12-
08 16:16:39
* @LastEditTime: 2020-12-
16 14:57:36
*/
import
axios
from
'axios'
;
import
qs
from
'qs'
;
...
...
@@ -14,6 +14,25 @@ import { origin, succCode, notAuthCode } from '@/config/index.js';
/* eslint-disable-next-line */
// 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
.
withCredentials
=
true
;
const
request
=
(
opt
,
params
,
config
)
=>
{
...
...
@@ -65,6 +84,7 @@ const request = (opt, params, config) => {
}).
catch
(
error
=>
{
let
response
=
error
.
response
||
{};
let
data
=
response
.
data
||
{};
handlerErr
(
error
.
response
.
status
);
Message
({
message
:
data
.
message
||
'数据加载失败'
,
type
:
'warning'
...
...
src/views/apps/customer-app/crowd-scene.vue
View file @
19aad39d
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-12-
02 13:55:26
* @LastEditTime: 2020-12-
16 11:03:10
-->
<
template
>
...
...
@@ -14,8 +14,7 @@
</div>
<div
class=
"crowd-scene-search flex flex-space-between m-b-20"
>
<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-option
label=
"所有分类"
value=
""
></el-option>
<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
v-for=
"item in classifyList"
:key=
"item.sceneCrowdCategoryId"
:label=
"item.sceneCrowdCategoryName"
:value=
"item.sceneCrowdCategoryId"
>
</el-option>
</el-select>
</div>
...
...
src/views/apps/customer-app/customer-assign.vue
View file @
19aad39d
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-12-
01 18:09:24
* @LastEditTime: 2020-12-
16 11:28:49
-->
<
template
>
<div
class=
"customer-assign-wrap"
>
...
...
@@ -38,11 +38,11 @@
</div>
<div
class=
"table-top flex flex-space-between"
>
<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-option
label=
"全部"
value=
""
></el-option
>
<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=
"-1"
></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-select>
</div>
...
...
src/views/business/sync-log.vue
View file @
19aad39d
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-1
1-30 11:31:18
* @LastEditTime: 2020-1
2-16 10:35:49
-->
<
template
>
<div
class=
"my-customer-wrap common-set-wrap"
>
...
...
@@ -19,8 +19,7 @@
<div
class=
"flex flex-space-between"
>
<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-select
v-model=
"optType"
placeholder=
"请选择"
@
change=
"changeBindList"
class=
"w-168 m-l-10"
>
<el-option
label=
"全部状态"
value=
""
></el-option>
<el-select
v-model=
"optType"
placeholder=
"全部状态"
clearable
@
change=
"changeBindList"
class=
"w-168 m-l-10"
>
<el-option
label=
"绑定"
value=
"0"
></el-option>
<el-option
label=
"解绑"
value=
"1"
></el-option>
</el-select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment