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
a373d528
Commit
a373d528
authored
Nov 20, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改门店标签接口
parent
f82b1e45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
merchant-auth.js
src/api/merchant-auth.js
+1
-2
target-manage-app.js
src/api/target-manage-app.js
+2
-1
gic-select-tag.vue
src/components/common/gic-select-tag.vue
+8
-8
No files found.
src/api/merchant-auth.js
View file @
a373d528
...
...
@@ -4,14 +4,13 @@
* @Author: 无尘
* @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘
* @LastEditTime: 2020-11-
17 13:46:0
7
* @LastEditTime: 2020-11-
20 15:47:5
7
*/
import
getFetch
from
'./get-fetch.js'
;
let
api
=
{
getAuthEnterprise
:
'/auth-enterprise-list'
,
// 获取授权商户列表
getGroupList
:
'/department-list'
,
// 获取 gic 分组列表
getTagList
:
'/'
,
// 获取标签
getStoreList
:
'/store-list'
,
// 获取 gic 门店
getAuthDetail
:
'/enterprise-auth-detail'
,
// 获取授权详情(编辑时获取信息)
getAuditLog
:
'/enterprise-auth-audit-list'
,
// 获取审核日志
...
...
src/api/target-manage-app.js
View file @
a373d528
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-09 10:15:36
* @LastEditors: 无尘
* @LastEditTime: 2020-11-20 15:
02:45
* @LastEditTime: 2020-11-20 15:
48:04
*/
import
getFetch
from
'./get-fetch.js'
;
...
...
@@ -55,6 +55,7 @@ let api = {
method
:
'post'
,
useFormData
:
true
},
getTagList
:
'/setting/list-store-tag'
,
// 获取标签
};
api
=
getFetch
(
api
,
'/hb-app-performance-web'
);
...
...
src/components/common/gic-select-tag.vue
View file @
a373d528
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘
* @LastEditTime: 2020-11-
17 13:49:4
0
* @LastEditTime: 2020-11-
20 15:49:0
0
-->
<!--
选择门店分组组件:
...
...
@@ -27,8 +27,8 @@
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
style=
"margin-bottom: -5px; margin-right: -5px;"
>
<el-checkbox-group
v-model=
"dailyRuleForm.tags"
@
change=
"handleStoresChange"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<li
class=
"el-select-dropdown__item"
v-for=
"item in tags"
:key=
"item.
t
agId"
>
<el-checkbox
:label=
"item.
tagId"
>
{{
item
.
t
agName
}}
</el-checkbox>
<li
class=
"el-select-dropdown__item"
v-for=
"item in tags"
:key=
"item.
storeT
agId"
>
<el-checkbox
:label=
"item.
storeTagId"
>
{{
item
.
storeT
agName
}}
</el-checkbox>
</li>
<li
v-if=
"!tags.length"
class=
"text-center el-select-dropdown__item"
><span>
暂无门店标签
</span></li>
</ul>
...
...
@@ -46,7 +46,7 @@
<span
style=
"display:block"
>
<template
v-for=
"(item, index) in selectTags"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index + 'tag'"
>
<span
class=
"el-select__tags-text"
>
{{
item
.
t
agName
}}
</span>
<span
class=
"el-select__tags-text"
>
{{
item
.
storeT
agName
}}
</span>
<i
class=
"el-tag__close el-icon-close"
@
click
.
stop=
"delDepart(index, selectTags)"
></i>
</span>
</
template
>
...
...
@@ -58,7 +58,7 @@
</el-popover>
</template>
<
script
>
import
fetch
from
'@/api/
merchant-auth
.js'
;
import
fetch
from
'@/api/
target-manage-app
.js'
;
const
{
getTagList
}
=
fetch
;
// import errMsg from '@/common/js/error';
// import { _debounce } from '@/common/js/public';
...
...
@@ -104,7 +104,7 @@ export default {
}
if
(
!!
that
.
selectData
.
length
)
{
that
.
selectTags
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
selectData
));
that
.
dailyRuleForm
.
tags
=
that
.
selectData
.
map
(
ele
=>
ele
.
t
agId
);
that
.
dailyRuleForm
.
tags
=
that
.
selectData
.
map
(
ele
=>
ele
.
storeT
agId
);
}
else
{
that
.
dailyRuleForm
.
tags
=
[];
that
.
selectTags
=
[];
...
...
@@ -121,7 +121,7 @@ export default {
const
that
=
this
;
let
arr
=
[];
that
.
tags
.
forEach
(
ele
=>
{
if
(
value
.
includes
(
ele
.
t
agId
))
{
if
(
value
.
includes
(
ele
.
storeT
agId
))
{
arr
.
push
(
ele
);
}
});
...
...
@@ -176,7 +176,7 @@ export default {
const
that
=
this
;
if
(
!!
newData
.
length
)
{
that
.
selectTags
=
JSON
.
parse
(
JSON
.
stringify
(
newData
));
that
.
dailyRuleForm
.
tags
=
newData
.
map
(
ele
=>
ele
.
t
agId
);
that
.
dailyRuleForm
.
tags
=
newData
.
map
(
ele
=>
ele
.
storeT
agId
);
}
else
{
that
.
dailyRuleForm
.
tags
=
[];
that
.
selectTags
=
[];
...
...
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