Commit 4fcee63c by 徐忆琳

Merge branch 'v3.19.0_10' into 'v3.19.0'

样式恢复。展示可显示的节点

See merge request !11
2 parents 1b01b035 c156fa5f
...@@ -85,6 +85,7 @@ html { ...@@ -85,6 +85,7 @@ html {
color: #333333; color: #333333;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.journey { .journey {
.el-tabs__item { .el-tabs__item {
height: 20px !important; height: 20px !important;
......
...@@ -10,10 +10,11 @@ ...@@ -10,10 +10,11 @@
<div class="journey-step-body"> <div class="journey-step-body">
<SelJourneyTemplate v-show="currentIndex == '0'" ref="journeyTemplat"></SelJourneyTemplate> <SelJourneyTemplate v-show="currentIndex == '0'" ref="journeyTemplat"></SelJourneyTemplate>
<div v-if="currentIndex == '1'"> <div v-if="currentIndex == '1'">
<!-- <div class="journey-step-info" v-for="(val, k) in configList" :key="k">--> <!-- <div class="journey-step-info" v-for="(val, k) in configList" :key="k">-->
<!-- configList--> <!-- configList-->
<collapse-item-tpl ref="collapseRef" :configList="configList" :isDisabled="isDisabled"></collapse-item-tpl> <collapse-item-tpl ref="collapseRef" :configList="configList"
<!-- </div>--> :isDisabled="isDisabled"></collapse-item-tpl>
<!-- </div>-->
</div> </div>
<DistributionStore v-if="currentIndex == '2'"></DistributionStore> <DistributionStore v-if="currentIndex == '2'"></DistributionStore>
</div> </div>
...@@ -55,7 +56,7 @@ export default { ...@@ -55,7 +56,7 @@ export default {
'1': '客户旅程阶段', '1': '客户旅程阶段',
'2': '分配门店' '2': '分配门店'
}, },
isDisabled:false, isDisabled: false,
currentIndex: 0, currentIndex: 0,
configList: [], configList: [],
configList2: [ configList2: [
...@@ -164,14 +165,27 @@ export default { ...@@ -164,14 +165,27 @@ export default {
let list = [] let list = []
for (let v of nodes) { for (let v of nodes) {
if (v.nodeParamDef && JSON.parse(v.nodeParamDef).stage.defaultValue == stages[k].value) { if (v.nodeParamDef && JSON.parse(v.nodeParamDef).stage.defaultValue == stages[k].value) {
list.push({...JSON.parse(v.nodeParamDef),nodeSkipable: v.nodeSkipable,nodeId:v.nodeId,nodeSkip:'0',customData}) list.push({
...JSON.parse(v.nodeParamDef),
nodeSkipable: v.nodeSkipable,
nodeId: v.nodeId,
nodeSkip: '0',
nodeVisible: v.nodeVisible,// nodeVisible 0 节点不可见 1 可见
customData
})
} }
} }
list = list.filter(item => item.day) list = list.filter(item => item.day)
list.sort((a, b) => { list.sort((a, b) => {
return a.day.defaultValue - b.day.defaultValue return a.day.defaultValue - b.day.defaultValue
}) })
const sopList = this.groupBy(list, 'day.defaultValue') let sopList = this.groupBy(list, 'day.defaultValue')
sopList = sopList.map(function (arr) {
return arr.filter(function (obj) {
// nodeVisible 0 节点不可见 1 可见
return obj.nodeVisible == 1;
});
});
configList.push({ configList.push({
label: stages[k].value, label: stages[k].value,
isExpaned: true, isExpaned: true,
...@@ -211,7 +225,8 @@ export default { ...@@ -211,7 +225,8 @@ export default {
.then(() => { .then(() => {
callback() callback()
}) })
.catch(() => {}) .catch(() => {
})
}, },
//开启 //开启
haneldOpen() { haneldOpen() {
...@@ -227,7 +242,7 @@ export default { ...@@ -227,7 +242,7 @@ export default {
concatActivity() { concatActivity() {
this.$refs.activityForm.init() this.$refs.activityForm.init()
}, },
changeNode(val){ changeNode(val) {
console.log(val) console.log(val)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!