Commit c8fd1aed by 杨明

bug修复

1 parent 4d912365
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36 * @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-12 13:41:22 * @LastEditTime: 2024-01-16 10:09:46
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js * @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
val.subConditions.forEach(i => { val.subConditions.forEach(i => {
i.operators.forEach(o => { i.operators.forEach(o => {
if (o.value) { if (o.value) {
title += `并且满足${i.name}${o.name}${o.value}${o.unit}` title += `并且满足${i.name}${o.name}${o.value}${o.unit?o.unit:''}`
} }
}) })
}) })
......
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
configList.push({ configList.push({
label: stages[k].value, label: stages[k].value,
isExpaned: true, isExpaned: true,
editable: stages[k].editable,
conditionsList: stages[k].conditions || [], conditionsList: stages[k].conditions || [],
sopList sopList
}) })
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<div class="task-item-name">进入条件</div> <div class="task-item-name">进入条件</div>
<div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div> <div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div>
<div class="task-item-mark">该旅程阶段支持手动标记</div> <div class="task-item-mark">该旅程阶段支持{{ stepItem.editable ? '' : '不' }}手动标记</div>
</div> </div>
<div class="progress-item-content bg-fff"> <div class="progress-item-content bg-fff">
<div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k"> <div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08 * @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-15 14:43:49 * @LastEditTime: 2024-01-16 10:38:50
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue * @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<div class="task-item-name">进入条件</div> <div class="task-item-name">进入条件</div>
<div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div> <div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div>
<div class="task-item-mark">该旅程阶段支持手动标记</div> <div class="task-item-mark">该旅程阶段支持{{ stepItem.editable ? '' : '不' }}手动标记</div>
</div> </div>
<div class="progress-item-content bg-fff"> <div class="progress-item-content bg-fff">
<div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k"> <div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k">
......
...@@ -146,6 +146,7 @@ export default { ...@@ -146,6 +146,7 @@ export default {
configList.push({ configList.push({
label: stages[k].value, label: stages[k].value,
isExpaned: true, isExpaned: true,
editable: stages[k].editable,
conditionsList: stages[k].conditions || [], conditionsList: stages[k].conditions || [],
sopList sopList
}) })
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="journey-step bg-fff pb20" v-if="addForm.region"> <div class="journey-step bg-fff pb20">
<div class="journey-step-title border-title"> <div class="journey-step-title border-title">
客户旅程阶段配置 客户旅程阶段配置
</div> </div>
...@@ -264,7 +264,8 @@ export default { ...@@ -264,7 +264,8 @@ export default {
//获取圈化人群的方式 //获取圈化人群的方式
sopDataTypesList() { sopDataTypesList() {
this.$apis.journeyModel.sopDataTypesList({}).then(res => { this.$apis.journeyModel.sopDataTypesList({}).then(res => {
this.sopDataTypes = res this.sopDataTypes = res || [{}]
this.addForm.region = this.sopDataTypes[0].code
}) })
}, },
//获取详情 //获取详情
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 20:36:05 * @Date: 2023-12-22 20:36:05
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-12 15:53:49 * @LastEditTime: 2024-01-16 10:37:53
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="task-item-name">进入条件</div> <div class="task-item-name">进入条件</div>
<div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div> <div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div>
<div class="task-item-mark">该旅程阶段支持手动标记</div> <div class="task-item-mark">该旅程阶段支持{{ stepItem.editable ? '' : '不' }}手动标记</div>
</div> </div>
<div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length"> <div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length">
<div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k"> <div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43 * @Date: 2023-12-25 13:34:43
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-15 11:16:55 * @LastEditTime: 2024-01-16 10:47:30
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -133,10 +133,10 @@ export default { ...@@ -133,10 +133,10 @@ export default {
const _conditions = this.stepList.find(i => i.id == val.id).conditions const _conditions = this.stepList.find(i => i.id == val.id).conditions
_conditions.forEach(i => { _conditions.forEach(i => {
if (i.id == this.condition.id && this.condition.subConditions.length == 0 && i.subConditions.length > 0) { if (i.id == this.condition.id && this.condition.subConditions.length == 0 && i.subConditions.length > 0) {
this.condition.subConditions = i.subConditions this.condition.subConditions = this.$common.utils.deepClone(i.subConditions)
} }
}) })
console.log(this.conditionList, 'this.conditionList') console.log(this.condition, _conditions, 'this.conditionList')
}, },
// 保存最后一项用于新增 // 保存最后一项用于新增
delCondition(val, k) { delCondition(val, k) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!