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 {
color: #333333;
border-bottom: 1px solid #e5e5e5;
}
.journey {
.el-tabs__item {
height: 20px !important;
......
......@@ -10,10 +10,11 @@
<div class="journey-step-body">
<SelJourneyTemplate v-show="currentIndex == '0'" ref="journeyTemplat"></SelJourneyTemplate>
<div v-if="currentIndex == '1'">
<!-- <div class="journey-step-info" v-for="(val, k) in configList" :key="k">-->
<!-- configList-->
<collapse-item-tpl ref="collapseRef" :configList="configList" :isDisabled="isDisabled"></collapse-item-tpl>
<!-- </div>-->
<!-- <div class="journey-step-info" v-for="(val, k) in configList" :key="k">-->
<!-- configList-->
<collapse-item-tpl ref="collapseRef" :configList="configList"
:isDisabled="isDisabled"></collapse-item-tpl>
<!-- </div>-->
</div>
<DistributionStore v-if="currentIndex == '2'"></DistributionStore>
</div>
......@@ -55,7 +56,7 @@ export default {
'1': '客户旅程阶段',
'2': '分配门店'
},
isDisabled:false,
isDisabled: false,
currentIndex: 0,
configList: [],
configList2: [
......@@ -164,14 +165,27 @@ export default {
let list = []
for (let v of nodes) {
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.sort((a, b) => {
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({
label: stages[k].value,
isExpaned: true,
......@@ -211,7 +225,8 @@ export default {
.then(() => {
callback()
})
.catch(() => {})
.catch(() => {
})
},
//开启
haneldOpen() {
......@@ -227,7 +242,7 @@ export default {
concatActivity() {
this.$refs.activityForm.init()
},
changeNode(val){
changeNode(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!