From 0864e8a1ca663dd3cfff0e8863e4fac25a0fd592 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 8 Aug 2022 13:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1=EF=BC=9A?= =?UTF-8?q?=E7=BB=84=E5=90=88=E8=83=BD=E5=8A=9B=E8=AF=A6=E6=83=85=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ability/IntegratedServices-add.vue | 11 +++++++++++ .../ability/assignedScene/add-update-scene.vue | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/back/src/views/modules/ability/IntegratedServices-add.vue b/back/src/views/modules/ability/IntegratedServices-add.vue index 5e713d2b..b1601b32 100644 --- a/back/src/views/modules/ability/IntegratedServices-add.vue +++ b/back/src/views/modules/ability/IntegratedServices-add.vue @@ -279,6 +279,17 @@ export default { } let _imgObj = data.fuseAttrList.find(v => v.attrType == '服务图片') || {}; this.imageUrl = _imgObj.attrValue; + + // 组合能力 + Object.keys(this.getListParams).map(k => { + let arr = data.fuseResourceList.filter(v => v.type == k); + let arr2 = []; + arr.map(v => { + arr2.push(v.resourceId) + }) + this.abilityListObj[k] = arr2 + }) + console.log('this.dataForm----详情-------->', this.dataForm); }) }, diff --git a/back/src/views/modules/ability/assignedScene/add-update-scene.vue b/back/src/views/modules/ability/assignedScene/add-update-scene.vue index d093a402..dc03578c 100644 --- a/back/src/views/modules/ability/assignedScene/add-update-scene.vue +++ b/back/src/views/modules/ability/assignedScene/add-update-scene.vue @@ -333,6 +333,7 @@ export default { let _obj = Object.assign({}, this.dataForm, { type: '赋能场景' }) + console.log('this.dataForm------表单提交------>', this.dataForm); this.$http [methodsObj[this.modalType]]("/fuse", _obj) .then(({ data: res }) => { @@ -366,8 +367,17 @@ export default { this.$refs[key] && this.$refs[key].getDataInfo && this.$refs[key].getDataInfo(data) } let _imgObj = data.fuseAttrList.find(v => v.attrType == '服务图片') || {}; - this.imageUrl = _imgObj.attrValue - console.log('this.dataForm----详情-------->', this.dataForm); + this.imageUrl = _imgObj.attrValue; + + // 组合能力 + Object.keys(this.getListParams).map(k => { + let arr = data.fuseResourceList.filter(v => v.type == k); + let arr2 = []; + arr.map(v => { + arr2.push(v.resourceId) + }) + this.abilityListObj[k] = arr2 + }) }) }, handleAvatarSuccess(res, file) {