Commit 88179aa6 by xinla

客户轨迹同步问题

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