Commit 8c104f03 by 王志慧

commit

1 parent 2cb13ac4
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
} }
] ]
}, },
describeData: ['潜在意向客户数', '潜在意向客户&已加企微客户数', '潜在意向客户&未加企微客户数', '基盘客户数', '基盘客户&已加企微客户数', '基盘客户&未加企微客户数', '新车客户数', '车险待续保客户数', '新车待首保客户数', '沉默客户数'] describeData: ['潜在意向客户', '潜在意向客户,且已加企微客户', '潜在意向客户,且未加企微客户', '基盘客户', '基盘客户,且已加企微客户', '基盘客户,且未加企微客户', '新车客户', '新车待续保客户', '新车待首保客户', '沉默客户']
} }
}, },
created() { created() {
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1
}).then(res => { }).then(res => {
console.log('res', res) // console.log('res', res)
this.totalCount = res.count this.totalCount = res.count
}) })
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="clientNum"> <div class="clientNum">
<!-- {{ labelGroupName }} --> <!-- {{ labelGroupName }} -->
标签组客户列表 标签组客户列表
<span class="clientNumText">{{customerListsNum}}个</span> <span class="clientNumText">{{ customerListsNum }}个</span>
</div> </div>
<div class="export" @click="handleExport">导出</div> <div class="export" @click="handleExport">导出</div>
</div> </div>
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
<span slot="status" slot-scope="scope"> <span slot="status" slot-scope="scope">
<span class="statusText" :class="scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[1] : ''">{{ scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[0] : '--' }}</span> <span class="statusText" :class="scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[1] : ''">{{ scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[0] : '--' }}</span>
</span> </span>
<span slot="isJoin" slot-scope="scope"> <span slot="isJoin" slot-scope="scope">
<span>{{ scope.scope.isJoin ? '是' : '否' }}</span> <span>{{ scope.scope.isJoin ? '是' : '否' }}</span>
</span> </span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">详情</span> <span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">详情</span>
</template> </template>
...@@ -63,11 +63,13 @@ ...@@ -63,11 +63,13 @@
<img src="@/assets/tagsManage/doc.png" alt="" /> <img src="@/assets/tagsManage/doc.png" alt="" />
<span class="iconLabelstext">{{ labelGroupName }}</span> <span class="iconLabelstext">{{ labelGroupName }}</span>
</div> </div>
<div class="iconLabelsName" :class="{ active: checkedTag.indexOf(index) > -1 }" v-for="(item, index) in items" :key="index" @click="seletLabelActive(item.labelId, index, item.labelName)"> <template v-for="(item, index) in items">
<img src="@/assets/tagsManage/label.png" alt="" /> <div class="iconLabelsName" :class="{ active: checkedTag.indexOf(index) > -1 }" v-if="item.isHidden" :key="index" @click="seletLabelActive(item.labelId, index, item.labelName)">
<span class="LabelsNameTxt">{{ item.labelName }}</span> <img src="@/assets/tagsManage/label.png" alt="" />
<img v-if="checkedTag.indexOf(index) > -1" class="labelChecked" src="@/assets/tagsManage/checked.png" alt="" /> <span class="LabelsNameTxt">{{ item.labelName }}</span>
</div> <img v-if="checkedTag.indexOf(index) > -1" class="labelChecked" src="@/assets/tagsManage/checked.png" alt="" />
</div>
</template>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="resetSearch">重置</el-button> <el-button @click="resetSearch">重置</el-button>
...@@ -78,18 +80,18 @@ ...@@ -78,18 +80,18 @@
</template> </template>
<script> <script>
import { getCustomersList, getLabelList,exportLabelList } from '@/api/modules/tagsManage' import { getCustomersList, getLabelList, exportLabelList } from '@/api/modules/tagsManage'
import url from '@/assets/clientDataOverview/nodata.png' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'viewCustomers', name: 'viewCustomers',
components: {}, components: {},
data() { data() {
return { return {
customerListsNum:0, customerListsNum: 0,
checkedTag: [], checkedTag: [],
isActive: -1, isActive: -1,
groupId: '', groupId: '',
groupType:'', groupType: '',
tagLists: [], //查询 tagLists: [], //查询
searchLabel: '', //搜索标签 searchLabel: '', //搜索标签
labelGroupName: '', //标签组名称 labelGroupName: '', //标签组名称
...@@ -99,7 +101,7 @@ export default { ...@@ -99,7 +101,7 @@ export default {
isReload: true, isReload: true,
url: url, url: url,
sloading: false, sloading: false,
searchForm: { }, searchForm: {},
searchFormTable: {}, searchFormTable: {},
clientGroupFormList: [ clientGroupFormList: [
{ {
...@@ -223,7 +225,7 @@ export default { ...@@ -223,7 +225,7 @@ export default {
}, },
{ {
label: '是否加入企微', label: '是否加入企微',
prop: 'isJoin', prop: 'isJoin',
addHtml: 'isJoin', addHtml: 'isJoin',
width: 100 width: 100
}, },
...@@ -242,9 +244,9 @@ export default { ...@@ -242,9 +244,9 @@ export default {
}, },
created() { created() {
console.log(this.$route.params.info) console.log(this.$route.params.info)
console.log(this.$route.params.type) console.log(this.$route.params.type)
this.groupId = this.$route.params.info ? this.$route.params.info : '' this.groupId = this.$route.params.info ? this.$route.params.info : ''
this.groupType = this.$route.params.type ? this.$route.params.type : '' this.groupType = this.$route.params.type ? this.$route.params.type : ''
this.getLabelList() this.getLabelList()
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
...@@ -277,9 +279,11 @@ export default { ...@@ -277,9 +279,11 @@ export default {
computed: { computed: {
items: function () { items: function () {
var _search = this.searchLabel var _search = this.searchLabel
if (_search) { // if (_search) {
return this.labelList.filter(item => item.labelName.indexOf(_search) > -1) // console.log()
} // return this.labelList.filter(item => item.labelName.indexOf(_search) > -1)
// }
this.labelList.forEach(item => (item.labelName.indexOf(_search) > -1 ? (item.isHidden = true) : (item.isHidden = false)))
return this.labelList return this.labelList
} }
}, },
...@@ -289,18 +293,21 @@ export default { ...@@ -289,18 +293,21 @@ export default {
let params = { let params = {
// 'labelByGroupIdReq.labelGroupId': this.groupId // 'labelByGroupIdReq.labelGroupId': this.groupId
'labelByGroupIdReq.labelGroupId': this.groupId, 'labelByGroupIdReq.labelGroupId': this.groupId,
'labelByGroupIdReq.labelGroupType':this.groupType 'labelByGroupIdReq.labelGroupType': this.groupType
} }
getLabelList(params).then(res => { getLabelList(params).then(res => {
console.log(res)
console.log(res.data)
this.labelGroupName = res.groupName this.labelGroupName = res.groupName
this.labelList = res.labelNameIds this.labelList = res.labelNameIds
this.labelType = res.groupType this.labelType = res.groupType
this.groupId = res.groupId this.groupId = res.groupId
this.labelList.forEach(item => {
item.isHidden = true
})
}) })
}, },
seletLabelActive(id, index, name) { seletLabelActive(id, index, name) {
console.log(id, index, name)
this.isActive = index this.isActive = index
if (this.checkedTag.indexOf(index) == -1) { if (this.checkedTag.indexOf(index) == -1) {
let res = this.getListParams(id, name) let res = this.getListParams(id, name)
...@@ -311,6 +318,7 @@ export default { ...@@ -311,6 +318,7 @@ export default {
this.checkedTag.splice(spliceIndex, 1) this.checkedTag.splice(spliceIndex, 1)
this.tagLists.splice(spliceIndex, 1) this.tagLists.splice(spliceIndex, 1)
} }
console.log(this.checkedTag)
}, },
// 根据标签获取客户列表 // 根据标签获取客户列表
searchClientData() { searchClientData() {
...@@ -323,27 +331,27 @@ export default { ...@@ -323,27 +331,27 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1
} }
getCustomersList( this.searchForm2).then(res => { getCustomersList(this.searchForm2).then(res => {
this.customerListsNum = res.count this.customerListsNum = res.count
}) })
this.searchTable() this.searchTable()
}, },
getListParams(id, name) { getListParams(id, name) {
const params = {} const params = {}
;(params.groupId = this.groupId), params.groupId = this.groupId
(params.groupName = this.labelGroupName), params.groupName = this.labelGroupName
(params.groupType = this.labelType), params.groupType = this.labelType
(params.labelId = id), params.labelId = id
(params.labelName = name) params.labelName = name
console.log(params) // console.log(params)
return params return params
}, },
// 重置按钮 // 重置按钮
resetSearch() { resetSearch() {
this.searchLabel = '' this.searchLabel = ''
this.checkedTag=[] this.checkedTag = []
this.tagLists=[] this.tagLists = []
}, },
filterNode(val, labelData) { filterNode(val, labelData) {
if (!val) return true if (!val) return true
...@@ -413,7 +421,7 @@ export default { ...@@ -413,7 +421,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams() this.searchFormTable = this.getParams()
resolve() resolve()
}) })
} }
...@@ -489,7 +497,7 @@ export default { ...@@ -489,7 +497,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding-top: 15px; padding-top: 15px;
letter-spacing: 1px; letter-spacing: 1px;
.labelSetLeft { .labelSetLeft {
font-size: 20px; font-size: 20px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!