Browse Source

res.code不等于00时

master
ZhaoTongYao 5 years ago
parent
commit
480018ffea
  1. 2
      epmet-oper-web/src/views/modules/customer-manage/customer-info.vue
  2. 6
      epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue

2
epmet-oper-web/src/views/modules/customer-manage/customer-info.vue

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<el-button @click="backStep" type="primary" icon="el-icon-back">返回</el-button> <el-button @click="backStep" type="primary" icon="el-icon-back">返回</el-button>
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill" style="width:600px">
<el-row> <el-row>
<h2>客户信息</h2> <h2>客户信息</h2>
<el-row v-for="(val, key) in data.customerInfoDTO" :key="key" style="background-color:rgb(23,179,163);margin:10px;color:white;font-size:16px;height:30px;line-height:30px;" :gutter="20"> <el-row v-for="(val, key) in data.customerInfoDTO" :key="key" style="background-color:rgb(23,179,163);margin:10px;color:white;font-size:16px;height:30px;line-height:30px;" :gutter="20">

6
epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue

@ -232,6 +232,7 @@ export default {
} else { } else {
this.customerId = res.data.customerId this.customerId = res.data.customerId
console.log('提交信息成功' + this.step) console.log('提交信息成功' + this.step)
this.toStep(3)
} }
}).catch(() => { }).catch(() => {
return this.$message.error('网络错误') return this.$message.error('网络错误')
@ -251,6 +252,7 @@ export default {
} else { } else {
this.agencyId = res.data.agencyId this.agencyId = res.data.agencyId
console.log('提交信息成功' + this.step) console.log('提交信息成功' + this.step)
this.toStep(4)
} }
}).catch(() => { }).catch(() => {
return this.$message.error('网络错误') return this.$message.error('网络错误')
@ -271,6 +273,7 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} else { } else {
console.log('提交信息成功' + this.step) console.log('提交信息成功' + this.step)
this.toStep(1)
} }
}).catch(() => { }).catch(() => {
return this.$message.error('网络错误') return this.$message.error('网络错误')
@ -280,13 +283,10 @@ export default {
let loadingInstance = Loading.service() let loadingInstance = Loading.service()
if (this.step === 2) { if (this.step === 2) {
await this.submitDataForm2() await this.submitDataForm2()
this.toStep(3)
} else if (this.step === 3) { } else if (this.step === 3) {
await this.submitDataForm3() await this.submitDataForm3()
this.toStep(4)
} else if (this.step === 4) { } else if (this.step === 4) {
await this.submitDataForm4() await this.submitDataForm4()
this.toStep(1)
} }
loadingInstance.close() loadingInstance.close()
}, },

Loading…
Cancel
Save