Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mapping
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit baa0d26c
authored
Jan 10, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
21db5203
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
src/views/mapping/addMapping.vue
src/views/mapping/index.vue
src/views/mapping/addMapping.vue
View file @
baa0d26
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-04 14:00:10
* @Date: 2023-01-04 14:00:10
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-
06 14:18:0
9
* @LastEditTime: 2023-01-
10 13:37:4
9
* @FilePath: \scrm-micro-mapping\src\views\mapping\addMapping.vue
* @FilePath: \scrm-micro-mapping\src\views\mapping\addMapping.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -198,6 +198,7 @@ export default {
...
@@ -198,6 +198,7 @@ export default {
}
}
},
},
queryGroupListByMerchantId
()
{
queryGroupListByMerchantId
()
{
this
.
groupList
=
[{
...
tagJson
}]
const
params
=
{
const
params
=
{
req
:
{
req
:
{
merchantId
:
this
.
merchantId
,
merchantId
:
this
.
merchantId
,
...
@@ -223,11 +224,13 @@ export default {
...
@@ -223,11 +224,13 @@ export default {
groupName
groupName
if
(
type
==
1
)
{
if
(
type
==
1
)
{
groupName
=
item
.
groupValue_l
groupName
=
item
.
groupValue_l
item
.
sysLabelName
=
''
item
.
tagList_l
=
[]
item
.
tagList_l
=
[]
item
.
sysGroupId
=
''
item
.
sysGroupId
=
''
}
else
{
}
else
{
groupName
=
item
.
groupValue_r
groupName
=
item
.
groupValue_r
item
.
tagList_r
=
[]
item
.
tagList_r
=
[]
item
.
envLabelName
=
''
item
.
envGroupId
=
''
item
.
envGroupId
=
''
}
}
const
params
=
{
const
params
=
{
...
@@ -263,6 +266,7 @@ export default {
...
@@ -263,6 +266,7 @@ export default {
this
.
merchantId
=
+
merchantId
this
.
merchantId
=
+
merchantId
this
.
queryGroupListByMerchantId
()
this
.
queryGroupListByMerchantId
()
this
.
$apis
.
mapping
.
queryLabelRelation
({
req
:
{
merchantId
}
}).
then
(
res
=>
{
this
.
$apis
.
mapping
.
queryLabelRelation
({
req
:
{
merchantId
}
}).
then
(
res
=>
{
if
(
res
.
relationUnitList
&&
res
.
relationUnitList
.
length
)
{
this
.
groupList
=
res
.
relationUnitList
.
map
(
item
=>
{
this
.
groupList
=
res
.
relationUnitList
.
map
(
item
=>
{
return
{
return
{
groupValue_l
:
item
.
sysGroupName
,
groupValue_l
:
item
.
sysGroupName
,
...
@@ -277,11 +281,13 @@ export default {
...
@@ -277,11 +281,13 @@ export default {
envGroupId
:
item
.
envGroupId
envGroupId
:
item
.
envGroupId
}
}
})
})
console
.
log
(
this
.
groupList
)
this
.
groupList
.
forEach
(
item
=>
{
this
.
groupList
.
forEach
(
item
=>
{
this
.
changeGroup_l
(
item
)
this
.
changeGroup_l
(
item
)
this
.
changeGroup_r
(
item
)
this
.
changeGroup_r
(
item
)
})
})
}
else
{
this
.
groupList
=
[{
...
tagJson
}]
}
})
})
}
}
}
}
...
...
src/views/mapping/index.vue
View file @
baa0d26
...
@@ -36,17 +36,16 @@
...
@@ -36,17 +36,16 @@
<div
class=
"dialog-tips-2"
>
删除后,将无法支持朋友圈目标客户筛选
</div>
<div
class=
"dialog-tips-2"
>
删除后,将无法支持朋友圈目标客户筛选
</div>
<div
class=
"dialog-tips-3"
>
<div
class=
"dialog-tips-3"
>
<span>
系统标签
</span>
<span>
系统标签
</span>
<span
class=
"tag"
>
客户类型-基盘客户
</span>
<span
class=
"tag"
>
{{ selectItem.sysGroupName }}-{{ selectItem.sysLabelName }}
</span>
<img
src=
"@/assets/mapping.png"
alt=
""
/>
<img
src=
"@/assets/mapping.png"
alt=
""
/>
<span>
企业标签
</span>
<span>
企业标签
</span>
<span
class=
"tag"
>
客户类型-基盘客户
</span>
<span
class=
"tag"
>
{{ selectItem.envGroupName }}-{{ selectItem.envLabelName }}
</span>
</div>
</div>
</div>
</div>
</GLDialog>
</GLDialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getTableList
,
syncCustomerBase
,
clientGroupExportApi
}
from
'@/api/modules/tag'
// import url from '@/assets/clientDataOverview/nodata.png'
// import url from '@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'grouping'
,
name
:
'grouping'
,
...
@@ -148,11 +147,6 @@ export default {
...
@@ -148,11 +147,6 @@ export default {
flushTime
:
false
flushTime
:
false
}
}
},
},
filters
:
{
filterTable
(
list
)
{
return
[{
couponName
:
9
}]
}
},
methods
:
{
methods
:
{
handleAdd
(
row
)
{
handleAdd
(
row
)
{
let
query
=
''
let
query
=
''
...
@@ -161,6 +155,7 @@ export default {
...
@@ -161,6 +155,7 @@ export default {
},
},
//删除
//删除
delTag
(
scope
)
{
delTag
(
scope
)
{
console
.
log
(
scope
)
this
.
selectItem
=
scope
this
.
selectItem
=
scope
this
.
dialogVisibleDel
=
true
this
.
dialogVisibleDel
=
true
},
},
...
@@ -173,7 +168,10 @@ export default {
...
@@ -173,7 +168,10 @@ export default {
}
}
}
}
this
.
$apis
.
mapping
.
deleteLabelRelation
(
params
).
then
(
res
=>
{
this
.
$apis
.
mapping
.
deleteLabelRelation
(
params
).
then
(
res
=>
{
res
.
code
==
'0'
&&
this
.
message
.
success
(
'操作成功'
)
if
(
res
.
code
==
'0'
)
{
this
.
searchTable
()
this
.
$message
.
success
(
'操作成功'
)
}
})
})
},
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
...
@@ -189,7 +187,7 @@ export default {
...
@@ -189,7 +187,7 @@ export default {
// this.$refs.clientGroupManage.setTableHeightFun()
// this.$refs.clientGroupManage.setTableHeightFun()
// }
// }
if
(
this
.
firstSearch
)
{
if
(
this
.
firstSearch
)
{
this
.
expandArr
=
this
.
$refs
.
clientGroupManage
.
data
.
length
?
[
this
.
$refs
.
clientGroupManage
.
data
[
0
].
crowdGroup
Id
+
''
]
:
[]
this
.
expandArr
=
this
.
$refs
.
clientGroupManage
.
data
.
length
?
[
this
.
$refs
.
clientGroupManage
.
data
[
0
].
merchant
Id
+
''
]
:
[]
this
.
firstSearch
=
false
this
.
firstSearch
=
false
}
}
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment