Commit 537237d4 by 李伟康

修BUG

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