Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 5fddd10c
authored
May 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.3.0' into 'v2.3.0'
数据处理和bug修复 See merge request
!82
2 parents
ff9255e2
dde94fb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
12 deletions
src/views/clientDataOverview/index.vue
src/views/tagsManage/index.vue
src/views/clientDataOverview/index.vue
View file @
5fddd10
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<p
class=
"clientNum"
>
<p
class=
"clientNum"
>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
<span
class=
"personText"
>
人
</span>
<span
class=
"personText"
>
人
</span>
<span
class=
"numPro"
>
占比:{{
(topDataObj.purchaseCustomerAddPercent
&&
topDataObj.purchaseCustomerAddPercent.toFixed(2) || 0)
}}%
</span>
<span
class=
"numPro"
>
占比:{{
topDataObj.purchaseCustomerAddPercent | percentageDeal
}}%
</span>
</p>
</p>
<!-- <div class="marketingBtn">
<!-- <div class="marketingBtn">
<el-dropdown>
<el-dropdown>
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<p
class=
"clientNum"
>
<p
class=
"clientNum"
>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
<span
class=
"personText"
>
人
</span>
<span
class=
"personText"
>
人
</span>
<span
class=
"numPro"
>
占比:{{ (topDataObj.purchaseCustomerNAddPercent
&&
topDataObj.purchaseCustomerNAddPercent.toFixed(2) || 0)
}}%
</span>
<span
class=
"numPro"
>
占比:{{ topDataObj.purchaseCustomerNAddPercent | percentageDeal
}}%
</span>
</p>
</p>
<!-- <div class="marketingBtn">
<!-- <div class="marketingBtn">
智能营销
智能营销
...
@@ -179,7 +179,8 @@
...
@@ -179,7 +179,8 @@
<p
class=
"clientNum"
>
<p
class=
"clientNum"
>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span
class=
"personText"
>
人
</span>
<span
class=
"personText"
>
人
</span>
<span
class=
"numPro"
>
占比:{{ (topDataObj.purposeCustomerAddPercent
&&
topDataObj.purposeCustomerAddPercent.toFixed(2) || 0) }}%
</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span> -->
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal}}%
</span>
</p>
</p>
<!-- <div class="marketingBtn">
<!-- <div class="marketingBtn">
<el-dropdown>
<el-dropdown>
...
@@ -205,7 +206,8 @@
...
@@ -205,7 +206,8 @@
<p
class=
"clientNum"
>
<p
class=
"clientNum"
>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<span
class=
"personText"
>
人
</span>
<span
class=
"personText"
>
人
</span>
<span
class=
"numPro"
>
占比:{{ (topDataObj.purposeCustomerNAddPercent
&&
topDataObj.purposeCustomerNAddPercent.toFixed(2) || 0) }}%
</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerNAddPercent && topDataObj.purposeCustomerNAddPercent.toFixed(2)) || 0 }}%</span> -->
<span
class=
"numPro"
>
占比:{{ topDataObj.purposeCustomerNAddPercent | percentageDeal }}%
</span>
</p>
</p>
<!-- <div class="marketingBtn">
<!-- <div class="marketingBtn">
智能营销
智能营销
...
@@ -234,7 +236,7 @@
...
@@ -234,7 +236,7 @@
<div
class=
"intended"
@
click=
"goto(11)"
>
<div
class=
"intended"
@
click=
"goto(11)"
>
<p
class=
"intend-name"
>
<p
class=
"intend-name"
>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(20)"
>
(已绑定手机号{{
topDataObj.notMatchCustomerAddPhoneCount ? topDataObj.notMatchCustomerAddPhoneCount : 0
}}人)
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(20)"
>
(已绑定手机号{{
(topDataObj.notMatchCustomerAddPhoneCount || 0) | overThousandFilter
}}人)
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向或基盘客户的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向或基盘客户的客户"
>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向或基盘客户的客户
</span>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向或基盘客户的客户
</span>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
...
@@ -271,7 +273,7 @@
...
@@ -271,7 +273,7 @@
<span
class=
"ratio"
v-if=
"!isEmptyObj"
>
<span
class=
"ratio"
v-if=
"!isEmptyObj"
>
占比:
占比:
<img
src=
"@/assets/clientDataOverview/upIcon.png"
/>
<img
src=
"@/assets/clientDataOverview/upIcon.png"
/>
{{
(topDataObj.notMatchCustomerNAddPercent
&&
topDataObj.notMatchCustomerNAddPercent.toFixed(2)) || 0
}}%
{{
topDataObj.notMatchCustomerNAddPercent | percentageDeal
}}%
<i
class=
"triangle"
:class=
"{ active: topDataObj.waitMatchUp === 2 }"
v-if=
"topDataObj.waitMatchUp"
></i>
<i
class=
"triangle"
:class=
"{ active: topDataObj.waitMatchUp === 2 }"
v-if=
"topDataObj.waitMatchUp"
></i>
<i
v-else
>
--
</i>
<i
v-else
>
--
</i>
</span>
</span>
...
@@ -376,7 +378,7 @@ export default {
...
@@ -376,7 +378,7 @@ export default {
pieEchart
,
pieEchart
,
multipleEchart
,
multipleEchart
,
// pictorialBar,
// pictorialBar,
noData
,
noData
// pieEchartCopy
// pieEchartCopy
},
},
data
()
{
data
()
{
...
@@ -476,6 +478,12 @@ export default {
...
@@ -476,6 +478,12 @@ export default {
})
})
})
})
},
},
filters
:
{
percentageDeal
(
val
)
{
if
(
val
)
return
(
val
*
100
).
toFixed
(
2
)
||
0
return
0
}
},
computed
:
{
computed
:
{
isEmptyObj
()
{
isEmptyObj
()
{
if
(
Object
.
keys
(
this
.
topDataObj
).
length
==
0
)
{
if
(
Object
.
keys
(
this
.
topDataObj
).
length
==
0
)
{
...
@@ -1171,7 +1179,7 @@ export default {
...
@@ -1171,7 +1179,7 @@ export default {
width
:
25%
;
width
:
25%
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-right
:
16px
;
margin-right
:
16px
;
&:last-child{
&:last-child
{
margin-right
:
0
;
margin-right
:
0
;
}
}
.itemTitle
{
.itemTitle
{
...
...
src/views/tagsManage/index.vue
View file @
5fddd10
...
@@ -274,7 +274,7 @@ import { getLoginCount } from '@/api/modules/loginCount'
...
@@ -274,7 +274,7 @@ import { getLoginCount } from '@/api/modules/loginCount'
import
tagGroup
from
'./components/tagGroup.vue'
import
tagGroup
from
'./components/tagGroup.vue'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
tag
from
'@/mixins/tag'
import
tag
from
'@/mixins/tag'
import
util
from
'@/utils/util
'
import
{
utils
}
from
'glsx-common
'
export
default
{
export
default
{
mixins
:
[
tag
],
mixins
:
[
tag
],
name
:
'tagsManage'
,
name
:
'tagsManage'
,
...
@@ -702,7 +702,7 @@ export default {
...
@@ -702,7 +702,7 @@ export default {
this
.
tagForm
.
tagsName
=
rowData
.
labelGroup
.
name
//标签组名
this
.
tagForm
.
tagsName
=
rowData
.
labelGroup
.
name
//标签组名
this
.
tagForm
.
initTagsGroup
=
rowData
.
labelType
==
'企业标签'
||
rowData
.
labelType
==
'集团标签'
?
1
:
rowData
.
labelType
==
'自店标签'
?
2
:
''
//标签组类型
this
.
tagForm
.
initTagsGroup
=
rowData
.
labelType
==
'企业标签'
||
rowData
.
labelType
==
'集团标签'
?
1
:
rowData
.
labelType
==
'自店标签'
?
2
:
''
//标签组类型
},
},
handleConfirm
()
{
handleConfirm
:
utils
.
debounce
(
function
()
{
this
.
$refs
.
tagForm
.
$children
[
0
].
validate
(
valid
=>
{
this
.
$refs
.
tagForm
.
$children
[
0
].
validate
(
valid
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
if
(
this
.
tagForm
.
tagsList
.
length
<=
0
&&
this
.
tagDialogTitle
==
'添加标签组'
)
{
if
(
this
.
tagForm
.
tagsList
.
length
<=
0
&&
this
.
tagDialogTitle
==
'添加标签组'
)
{
...
@@ -758,12 +758,75 @@ export default {
...
@@ -758,12 +758,75 @@ export default {
return
return
}
}
}
}
console
.
log
(
'点击了几次'
)
this
.
updateTagFun
()
this
.
updateTagFun
()
this
.
newAddTagFun
()
this
.
newAddTagFun
()
// this.handleClose()
// this.handleClose()
}
}
})
})
},
},
300
),
// handleConfirm() {
// this.$refs.tagForm.$children[0].validate(valid => {
// if (!valid) {
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// // return
// }
// return
// }
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// return
// }
// if (this.tagDialogTitle == '添加标签组') {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// if (this.tagForm.tagsList.length <= 0) {
// this.$message.error('不能提交空标签')
// return
// }
// //如果存在添加标签的输入框的内容的标签相同则不提交
// let isSameTagFlag = false
// var tempArr = this.tagForm.tagsList.map(item => item.name)
// isSameTagFlag = this.isHasSome(tempArr)
// if (isSameTagFlag) {
// this.$message.error('不能提交相同的标签,请修改')
// return
// }
// this.newAddTagFun(1)
// //this.handleClose() //这里不管
// } else {
// //修改标签(允许同时增加标签)
// let isHasEmpty = this.editTagList.some(ele => ele.name == '')
// if (isHasEmpty) {
// this.$message.error('不能提交空的编辑标签')
// return
// }
// if (this.tagForm.tagsList.length > 0) {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// //如果存在添加标签的输入框的内容和可编辑的标签相同则不提交
// let ishasSameTagFlag = false
// this.editTagList.forEach(item => {
// for (let i = 0; i < this.tagForm.tagsList.length; i++) {
// if (this.tagForm.tagsList[i].name == item.name) {
// ishasSameTagFlag = true
// }
// }
// })
// if (ishasSameTagFlag) {
// this.$message.error('不能提交已存在的标签,请修改')
// return
// }
// }
// this.updateTagFun()
// this.newAddTagFun()
// // this.handleClose()
// }
// })
// },
handleRuleClose
()
{
handleRuleClose
()
{
this
.
dialogRuleVisible
=
false
this
.
dialogRuleVisible
=
false
},
},
...
@@ -848,7 +911,7 @@ export default {
...
@@ -848,7 +911,7 @@ export default {
// this.tagForm.tagsName = ''
// this.tagForm.tagsName = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.tagsList = []
// this.tagForm.tagsList = []
this
.
$refs
.
tagTree
.
getTableList
(
true
)
//刷新下表格
// this.$refs.tagTree.getTableList(true) //刷新下表格 //重复请求了
})
})
},
},
//删除一行标签
//删除一行标签
...
...
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