From 29087301b47386bcc74fc2b0232230226d1be4e4 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 11 Jul 2022 16:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E7=B1=BB=E5=9E=8B=E5=9B=9E?= =?UTF-8?q?=E5=A1=AB=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/ability/bsabilityai.vue | 17 +++++++++++++++++ .../views/modules/components/upload/index.vue | 5 ++--- .../putOnTheShelf/components/special.vue | 3 ++- 3 files changed, 21 insertions(+), 4 deletions(-) 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: 告诉大家这是什么 -->