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

updates

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