Commit 9ef590bf by 杨明

国任条件

1 parent daa1e334
......@@ -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-05 15:42:54
* @LastEditTime: 2024-01-05 16:09:39
* @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
-->
......@@ -42,7 +42,7 @@
</div>
</div>
<template v-if="conditionsList">
<div class="condition-panel">
<div class="condition-panel" v-if="conditionsList.name != '页面停留'">
<div class="flex">
<label class="condition-label">进入条件:</label>
<div class="condition-select">
......@@ -55,7 +55,8 @@
</template>
</div>
<div class="condition-input" v-for="item in conditionsList.subConditions" :key="item.id">
<span>并且满足 旅程阶段不包含</span>
<span>并且满足 {{ item.name }}</span>
<el-input :value="item.operators[item.value].name"></el-input>
<el-input :value="item.operators[item.value].value"></el-input>
</div>
</div>
......@@ -117,6 +118,7 @@ export default {
},
data() {
return {
typeName: '',
empType: 0,
userList: [],
conditionsList: [],
......@@ -227,7 +229,7 @@ export default {
label: '条件类型',
name: 'conditionsList',
getName: value => {
return value.name
return this.typeName
}
}
]
......@@ -243,9 +245,10 @@ export default {
},
mounted() {
const { index } = this.conditionInfo,
{ dataTypeCode, conditions, flag } = this.conditionInfo.conditionsList[index],
{ dataTypeCode, conditions, flag, name } = this.conditionInfo.conditionsList[index],
condition = conditions.filter(i => i.isHide)
this.configInfo = condition
this.typeName = name
const conditionsList = conditions.filter(i => !i.isHide),
idx = conditionsList.findIndex(i => i.id == flag)
this.conditionsList = conditionsList[idx > -1 ? idx : 0]
......@@ -272,8 +275,13 @@ export default {
remove(val, idx) {
this.userList.splice(idx, 1)
},
handleMaterialConfirm(val) {
const { objectId, objectName } = val
this.configInfo[0].operators[0].value = `8+${objectId}+${objectName}`
},
selectActivity(val) {
const { marketingName, marketingId, miniType } = val
console.log(marketingName, marketingId, miniType)
this.configInfo[0].operators[0].value = `${miniType}+${marketingId}+${marketingName}`
},
// 成员弹窗
......@@ -301,7 +309,7 @@ export default {
this.configInfo[0].operators[0].value = userId.join(',')
this.configInfo[0].operators[0].desc = desc
} else {
this.configInfo[1].operators = [];
this.configInfo[1].operators = []
this.configInfo[0].operators[0].value = ''
this.configInfo[0].operators[0].desc = ''
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!