diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 5146961d..c77970cd 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -423,12 +423,20 @@ export default { this.submitFrom.infoList.push(obj) }, submitData () { + console.log('编辑11111111111===============>', this.putOnTheShelfList) const arr = [] this.putOnTheShelfList.map(item => { item.children.map(child => { if (child.children) { if (child.name === '算法优势' || child.name === '应用场景' || child.name === '功能介绍') { arr.push(child.name) + if (this.submitFrom.infoList.filter(value => value.attrType === child.name).length === 0) { + this.submitFrom.infoList.push({ + attrType: child.name, + attrValue: child.note1, + delFlag: 0 + }) + } } child.children.map(val => { arr.push(val.name) @@ -483,6 +491,15 @@ export default { attrValue: val.note1, delFlag: 0 }) + } else { + if (this.submitFrom.infoList.filter(value => value.attrType === val.name).length === 0) { + this.submitFrom.infoList.push({ + attrType: val.name, + attrValue: val.note1, + delFlag: 0, + note2: val.note2 || null + }) + } } break } diff --git a/back/src/views/modules/components/upload/index.vue b/back/src/views/modules/components/upload/index.vue index 64ed8258..aaed392d 100644 --- a/back/src/views/modules/components/upload/index.vue +++ b/back/src/views/modules/components/upload/index.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-07-08 14:55:19 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-11 15:39:31 + * @LastEditTime: 2022-07-11 16:34:10 * @Description: 告诉大家这是什么 -->