From 78e3a4d7f0bdcff63406f0e687dc28b0ea423864 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 15 Jul 2022 17:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ability/components/common-question.vue | 2 +- .../components/integrated-combine-ability.vue | 32 ++++++++++--------- .../ability/components/scene-use-step.vue | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/back/src/views/modules/ability/components/common-question.vue b/back/src/views/modules/ability/components/common-question.vue index 0ab78cb3..1d729e1e 100644 --- a/back/src/views/modules/ability/components/common-question.vue +++ b/back/src/views/modules/ability/components/common-question.vue @@ -14,7 +14,7 @@ v-if="dataInfo.length > 1">删除 - 添加 diff --git a/back/src/views/modules/ability/components/integrated-combine-ability.vue b/back/src/views/modules/ability/components/integrated-combine-ability.vue index 60952228..80eea64b 100644 --- a/back/src/views/modules/ability/components/integrated-combine-ability.vue +++ b/back/src/views/modules/ability/components/integrated-combine-ability.vue @@ -9,24 +9,24 @@
- + - - + + 删除 - 添加 - + 添加 +
@@ -51,9 +51,6 @@ export default { data() { return { typeOptions: [ - { - value: '', - }, { value: '数据资源', }, @@ -71,7 +68,6 @@ export default { }, ], dataInfo: [], - abilityArray: [], abilityArrayCopy: [], loading: false, } @@ -139,13 +135,13 @@ export default { // 获取能力 getAbility() { return new Promise((resolve, reject) => { + this.abilityArrayCopy = [] this.loading = true; this.$http.get(`/resource/list`, {}).then(({ data: res }) => { this.loading = false; if (res.code !== 0) { return this.$message.error(res.msg) } - this.abilityArray = res.data || [] this.abilityArrayCopy = res.data || [] resolve(res) }).catch((err) => { @@ -160,6 +156,8 @@ export default { let selectArray = this.dataInfo.map(v => v.resourceId) || []; // 过滤掉已选的 item.abilityOptions = arr.filter(v => !selectArray.includes(v.id)) + console.log('abilityOptions------------>', item.abilityOptions); + }, } } @@ -180,4 +178,8 @@ export default { width: 100%; height: 100px; } - \ No newline at end of file + +.ability-input { + width: calc(100% - 300px); +} + diff --git a/back/src/views/modules/ability/components/scene-use-step.vue b/back/src/views/modules/ability/components/scene-use-step.vue index f81fa7d6..b2f8a669 100644 --- a/back/src/views/modules/ability/components/scene-use-step.vue +++ b/back/src/views/modules/ability/components/scene-use-step.vue @@ -16,7 +16,7 @@ v-if="!disabledType && dataInfo.length > 1">删除 - 添加