Commit 88179aa6 by xinla

客户轨迹同步问题

1 parent 3dd32ff9
......@@ -230,6 +230,6 @@ export function getFollowUpRecord(params) {
*/
export function syncTrack(userIds) {
return request({
url: getway + `/moments/synchMomentsInteracte`
url: getway + `/moments/synchMomentsInteracte/${userIds}`
})
}
......@@ -20,7 +20,7 @@ export default {
},
data() {
return {
portrayalSum: { companyTags: [], personTags: [], trackStates: [] }, // 客户画像汇总
portrayalSum: { companyTags: [], personTags: [], trackStates: [], trackUsers: [] }, // 客户画像汇总
trajectoryType: {
0: '全部',
1: '信息动态',
......@@ -243,6 +243,7 @@ export default {
v-show="item === active"
:key="index"
:userId="userId"
:userIdAll="portrayalSum.trackUsers.map((e) => e.trackUserId).join()"
:lastSyncTime.sync="lastSyncTime"
:trajectoryType="item == 0 ? null : item"
></record>
......
......@@ -10,6 +10,11 @@ export default {
type: String,
default: null
},
// 所有跟进人id(用于客户画像汇总的同步)
userIdAll: {
type: String,
default: null
},
// 1:信息动态;2:社交动态;3:跟进动态;4:待办动态
trajectoryType: {
type: String,
......@@ -98,7 +103,7 @@ export default {
},
sync() {
this.loading = true
syncTrack(this.userId)
syncTrack(this.userId || this.userIdAll)
.then(() => {
this.getList(1)
this.msgSuccess('后台开始同步数据,请稍后关注进度')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!