|
@@ -291,11 +291,14 @@ export default {
|
|
})
|
|
})
|
|
str = str.substr(0, str.length - 1)
|
|
str = str.substr(0, str.length - 1)
|
|
this.$refs.productMsg.setFileList(str)
|
|
this.$refs.productMsg.setFileList(str)
|
|
|
|
+ this.form.productMsg = str
|
|
} else {
|
|
} else {
|
|
this.$refs.productMsg.setFileList('')
|
|
this.$refs.productMsg.setFileList('')
|
|
|
|
+ this.form.productMsg = ''
|
|
}
|
|
}
|
|
this.$refs.editor.setHtml(res.data.description)
|
|
this.$refs.editor.setHtml(res.data.description)
|
|
this.$refs.otherDesc.setHtml(res.data.otherDesc)
|
|
this.$refs.otherDesc.setHtml(res.data.otherDesc)
|
|
|
|
+ console.log(this.form.productPicList, '----productPicList')
|
|
} else {
|
|
} else {
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
}
|
|
}
|
|
@@ -313,6 +316,7 @@ export default {
|
|
if (valid) {
|
|
if (valid) {
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
form.id = _this.$route.params.id ? _this.$route.params.id : undefined
|
|
form.id = _this.$route.params.id ? _this.$route.params.id : undefined
|
|
|
|
+ console.log(form, '------form')
|
|
form.productPicList = []
|
|
form.productPicList = []
|
|
if (form.productMsg) {
|
|
if (form.productMsg) {
|
|
const arr = form.productMsg.split(',')
|
|
const arr = form.productMsg.split(',')
|