Commit dde94fb7 by xuyl

数据处理和bug修复

1 parent ff9255e2
......@@ -98,7 +98,7 @@
<p class="clientNum">
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ (topDataObj.purchaseCustomerAddPercent && topDataObj.purchaseCustomerAddPercent.toFixed(2) || 0) }}%</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
<el-dropdown>
......@@ -124,7 +124,7 @@
<p class="clientNum">
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ (topDataObj.purchaseCustomerNAddPercent && topDataObj.purchaseCustomerNAddPercent.toFixed(2) || 0)}}%</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerNAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
智能营销
......@@ -179,7 +179,8 @@
<p class="clientNum">
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<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>
<!-- <div class="marketingBtn">
<el-dropdown>
......@@ -205,7 +206,8 @@
<p class="clientNum">
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<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>
<!-- <div class="marketingBtn">
智能营销
......@@ -234,7 +236,7 @@
<div class="intended" @click="goto(11)">
<p class="intend-name">
<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="已加企微,且未匹配到潜在意向或基盘客户的客户">
<span class="dataOverPopover">已加企微,且未匹配到潜在意向或基盘客户的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
......@@ -271,7 +273,7 @@
<span class="ratio" v-if="!isEmptyObj">
占比:
<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 v-else>--</i>
</span>
......@@ -376,7 +378,7 @@ export default {
pieEchart,
multipleEchart,
// pictorialBar,
noData,
noData
// pieEchartCopy
},
data() {
......@@ -476,6 +478,12 @@ export default {
})
})
},
filters: {
percentageDeal(val) {
if (val) return (val * 100).toFixed(2) || 0
return 0
}
},
computed: {
isEmptyObj() {
if (Object.keys(this.topDataObj).length == 0) {
......@@ -1171,7 +1179,7 @@ export default {
width: 25%;
cursor: pointer;
margin-right: 16px;
&:last-child{
&:last-child {
margin-right: 0;
}
.itemTitle {
......
......@@ -274,7 +274,7 @@ import { getLoginCount } from '@/api/modules/loginCount'
import tagGroup from './components/tagGroup.vue'
import url from '@/assets/clientDataOverview/nodata.png'
import tag from '@/mixins/tag'
import util from '@/utils/util'
import { utils } from 'glsx-common'
export default {
mixins: [tag],
name: 'tagsManage',
......@@ -702,7 +702,7 @@ export default {
this.tagForm.tagsName = rowData.labelGroup.name //标签组名
this.tagForm.initTagsGroup = rowData.labelType == '企业标签' || rowData.labelType == '集团标签' ? 1 : rowData.labelType == '自店标签' ? 2 : '' //标签组类型
},
handleConfirm() {
handleConfirm: utils.debounce(function() {
this.$refs.tagForm.$children[0].validate(valid => {
if (!valid) {
if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
......@@ -758,12 +758,75 @@ export default {
return
}
}
console.log('点击了几次')
this.updateTagFun()
this.newAddTagFun()
// 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() {
this.dialogRuleVisible = false
},
......@@ -848,7 +911,7 @@ export default {
// this.tagForm.tagsName = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.tagsList = []
this.$refs.tagTree.getTableList(true) //刷新下表格
// this.$refs.tagTree.getTableList(true) //刷新下表格 //重复请求了
})
},
//删除一行标签
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!