提交 3225c43f authored 作者: matian's avatar matian

updates

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