Commit 3bf9ee55 authored by zhanglw's avatar zhanglw

调整

parent 270687c1
...@@ -357,7 +357,7 @@ export default { ...@@ -357,7 +357,7 @@ export default {
this.findAreaQueryOnly(0, 1, 'provinceOpts') this.findAreaQueryOnly(0, 1, 'provinceOpts')
HttpReq.backstageApi.queryCustomerDetail({ customerId }).then((res) => { HttpReq.backstageApi.queryCustomerDetail({ customerId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.formData = res.data this.formData = Object.assign(this.formData, res.data)
if (this.formData.businessLicense) { if (this.formData.businessLicense) {
this.imgList = this.formData.businessLicense.split(';') this.imgList = this.formData.businessLicense.split(';')
} }
......
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
this.findAreaByCodeAndType(0, 1, 'provinceOpts') this.findAreaByCodeAndType(0, 1, 'provinceOpts')
HttpReq.backstageApi.queryCustomerDetail({ customerId }).then((res) => { HttpReq.backstageApi.queryCustomerDetail({ customerId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.formData = res.data this.formData = Object.assign(this.formData, res.data)
if (this.formData.businessLicense) { if (this.formData.businessLicense) {
this.imgList = this.formData.businessLicense.split(';') this.imgList = this.formData.businessLicense.split(';')
} }
......
...@@ -492,7 +492,7 @@ export default { ...@@ -492,7 +492,7 @@ export default {
// 初始化数据 // 初始化数据
HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => { HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.formData = res.data this.formData = Object.assign(this.formData, res.data)
if (this.formData.productPic) { if (this.formData.productPic) {
this.imgList = this.formData.productPic.split(';') this.imgList = this.formData.productPic.split(';')
} }
......
...@@ -122,9 +122,7 @@ export default { ...@@ -122,9 +122,7 @@ export default {
type: res.code === 200 ? 'success' : 'error', type: res.code === 200 ? 'success' : 'error',
duration: 2500 duration: 2500
}) })
if (res.code === 200) { this.loadData()
this.loadData()
}
}) })
}, },
toAdd() { toAdd() {
......
...@@ -484,7 +484,7 @@ export default { ...@@ -484,7 +484,7 @@ export default {
// 初始化数据 // 初始化数据
HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => { HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.formData = res.data this.formData = Object.assign(this.formData, res.data)
if (this.formData.productPic) { if (this.formData.productPic) {
this.imgList = this.formData.productPic.split(';') this.imgList = this.formData.productPic.split(';')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment