chenrui 3 lat temu
rodzic
commit
c96a20bbd3
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/views/productManagement/productInfo/edit.vue

+ 4 - 0
src/views/productManagement/productInfo/edit.vue

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