Commit 8ad2eb67 by 前端

fixed

1 parent b4710867
......@@ -60,6 +60,7 @@ const getSharedListApi = params => {
sign: true
})
}
// 意向客户
const getPurposeListApi = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page'
return http({
......@@ -69,6 +70,15 @@ const getPurposeListApi = params => {
sign: true
})
}
const updateFollow = params => {
params.method = 'scrm.api.shopmall.gh.customer.record.update.follow.up.flag'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 分页浏览-导出
const exportBrowseApi = (params, TYPE = 1) => {
......@@ -279,4 +289,4 @@ const liveroomOverview = params => {
sign: true
})
}
export default { purposeExport, getPayMerchatListApi, getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getPurposeListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
export default { purposeExport, getPayMerchatListApi, getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getPurposeListApi, updateFollow, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
......@@ -49,6 +49,9 @@
<span class="m-l-10">{{ scope.scope.shareName }}</span>
<span class="m-l-10">{{ scope.scope.sharePhone }}</span>
</div>
<div slot="isFlow" slot-scope="scope">
<el-switch :value="scope.scope.followUpFlag == 2 ? true : false" class="switchStyle" @change="changeSwith(scope.scope)"></el-switch>
</div>
<div slot="isBuy" slot-scope="scope">
<span :class="['table-circle', 'm-r-8', scope.scope.isBuy == 'Y' ? 'back-green' : 'back-grey']"></span>
<span>
......@@ -234,6 +237,12 @@ export default {
label: '最后浏览时间',
prop: 'lastBrowseDate',
width: '195px'
},
{
label: '是否跟进',
prop: 'isFlow',
width: '100',
addHtml: 'isFlow'
}
]
break
......@@ -245,6 +254,12 @@ export default {
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
},
methods: {
changeSwith(scope) {
const { id, followUpFlag } = scope
this.$apis.seckillActivity.updateFollow({ followUpFlag: followUpFlag == 1 ? 2 : 1, id }).then(res => {
this.handleSearch()
})
},
beforeSearchFn() {
return new Promise(resolve => {
console.log(this.$parent)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!