Commit 537237d4 by 李伟康

修BUG

1 parent 14d33c37
...@@ -159,9 +159,16 @@ export default { ...@@ -159,9 +159,16 @@ export default {
for (let k of stageList) { for (let k of stageList) {
if (k.value) { if (k.value) {
params.sopJourneyStage = k.value params.sopJourneyStage = k.value
let { list } = await this.$apis.journey.getCustomersList(params) let list = []
list.length && list.map(e => e.day = dayjs().diff(dayjs(e.sopJourneyStageEnterTime), 'day'))
if (sopJourneyStage && sopJourneyStage != k.value) list = [] if (!sopJourneyStage || sopJourneyStage == k.value) {
const { list: apiList } = await this.$apis.journey.getCustomersList(params)
list = apiList
}
list.length &&
list.forEach((e) => {
e.day = dayjs().diff(dayjs(e.sopJourneyStageEnterTime), 'day')
})
arr.push({ arr.push({
title: k.label, title: k.label,
list list
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!