From 51d8da99ef0cdab99541baad08222b5ea8990c65 Mon Sep 17 00:00:00 2001 From: "HISENSE\\liuyuxin6" Date: Wed, 22 Jun 2022 16:40:01 +0800 Subject: [PATCH] =?UTF-8?q?'=E5=A2=9E=E5=8A=A0=E5=85=B3=E8=81=94=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=BC=B9=E7=AA=97'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bsabilityai-relate-application.vue | 129 ++++++++++++++++++ .../src/views/modules/ability/bsabilityai.vue | 28 ++++ 2 files changed, 157 insertions(+) create mode 100644 back/src/views/modules/ability/bsabilityai-relate-application.vue diff --git a/back/src/views/modules/ability/bsabilityai-relate-application.vue b/back/src/views/modules/ability/bsabilityai-relate-application.vue new file mode 100644 index 00000000..c76d84e6 --- /dev/null +++ b/back/src/views/modules/ability/bsabilityai-relate-application.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 947710db..0c17ce60 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -99,6 +99,7 @@ 开发文档 + 关联应用 @@ -119,6 +120,7 @@ ref="addOrUpdate" @refreshDataList="getDataList" > + @@ -128,6 +130,7 @@ import mixinViewModule from "@/mixins/view-module"; import AddOrUpdate from "./bsabilityai-add-or-update"; import dictionaries from "@/utils/dictionaries"; import qs from "qs"; +import RelateApplication from "./bsabilityai-relate-application.vue" export default { mixins: [mixinViewModule], data() { @@ -151,11 +154,19 @@ export default { type: "组件服务", }, qp: false, + // 关联应用弹窗 + relateApplicationVisible: false, + relateInfo: { + id: '', + responseData: {}, + linkType: '' + } }; }, watch: {}, components: { AddOrUpdate, + RelateApplication }, created() { this.dataForm.name = ""; @@ -312,6 +323,23 @@ export default { this.qp = true; } }, + // 点击关联应用按钮 + showRelateApplication(row){ + this.$http.get(`dataResourceRel/queryApplicationRelByResourceId?referenceId=${row.id}`).then(({ data: res }) => { + if( res && res.data ) { + this.relateApplicationVisible = true; + this.relateInfo = { + id: row.id, + responseData: res.data, + linkType: '2' + }; + } + }).catch(() => { }) + }, + // 是否展示关联应用弹窗 + handleIsShowRelatePopup(type) { + this.relateApplicationVisible = type; + } }, };