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
9abb2851
Commit
9abb2851
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改标签分类
parent
8b5a091b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
19 deletions
+44
-19
tag-classify-list.vue
src/components/app/my-customer/tag-classify-list.vue
+8
-3
clerk-tag.vue
src/views/apps/customer-app/clerk-tag.vue
+10
-2
contacts.vue
src/views/business/contacts.vue
+26
-14
No files found.
src/components/app/my-customer/tag-classify-list.vue
View file @
9abb2851
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
6:12:08
* @LastEditTime: 2020-09-07 1
7:11:32
-->
-->
<!--
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<ul
class=
"tag-classify-body"
>
<ul
class=
"tag-classify-body"
>
<li
:class=
"['tag-classify-item',
{ active: currentClassifyId == item.categoryId }]" v-for="(item, index) in tagList" :key="item.categoryId+index" @click="changeClassify(index, item)">
<li
:class=
"['tag-classify-item',
{ active: currentClassifyId == item.categoryId }]" v-for="(item, index) in tagList" :key="item.categoryId+index" @click="changeClassify(index, item)">
<span
class=
"tag-classify-name"
>
{{
item
.
categoryName
||
'--'
}}
</span>
<span
class=
"tag-classify-name"
>
{{
item
.
categoryName
||
'--'
}}
</span>
<el-dropdown
placement=
"bottom-start"
>
<el-dropdown
class=
"tag-classify-drop"
placement=
"bottom-start"
>
<i
class=
"iconfont icongengduo edit-icon"
></i>
<i
class=
"iconfont icongengduo edit-icon"
></i>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
@
click
.
native=
"toEditClassify(index, item)"
>
编辑
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"toEditClassify(index, item)"
>
编辑
</el-dropdown-item>
...
@@ -141,12 +141,17 @@ export default {
...
@@ -141,12 +141,17 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.tag-classify-drop
{
.el-dropdown-menu__item
{
padding
:
0
30px
;
}
}
.tag-classify-body
{
.tag-classify-body
{
.tag-classify-item
{
.tag-classify-item
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
padding
:
5px
10px
5px
3
0px
;
padding
:
5px
10px
5px
2
0px
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
20px
;
line-height
:
20px
;
...
...
src/views/apps/customer-app/clerk-tag.vue
View file @
9abb2851
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 16:
44:48
* @LastEditTime: 2020-09-07 16:
56:30
-->
-->
<
template
>
<
template
>
...
@@ -199,6 +199,7 @@ export default {
...
@@ -199,6 +199,7 @@ export default {
* @description: 编辑标签
* @description: 编辑标签
* @param {Number} index
* @param {Number} index
* @param {Object} row
* @param {Object} row
* @author: 无尘
*/
*/
toEditTag
(
index
,
row
)
{
toEditTag
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -232,6 +233,7 @@ export default {
...
@@ -232,6 +233,7 @@ export default {
* @description: 编辑可见范围
* @description: 编辑可见范围
* @param {Number} index
* @param {Number} index
* @param {Object} row
* @param {Object} row
* @author: 无尘
*/
*/
toEditVisiable
(
index
,
row
)
{
toEditVisiable
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -257,6 +259,7 @@ export default {
...
@@ -257,6 +259,7 @@ export default {
},
},
/**
/**
* @description: 编辑后刷新数据
* @description: 编辑后刷新数据
* @author: 无尘
*/
*/
refreshTagData
()
{
refreshTagData
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -266,6 +269,7 @@ export default {
...
@@ -266,6 +269,7 @@ export default {
* @description: 删除标签
* @description: 删除标签
* @param {Number} index
* @param {Number} index
* @param {Object} row
* @param {Object} row
* @author: 无尘
*/
*/
toDelTag
(
index
,
row
)
{
toDelTag
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -303,13 +307,15 @@ export default {
...
@@ -303,13 +307,15 @@ export default {
},
},
/**
/**
* @description: 搜索输入
* @description: 搜索输入
* @author: 无尘
*/
*/
toInput
:
_debounce
(
function
()
{
toInput
:
_debounce
(
function
()
{
const
that
=
this
;
const
that
=
this
;
that
.
getTableList
();
that
.
getTableList
();
},
5
00
),
},
3
00
),
/**
/**
* @description: 搜索清除
* @description: 搜索清除
* @author: 无尘
*/
*/
clearInput
()
{
clearInput
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -317,6 +323,7 @@ export default {
...
@@ -317,6 +323,7 @@ export default {
},
},
/**
/**
* @description: 获取列表数据
* @description: 获取列表数据
* @author: 无尘
*/
*/
getTableList
()
{
getTableList
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -338,6 +345,7 @@ export default {
...
@@ -338,6 +345,7 @@ export default {
},
},
/**
/**
* @description: 获取分类数据
* @description: 获取分类数据
* @author: 无尘
*/
*/
getClassifyList
()
{
getClassifyList
()
{
const
that
=
this
;
const
that
=
this
;
...
...
src/views/business/contacts.vue
View file @
9abb2851
...
@@ -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-0
8-31 14:11:12
* @LastEditTime: 2020-0
9-07 16:57:51
-->
-->
<
template
>
<
template
>
<div
class=
"contacts-wrap common-set-wrap"
>
<div
class=
"contacts-wrap common-set-wrap"
>
...
@@ -124,7 +124,8 @@ export default {
...
@@ -124,7 +124,8 @@ export default {
},
},
methods
:
{
methods
:
{
/**
/**
* 获取同步状态
* @description: 获取同步状态
* @author: 无尘
*/
*/
getSyncStatus
()
{
getSyncStatus
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -144,15 +145,17 @@ export default {
...
@@ -144,15 +145,17 @@ export default {
});
});
},
},
/**
/**
* 选中搜索的部门
*
@description:
选中搜索的部门
* @param {Object} item
* @param {Object} item
* @author: 无尘
*/
*/
selectSearch
(
item
)
{
selectSearch
(
item
)
{
const
that
=
this
;
const
that
=
this
;
that
.
departObj
=
item
;
that
.
departObj
=
item
;
},
},
/**
/**
* 刷新企业成员
* @description: 刷新企业成员
* @author: 无尘
*/
*/
toRefreshMember
:
_debounce
(
function
()
{
toRefreshMember
:
_debounce
(
function
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -176,8 +179,9 @@ export default {
...
@@ -176,8 +179,9 @@ export default {
},
500
),
},
500
),
/**
/**
* 点击 tree 数据
*
@description:
点击 tree 数据
* @param {Object} data
* @param {Object} data
* @author: 无尘
*/
*/
resetCheckData
(
data
)
{
resetCheckData
(
data
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -197,8 +201,9 @@ export default {
...
@@ -197,8 +201,9 @@ export default {
},
},
/**
/**
* 点击子部门触发
*
@description:
点击子部门触发
* @param {Object} obj
* @param {Object} obj
* @author: 无尘
*/
*/
async
changeDepart
(
obj
)
{
async
changeDepart
(
obj
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -220,8 +225,9 @@ export default {
...
@@ -220,8 +225,9 @@ export default {
},
},
/**
/**
* 修改部门名称触发
*
@description:
修改部门名称触发
* @param {String} name
* @param {String} name
* @author: 无尘
*/
*/
resetData
(
name
)
{
resetData
(
name
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -230,7 +236,8 @@ export default {
...
@@ -230,7 +236,8 @@ export default {
},
},
/**
/**
* 组织架构管理
* @description: 组织架构管理
* @author: 无尘
*/
*/
toManage
()
{
toManage
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -238,8 +245,9 @@ export default {
...
@@ -238,8 +245,9 @@ export default {
},
},
/**
/**
* 每次选中一个树中节点,把当前数据返回,
* 每次选中一个树中节点,把当前数据返回,
* 获取选中部门/门店数据
*
@description:
获取选中部门/门店数据
* @param {Object} obj
* @param {Object} obj
* @author: 无尘
*/
*/
getSelectData
(
obj
)
{
getSelectData
(
obj
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -252,16 +260,18 @@ export default {
...
@@ -252,16 +260,18 @@ export default {
that
.
departObj
=
obj
;
that
.
departObj
=
obj
;
},
},
/**
/**
* 路由跳转
*
@description:
路由跳转
* @param {String} path
* @param {String} path
* @author: 无尘
*/
*/
changeRoute
(
path
)
{
changeRoute
(
path
)
{
this
.
$router
.
push
(
path
);
this
.
$router
.
push
(
path
);
},
},
/**
/**
* 输入
*
@description:
输入
* @param {Object} e
* @param {Object} e
* @param {String} value
* @param {String} value
* @author: 无尘
*/
*/
toInput
:
_debounce
(
function
(
e
,
value
)
{
toInput
:
_debounce
(
function
(
e
,
value
)
{
const
that
=
this
;
const
that
=
this
;
...
@@ -277,7 +287,8 @@ export default {
...
@@ -277,7 +287,8 @@ export default {
that
.
searchData
=
[];
that
.
searchData
=
[];
},
},
/**
/**
* 获取搜索数据
* @description:获取搜索数据
* @author: 无尘
*/
*/
getSearchData
()
{
getSearchData
()
{
const
that
=
this
;
const
that
=
this
;
...
@@ -305,7 +316,8 @@ export default {
...
@@ -305,7 +316,8 @@ export default {
return
tree
;
return
tree
;
},
},
/**
/**
* 获取列表数据
* @description: 获取列表数据
* @author: 无尘
*/
*/
getTableList
()
{
getTableList
()
{
const
that
=
this
;
const
that
=
this
;
...
...
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