Commit 2f2d3701 by xuyl

修复导出传参bug

1 parent 6e87d4a5
...@@ -34,8 +34,12 @@ ...@@ -34,8 +34,12 @@
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
<!-- {{ labelGroupName }} --> <!-- {{ labelGroupName }} -->
<!-- <div class="clientListNew">标签组客户列表</div>
<div class="clientNumText">{{ tableTotal }}个</div> -->
<div class="clientListNew">
标签组客户列表 标签组客户列表
<span class="clientNumText">{{ tableTotal }}个</span> <div class="clientNumText">{{ tableTotal }}个</div>
</div>
</div> </div>
<div class="export" @click="handleExport">导出</div> <div class="export" @click="handleExport">导出</div>
</div> </div>
...@@ -68,11 +72,6 @@ ...@@ -68,11 +72,6 @@
</div> </div>
<div class="label-panle" :style="{ height: boxHeight + 'px' }" v-if="items.length > 0"> <div class="label-panle" :style="{ height: boxHeight + 'px' }" v-if="items.length > 0">
<template v-for="(item, index) in items"> <template v-for="(item, index) in items">
<!-- <div class="iconLabelsName" :class="{ active: checkedTag.indexOf(index) > -1 }" v-if="item.isHidden" :key="index" @click="seletLabelActive(item.labelId, index, item.labelName)">
<img src="@/assets/tagsManage/label.png" alt="" />
<span :title="item.labelName.length > 10 ? 'item.labelName' : ''" class="LabelsNameTxt">{{ item.labelName }}</span>
<img v-if="checkedTag.indexOf(index) > -1" class="labelChecked" src="@/assets/tagsManage/checked.png" alt="" />
</div> -->
<div class="iconLabelsName" :class="{ active: checkedId == item.labelId }" :key="index" @click="seletLabelActive(item.labelId, item)"> <div class="iconLabelsName" :class="{ active: checkedId == item.labelId }" :key="index" @click="seletLabelActive(item.labelId, item)">
<img src="@/assets/tagsManage/label.png" alt="" /> <img src="@/assets/tagsManage/label.png" alt="" />
<span :title="item.labelName.length > 10 ? 'item.labelName' : ''" class="LabelsNameTxt">{{ item.labelName }}</span> <span :title="item.labelName.length > 10 ? 'item.labelName' : ''" class="LabelsNameTxt">{{ item.labelName }}</span>
...@@ -125,6 +124,7 @@ export default { ...@@ -125,6 +124,7 @@ export default {
searchForm3: {}, searchForm3: {},
searchFormTable: {}, searchFormTable: {},
boxHeight: 200, boxHeight: 200,
exportParams:{},
clientGroupFormList: [ clientGroupFormList: [
{ {
type: 'input', type: 'input',
...@@ -219,9 +219,9 @@ export default { ...@@ -219,9 +219,9 @@ export default {
// width: 160 // width: 160
}, },
// { // {
// label: '昵称', // label: '企微名称',
// prop: 'nickname', // prop: 'nickname'
// minWidth: 100 // // minWidth:
// }, // },
{ {
label: '手机号', label: '手机号',
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
pageSize: this.$refs.viewCustomers.page.pageSize, pageSize: this.$refs.viewCustomers.page.pageSize,
pageNum: this.$refs.viewCustomers.page.pageNum pageNum: this.$refs.viewCustomers.page.pageNum
} }
console.log(this.$apis.tagsManage) this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))}
getCustomersList(params).then(res => { getCustomersList(params).then(res => {
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
...@@ -385,6 +385,8 @@ export default { ...@@ -385,6 +385,8 @@ export default {
this.searchForm = { this.searchForm = {
...allListParams ...allListParams
} }
console.log(this.searchForm)
// this.exportParams = {...allListParams}
this.getCustomersListData() this.getCustomersListData()
this.tagLists = [] this.tagLists = []
}, },
...@@ -393,11 +395,13 @@ export default { ...@@ -393,11 +395,13 @@ export default {
this.$refs.viewCustomers.page.pageNum = 1 this.$refs.viewCustomers.page.pageNum = 1
this.dialogVisible = false this.dialogVisible = false
if (!this.tagLists.length) { if (!this.tagLists.length) {
// this.exportParams = {...this.allListParams}
this.getAllClientList(this.allListParams) this.getAllClientList(this.allListParams)
} else { } else {
this.allListParams = { this.allListParams = {
tagLists: this.tagLists tagLists: this.tagLists
} }
// this.exportParams = {...this.allListParams}
this.getCustomersListData() this.getCustomersListData()
} }
}, },
...@@ -417,6 +421,11 @@ export default { ...@@ -417,6 +421,11 @@ export default {
this.checkedId = '' this.checkedId = ''
this.tagLists = [] this.tagLists = []
this.allListParams = this.startParams this.allListParams = this.startParams
// this.$refs.viewCustomers.page.pageNum = 1
// this.$refs.viewCustomers.page.pageSize = 10
// this.getCustomersListData()
// this.dialogVisible = false
}, },
filterNode(val, labelData) { filterNode(val, labelData) {
if (!val) return true if (!val) return true
...@@ -450,7 +459,9 @@ export default { ...@@ -450,7 +459,9 @@ export default {
}, },
//导出 //导出
handleExport() { handleExport() {
var params = this.getParams() const params = {
...JSON.parse(JSON.stringify(this.exportParams)),
}
console.log(params) console.log(params)
exportLabelList(params).then(res => { exportLabelList(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
...@@ -503,16 +514,25 @@ export default { ...@@ -503,16 +514,25 @@ export default {
padding-bottom: 20px; padding-bottom: 20px;
letter-spacing: 1px; letter-spacing: 1px;
.clientNum { .clientNum {
// padding-top: 14px; // display: flex;
// align-items: center;
.clientListNew {
display: flex;
align-items: center;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
font-size: 20px; font-size: 20px;
}
.clientNumText { .clientNumText {
margin-left: 6px;
height: 20px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #5850ff; color: #5850ff;
line-height: 20px;
padding-top: 2px;
} }
} }
.export { .export {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!