From e26937bc3794ea6f1d584b5f2551f779ef661ede Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Oct 2022 13:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BF=E6=A2=AD=E6=A1=86=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignedScene/add-update-scene.vue | 8 +- .../ability/components/combine-ability.vue | 76 +++- .../components/data-resource-tranfer.vue | 414 ++++++++++++++++++ 3 files changed, 470 insertions(+), 28 deletions(-) create mode 100644 back/src/views/modules/ability/components/data-resource-tranfer.vue 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 30afbbc0..7feb6844 100644 --- a/back/src/views/modules/ability/assignedScene/add-update-scene.vue +++ b/back/src/views/modules/ability/assignedScene/add-update-scene.vue @@ -116,7 +116,6 @@ import CommonQuestion from '../components/common-question.vue' import InfrastructureModal from './components/infrastructure-modal.vue' import Cookies from 'js-cookie' import upload from '@/views/modules/components/upload' - const btnArray = ['基本信息', '场景痛点', '解决方案', '组合能力', '更多能力', '使用步骤'] // 数据资源\组件服务 export const getJson = (type) => { @@ -163,7 +162,6 @@ export const modalTypeText = { } export const getFuseResourceList = (abilityListObj) => { - console.log('abilityListObjabilityListObj',abilityListObj); const arr = [] let length = 0 for (const key in abilityListObj) { @@ -176,7 +174,7 @@ export const getFuseResourceList = (abilityListObj) => { resourceId: v.id, type: key, sequence: index, - resourceName:v.resourceName, + resourceName:v.resourceName|| v.name , deptName:v.deptName, }) }) @@ -331,9 +329,10 @@ export default { }, // 更新表单 updateDataForm (data) { - console.log('datadatadata',data); + //console.log('datadatadata',data); if (Object.keys(this.getListParams).includes(data.title)) { this.abilityListObj[data.title] = data.list + console.log(' this.abilityListObj[data.title]3333', this.abilityListObj[data.title]); } else { // 更多能力、使用步骤 this.operateFuseAttrList(data.title, data) @@ -363,6 +362,7 @@ export default { // 表单提交 dataFormSubmitHandle: debounce( function () { + console.log('this.dataForm------表单提交------>111111', this.dataForm) this.$refs.dataForm.validate((valid) => { if (!valid) { this.$message.error('请检查表单是否填写完整') diff --git a/back/src/views/modules/ability/components/combine-ability.vue b/back/src/views/modules/ability/components/combine-ability.vue index 78c068b4..f0a1b8e6 100644 --- a/back/src/views/modules/ability/components/combine-ability.vue +++ b/back/src/views/modules/ability/components/combine-ability.vue @@ -16,19 +16,20 @@
- - +
- - + -->