提交 074faf10 authored 作者: matian's avatar matian

updates

上级 36984ca9
<template>
<div class="main_content">
<CardList class="box-card" v-for="(item, index) in stepOneList" :key="index" :cardList="item" />
<div class="step_next step_btn" @click="handleNext">下一步</div>
<!-- <div class="step_next step_btn" @click="handleNext">下一步</div> -->
</div>
</template>
<script>
......@@ -29,29 +29,29 @@ export default {
},
methods: {
// 下一步
handleNext() {
let flag = false
this.cardList.forEach(item =>
item.form.personAttribute.forEach(it => {
console.log(it, '0000')
if (it.equal === '' || it.personal === '' || it.range === '') {
flag = true
return false
}
})
)
if (flag) {
this.$message.warning('请完善改步骤后才能进入下一步')
return false
} else {
console.log(this.$store.state.case.id, '0000')
const reports = { activeStep: 0, type: 2, commit_report: this.stepOneList }
cacheReport(this.$store.state.case.id, { reports: JSON.stringify(reports) }).then(res => {
this.caseId = res.data.id
this.$parent.$parent.handleNext()
})
}
}
// handleNext() {
// let flag = false
// this.cardList.forEach(item =>
// item.form.personAttribute.forEach(it => {
// console.log(it, '0000')
// if (it.equal === '' || it.personal === '' || it.range === '') {
// flag = true
// return false
// }
// })
// )
// if (flag) {
// this.$message.warning('请完善改步骤后才能进入下一步')
// return false
// } else {
// console.log(this.$store.state.case.id, '0000')
// const reports = { activeStep: 0, type: 2, commit_report: this.stepOneList }
// cacheReport(this.$store.state.case.id, { reports: JSON.stringify(reports) }).then(res => {
// this.caseId = res.data.id
// this.$parent.$parent.handleNext()
// })
// }
// }
}
}
</script>
......
......@@ -20,8 +20,8 @@
</template>
</StepTab>
<div class="main_content_btn">
<div class="step_prev step_btn" @click="handlePrev">上一步</div>
<div class="step_next step_btn" @click="handleNext">下一步</div>
<!-- <div class="step_prev step_btn" @click="handlePrev">上一步</div>
<div class="step_next step_btn" @click="handleNext">下一步</div> -->
</div>
</div>
</template>
......
......@@ -7,8 +7,9 @@
<MailStepTwo v-if="activeStep === 1" class="pt-50" :stepTwoList="stepTwoList" :time="time" />
<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 < 3">下一步</div>
<div class="step_finished step_btn" @click="handlePreview" v-if="activeStep === 3">点击生成预览</div>
<div class="step_next step_btn" @click="handleNext" v-if="activeStep >= 0 && activeStep < 2">下一步</div>
<div class="step_finished step_btn" @click="handlePreview" v-if="activeStep === 2">点击生成预览</div>
<div class="step_finished step_btn" @click="handlePreview" v-if="activeStep === 3">执行营销计划</div>
</div>
</div>
</ToolCard>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论