提交 bfa2e4da authored 作者: lihuihui's avatar lihuihui

Merge branch 'master' of https://gitlab.ezijing.com/webapp/x-training-new

# Conflicts: # src/modules/market-tools/components/mail/MailStepTwo.vue # src/modules/market-tools/views/Mail.vue
...@@ -56,14 +56,8 @@ export default { ...@@ -56,14 +56,8 @@ export default {
}, },
handleStepTwo() { handleStepTwo() {
if (this.showIndex === 0) {
this.activeIndexName = '单次触发'
} else {
this.activeIndexName = '条件触发'
}
this.$emit('getShowIndex', this.showIndex) this.$emit('getShowIndex', this.showIndex)
let flag = true let flag = true
console.log(this.showIndex, 'index')
if (this.showIndex === 0) { if (this.showIndex === 0) {
this.stepTwoList[0].form.triggerList.forEach(item => { this.stepTwoList[0].form.triggerList.forEach(item => {
if (item.startValue === '') { if (item.startValue === '') {
......
...@@ -255,15 +255,7 @@ export default { ...@@ -255,15 +255,7 @@ export default {
}, },
// 进去下一步之前的判断 // 进去下一步之前的判断
handleStepTwo() { handleStepTwo() {
if (this.showIndex === 0) { this.$emit('getShowIndex', this.showIndex)
this.showIndexName = '单次触发'
} else if (this.showIndex === 1) {
this.showIndexName = '周期触发'
} else {
this.showIndexName = '节日触发'
}
console.log(this.showIndexName, 'this.showIndexName')
this.$emit('getShowIndex', this.showIndexName)
const stepTwoData = { const stepTwoData = {
triggerDate: this.triggerDate, triggerDate: this.triggerDate,
......
...@@ -52,13 +52,13 @@ export default { ...@@ -52,13 +52,13 @@ export default {
stepTwoList: [], stepTwoList: [],
stepTwoList2: [], stepTwoList2: [],
caseId: '', caseId: '',
activeIndexName: '' showIndex: ''
} }
}, },
methods: { methods: {
getShowIndex(name) { getShowIndex(val) {
this.activeIndexName = name this.showIndex = val
}, },
// 上一步 // 上一步
handlePrev() { handlePrev() {
......
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
@getShowIndex="getShowIndex" @getShowIndex="getShowIndex"
:stepTwoData="stepTwoData" :stepTwoData="stepTwoData"
/> />
<SmsStepThree <SmsStepThree v-if="activeStep === 2" />
v-if="activeStep === 2"
/>
<div class="main_content_btn"> <div class="main_content_btn">
<div class="step_prev step_btn" @click="handlePrev" v-if="activeStep > 0">上一步</div> <div class="step_prev step_btn" @click="handlePrev" v-if="activeStep > 0">上一步</div>
<div class="step_next step_btn" @click="handleNext" v-if="activeStep >= 0 && activeStep < 2">下一步</div> <div class="step_next step_btn" @click="handleNext" v-if="activeStep >= 0 && activeStep < 2">下一步</div>
...@@ -63,14 +61,14 @@ export default { ...@@ -63,14 +61,14 @@ export default {
times_send: '', times_send: '',
solarTermsList: [], solarTermsList: [],
festivalList: [], festivalList: [],
activeName: '' showIndex: ''
} }
} }
}, },
methods: { methods: {
getShowIndex(name) { getShowIndex(val) {
this.activeName = name this.showIndex = val
}, },
// 获取第二步时间 // 获取第二步时间
getTime(val) { getTime(val) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论