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

update

上级 787526e0
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div v-if="data.index === 0"> <div v-if="data.index === 0">
&nbsp;&nbsp; &nbsp;&nbsp;
<el-date-picker <el-date-picker
v-model="triggerDate" v-model="data.triggerDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
......
...@@ -126,9 +126,9 @@ export default { ...@@ -126,9 +126,9 @@ export default {
checkRecord(this.$store.state.case.id, 2).then(res => { checkRecord(this.$store.state.case.id, 2).then(res => {
if (res.data.status === true) { if (res.data.status === true) {
const answerList = res.data.items.find(item => item.type === 3) const answerList = res.data.items.find(item => item.type === 3)
if (answerList) {
this.activeStep = answerList.answer.activeStep || 0 this.activeStep = answerList.answer.activeStep || 0
this.caseId = answerList.id this.caseId = answerList.id
if (Object.keys(answerList).length) {
this.form = answerList.answer.commit_report this.form = answerList.answer.commit_report
} }
} }
......
...@@ -64,15 +64,20 @@ export default { ...@@ -64,15 +64,20 @@ export default {
}, },
handleTool() { handleTool() {
if (this.listIndex === 0) { if (this.listIndex === 0) {
this.$router.push('/market-tools/douYin') // this.$router.push('/market-tools/douYin')
window.location.href = '/market-tools/douYin'
} else if (this.listIndex === 1) { } else if (this.listIndex === 1) {
this.$router.push('/market-tools/mail') // this.$router.push('/market-tools/mail')
window.location.href = '/market-tools/mail'
} else if (this.listIndex === 2) { } else if (this.listIndex === 2) {
this.$router.push('/market-tools/app') // this.$router.push('/market-tools/app')
window.location.href = '/market-tools/app'
} else if (this.listIndex === 3) { } else if (this.listIndex === 3) {
this.$router.push('/market-tools/sms') // this.$router.push('/market-tools/sms')
window.location.href = '/market-tools/sms'
} else if (this.listIndex === 4) { } else if (this.listIndex === 4) {
this.$router.push('/market-tools/weChat') window.location.href = '/market-tools/weChat'
// this.$router.push('/market-tools/weChat')
} }
} }
} }
......
...@@ -130,9 +130,9 @@ export default { ...@@ -130,9 +130,9 @@ export default {
checkRecord(this.$store.state.case.id, 2).then(res => { checkRecord(this.$store.state.case.id, 2).then(res => {
if (res.data.status === true) { if (res.data.status === true) {
const answerList = res.data.items.find(item => item.type === 2) const answerList = res.data.items.find(item => item.type === 2)
if (answerList) {
this.activeStep = answerList.answer.activeStep || 0 this.activeStep = answerList.answer.activeStep || 0
this.caseId = answerList.id this.caseId = answerList.id
if (Object.keys(answerList).length) {
this.form = answerList.answer.commit_report this.form = answerList.answer.commit_report
} }
} }
......
...@@ -132,12 +132,11 @@ export default { ...@@ -132,12 +132,11 @@ export default {
checkRecord() { checkRecord() {
checkRecord(this.$store.state.case.id, 2).then(res => { checkRecord(this.$store.state.case.id, 2).then(res => {
if (res.data.status === true) { if (res.data.status === true) {
const answerList = res.data.items.find(item => item.type === 4) const answerList = res.data.items.find(item => parseInt(item.type) === 4)
this.activeStep = answerList.answer.activeStep || 0 if (answerList) {
this.caseId = answerList.id this.caseId = answerList.id
if (Object.keys(answerList).length) { this.activeStep = answerList.answer.activeStep || 0
this.form = answerList.answer.commit_report this.form = answerList.answer.commit_report
console.log(this.form, 'form')
} }
} }
}) })
......
...@@ -125,9 +125,9 @@ export default { ...@@ -125,9 +125,9 @@ export default {
checkRecord(this.$store.state.case.id, 2).then(res => { checkRecord(this.$store.state.case.id, 2).then(res => {
if (res.data.status === true) { if (res.data.status === true) {
const answerList = res.data.items.find(item => item.type === 5) const answerList = res.data.items.find(item => item.type === 5)
if (answerList) {
this.activeStep = answerList.answer.activeStep || 0 this.activeStep = answerList.answer.activeStep || 0
this.caseId = answerList.id this.caseId = answerList.id
if (Object.keys(answerList).length) {
this.form = answerList.answer.commit_report this.form = answerList.answer.commit_report
} }
} }
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<script> <script>
import { getProdRecords, getUserRecords, getToolRecords } from '../api' import { getProdRecords, getUserRecords, getToolRecords } from '../api'
import { selectCase } from '@/api/base' import { selectCase } from '@/api/base'
const toolTypeMap = { 1: '抖音', 2: '邮件', 3: 'App', 4: '移动短信', 5: '微信提醒' } const toolTypeMap = { 1: '视频营销', 2: '邮件营销', 3: 'APP营销', 4: '移动短信营销', 5: '微信提醒营销' }
export default { export default {
data() { data() {
return { return {
......
...@@ -39,9 +39,17 @@ const cardList = [ ...@@ -39,9 +39,17 @@ const cardList = [
label: '职业', label: '职业',
disabled: false, disabled: false,
children: [ children: [
{ value: '0', label: '学生' }, { value: '0', label: '教师' },
{ value: '1', label: '人事' }, { value: '1', label: '记者' },
{ value: '2', label: '医生' } { value: '2', label: '医生' },
{ value: '3', label: '司机' },
{ value: '4', label: '律师' },
{ value: '5', label: '会计' },
{ value: '6', label: '工人' },
{ value: '7', label: '作家' },
{ value: '8', label: '导游' },
{ value: '9', label: '警察' },
{ value: '10', label: '工程师' }
] ]
}, },
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论