Commit bac1c203 by 杨明

第一轮bug修复

1 parent bfd52cba
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:35:11
* @LastEditTime: 2024-01-09 15:39:12
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -44,7 +44,6 @@ export default {
}
})
}
console.log(val.operators, day, 'dat')
if (/\[.*\]/.test(title) && day.length == 2) {
title = title.replace(/\[.*?\]/, day[0]).replace(/\[.*?\]/, day[1])
}
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:34:19
* @LastEditTime: 2024-01-10 16:36:13
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -67,7 +67,7 @@
<div v-for="(value, key) in v" :key="key" class="step-time-item flex-column-center">
<div style="width: 100%">
<div class="step-item-desc">
<span>[{{ value.time }}]发送 | {{ stageInfo([value.taskType]).nodeName }} |{{ stageInfo([value.taskType]).desc }}</span>
<span>[{{ value.time }}]发送 | {{ stageInfo([value.nodeProtoId]).nodeName }} |{{ stageInfo([value.nodeProtoId]).desc }}</span>
</div>
<div class="step-item-name" v-if="value.taskType">{{ activity_name[value.taskType] }}</div>
......@@ -102,7 +102,6 @@
<div class="popover-panel" v-for="(t, pkey) in v" :key="pkey">
<div class="flex-column-center">
<span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${t.taskType}`]"></div>
</div>
<div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div>
</div>
......@@ -116,7 +115,6 @@
<!-- 5 =>跟进提醒-->
<!-- 6 =>修改旅程阶段-->
<!-- 7 => 获取客户信息-->
<div :class="['stage-icon', `stage-${value.taskType}`]"></div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0">
<span>{{ v.length }}个任务</span>
......@@ -249,13 +247,15 @@ export default {
methods: {
//获取sop映射字段
stageInfo(i) {
console.log(i)
const defaultStage = {
nodeName: '',
desc: ''
}
if (this.modelList) {
return this.modelList.find(item => item.id == i)
return this.modelList.find(item => item.id == i) || defaultStage
} else {
return {
nodeName: '',
desc: ''
}
return defaultStage
}
},
//查看详情
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-08 17:59:32
* @LastEditTime: 2024-01-10 16:35:33
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -90,14 +90,12 @@
<div class="popover-panel" v-for="(t, pkey) in v" :key="pkey">
<div class="flex-column-center" v-if="t.nodeSkip == '0'">
<span>{{ value.time.defaultValue }}</span>
<div :class="['stage-icon', `stage-${t.taskType.defaultValue}`]"></div>
</div>
<!-- <div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div> -->
</div>
<div slot="reference" class="flex-column-center" v-if="v.length <= 2 && value.nodeSkip == '0'">
<span>{{ value.time.defaultValue }}</span>
<div :class="['stage-icon', `stage-${value.taskType.defaultValue}`]"></div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0">
<span>{{ v.filter(item => item.nodeSkip == '0').length }}个任务</span>
......@@ -233,13 +231,14 @@ export default {
},
//获取sop映射字段
stageInfo(i) {
const defaultStage = {
nodeName: '',
desc: ''
}
if (this.modelList) {
return this.modelList.find(item => item.id == i)
return this.modelList.find(item => item.id == i) || defaultStage
} else {
return {
nodeName: '',
desc: ''
}
return defaultStage
}
},
//查看详情
......
......@@ -16,7 +16,7 @@ import CollapseItem from './components/CollapseItem'
export default {
components: {
CollapseItem,
CollapseItem
},
data() {
return {
......@@ -110,7 +110,7 @@ export default {
},
methods: {
getDetail(val) {
this.$apis.journeyConfig.getInsDetailsApi({instId: val}).then(res => {
this.$apis.journeyConfig.getInsDetailsApi({ instId: val }).then(res => {
const instParam = JSON.parse(res.instParam)
const stages = instParam.stages
const customData = instParam.customData
......@@ -126,6 +126,7 @@ export default {
nodeSkip: v.nodeSkip,
nodeVisible: v.nodeVisible,
nodeId: v.nodeId,
nodeProtoId: v.nodeProtoId,
customData
})
}
......@@ -135,13 +136,13 @@ export default {
return a.day - b.day
})
let sopList = this.groupBy(list, 'day')
sopList = sopList.map(function (arr) {
return arr.filter(function (obj) {
sopList = sopList.map(function(arr) {
return arr.filter(function(obj) {
// nodeVisible 0 节点不可见 1 可见
// nodeSkip 0 节点不跳过 1 节点跳过
return obj.nodeSkip == 0 && obj.nodeVisible == 1;
});
});
return obj.nodeSkip == 0 && obj.nodeVisible == 1
})
})
configList.push({
label: stages[k].value,
isExpaned: true,
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 14:02:39
* @LastEditTime: 2024-01-10 09:23:30
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -147,24 +147,24 @@ export default {
return this.showError('请选择圈化人群的方式')
}
let stage = {}
this.configList.forEach((item, k) => {
stage['stage' + (k + 1)] = {
const nodes = []
this.configList = this.configList.filter(item => item.label)
this.configList.forEach((item, index) => {
stage['stage' + (index + 1)] = {
editable: item.editable,
conditions: item.conditionsList,
value: item.label
}
})
const nodes = []
this.configList.forEach(i => {
i.sopList.forEach(days => {
item.sopList.forEach(days => {
days.forEach(k => {
nodes.push({
nodeParamDef: JSON.stringify({
stage: { defaultValue: k.stage },
day: { defaultValue: k.day },
time: {
defaultValue: k.time
}
time: { defaultValue: k.time }
}),
nodeProtoId: k.taskType
})
......@@ -185,7 +185,6 @@ export default {
tplParamDef: JSON.stringify(dataTypeCode),
nodes
}
console.log(params, 7)
this.$apis.journeyModel.sopTplsSave(params).then(res => {
if (res) {
this.$router.go(-1)
......
......@@ -118,14 +118,12 @@
<div class="popover-panel" v-for="(t, pkey) in v" :key="pkey">
<div class="flex-column-center">
<span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[t.taskType]}`]"></div>
</div>
<div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length <= 2">
<span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[value.taskType]}`]"></div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0">
<span>3条内容</span>
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 13:39:49
* @LastEditTime: 2024-01-09 17:17:26
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -139,8 +139,26 @@ export default {
})
},
handleSure() {
const { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm
//条件序号condition_i
let { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm,
isInput = true
if (!conditionList.conditions) {
this.$message({
type: 'error',
message: '请选择进入条件',
customClass: 'error-tips'
})
return
}
conditionList.conditions.forEach(i => {
if (i.operators && i.operators.length) {
isInput = false
i.operators.forEach(o => {
if (o.value) {
isInput = true
}
})
}
conditionListAll.conditions.forEach(j => {
if (i.id == j.id) {
j.operators = i.operators
......@@ -148,7 +166,14 @@ export default {
}
})
})
console.log(conditionList, conditionListAll, 9)
if (!isInput) {
this.$message({
type: 'error',
message: '请完善条件',
customClass: 'error-tips'
})
return
}
this.$emit('closeActivity', { conditionList: { ...conditionListAll, flag: conditionList.flag }, condition_i })
},
handleAddEmp() {
......@@ -219,3 +244,8 @@ export default {
}
}
</style>
<style>
.error-tips {
z-index: 99999 !important;
}
</style>
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 14:31:26
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:19:18
* @LastEditTime: 2024-01-09 17:57:40
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid
-->
......@@ -14,7 +14,7 @@
<span>请设置营销时间:</span>
<el-input-number v-model="day" :min="1" :max="1000" :size="size"></el-input-number>
<span>天后,当日</span>
<el-time-picker v-model="time" :size="size" format="HH:mm" value-format="HH:mm"></el-time-picker>
<el-time-picker :picker-options="rangeStart" v-model="time" :size="size" format="HH:mm" value-format="HH:mm"></el-time-picker>
<span>发送</span>
</div>
<div class="sop-item flex">
......@@ -48,6 +48,9 @@ export default {
},
data() {
return {
rangeStart: {
selectableRange: '09:00:00 - 22:00:00' // 09:00:00 - 22:00:00的时间才可以选择
},
nodeKey: '',
day: 0,
time: '',
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-12-27 19:57:15
* @LastEditTime: 2024-01-10 09:13:25
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -276,6 +276,10 @@ export default {
.journey-step-desc {
font-size: 14px;
color: #333333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0px 6px;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!