Commit 1636222e by 前端

Merge branch 'xuyl_dev_v2.8.0' into 'v2.8.0'

更新最新代码到2.8

See merge request !143
2 parents 66b3833c 10623846
...@@ -137,6 +137,7 @@ export default { ...@@ -137,6 +137,7 @@ export default {
handleExport() { handleExport() {
const params = { const params = {
...JSON.parse(JSON.stringify({ tagLists: this.allListParams })), ...JSON.parse(JSON.stringify({ tagLists: this.allListParams })),
...this.searchForm,
combineType: 2 combineType: 2
} }
exportLabelList(params).then(res => { exportLabelList(params).then(res => {
...@@ -146,8 +147,8 @@ export default { ...@@ -146,8 +147,8 @@ export default {
//客户列表 //客户列表
getCustomersListData() { getCustomersListData() {
if (this.searchForm.createTime) { if (this.searchForm.createTime) {
this.searchForm.beginTime = new Date(this.searchForm.createTime[0]).toLocaleDateString().replace(/-/g, '/') this.searchForm.beginCarBuyDate = new Date(this.searchForm.createTime[0]).toLocaleDateString().replace(/-/g, '/')
this.searchForm.endTime = new Date(this.searchForm.createTime[1]).toLocaleDateString().replace(/-/g, '/') this.searchForm.endCarBuyDate = new Date(this.searchForm.createTime[1]).toLocaleDateString().replace(/-/g, '/')
} }
delete this.searchForm.createTime delete this.searchForm.createTime
const tagLists = this.$common.utils.deepClone(this.allListParams) const tagLists = this.$common.utils.deepClone(this.allListParams)
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="back color-58 font-14" @click="goBack">返回人群管理</div> <div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div> </div>
<div class="main-container"> <div class="main-container">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="main-container-head flex-between"> <div class="main-container-head flex-between">
<div class="main-container-head-title color-3 font-20"> <div class="main-container-head-title color-3 font-20">
全部客户 全部客户
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
</div> </div>
<div> <div>
<el-button size="small" @click="handleExport" class="export">导出</el-button> <el-button size="small" @click="handleExport" class="export">导出</el-button>
<el-button plain size="small" @click="createMarketSOP()"> <el-button plain size="small" @click="createMarketSOP()">营销SOP</el-button>
营销SOP
</el-button>
</div> </div>
</div> </div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
...@@ -72,15 +70,16 @@ export default { ...@@ -72,15 +70,16 @@ export default {
corwdId: '', //传到营销SOP的crowId corwdId: '', //传到营销SOP的crowId
getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? getcrowdManageList : getCustomerList, getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? getcrowdManageList : getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: { searchForm: {
customerPhone: '', // customerPhone: '',
nickName: '', // nickName: '',
customerName: '', // customerName: '',
followStaff: '', // followStaff: '',
audi: '', // audi: '',
carNumber: '', // carNumber: '',
isJoin: '' // isJoin: ''
}, },
tableSearchForm: {},
tagsPartFormList: [ tagsPartFormList: [
{ {
type: 'select', type: 'select',
...@@ -273,12 +272,13 @@ export default { ...@@ -273,12 +272,13 @@ export default {
}) })
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.tableSearchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.crowdType == 1 || this.crowdType == 2) params.customCrowd = true
if (params.daterange) { if (params.daterange) {
params.beginTime = this.tableSearchForm.daterange[0] params.beginCarBuyDate = params.daterange[0]
params.endTime = this.tableSearchForm.daterange[1] params.endCarBuyDate = params.daterange[1]
} else { } else {
if (params.beginTime) delete params.beginTime && delete params.endTime if (params.beginCarBuyDate) delete params.beginCarBuyDate && delete params.endCarBuyDate
} }
delete params.daterange delete params.daterange
return params return params
...@@ -346,13 +346,13 @@ export default { ...@@ -346,13 +346,13 @@ export default {
this.$refs.groupRef.refreshTable() this.$refs.groupRef.refreshTable()
}, },
handleReset() { handleReset() {
this.tableSearchForm = { this.searchForm = {
crowdId: this.id crowdId: this.id
} }
this.$refs.groupRef.refreshTable() this.$refs.groupRef.refreshTable()
}, },
init(id) { init(id) {
this.tableSearchForm = { this.searchForm = {
crowdId: id crowdId: id
} }
// 通过人群Id查询人群详情 // 通过人群Id查询人群详情
...@@ -377,12 +377,9 @@ export default { ...@@ -377,12 +377,9 @@ export default {
}, },
//导出 //导出
handleExport() { handleExport() {
var params = { var params = this.getParams()
crowdId: this.id, params.pageSize = 10
pageSize: 10, params.pageNum = 1
pageNum: 1
}
if (this.crowdType == 1 || this.crowdType == 2) params.customCrowd = true
customerClusterListExport(params).then(res => { customerClusterListExport(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!