From 90473857d569f682eeb8ea132583069fbaf1f679 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Mon, 17 Jul 2023 14:27:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=A7=E5=B1=8F=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8=E6=95=B0=E6=8D=AE=E9=9B=86=E9=80=89=E6=8B=A9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8F=92=E6=A7=BD=EF=BC=8C=E4=BE=9B=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RightSetting/DataSetting.vue | 6 +- .../BigScreenDesign/RightSetting/index.vue | 14 ++-- .../packages/BigScreenDesign/SettingPanel.vue | 6 +- .../packages/BigScreenDesign/index.vue | 7 +- .../DataSetSetting/dataSetSetting.vue | 68 ++++++++++++++++--- .../packages/DataSetSetting/index.vue | 12 ++-- .../packages/assets/style/bsTheme.scss | 14 ++++ .../packages/assets/style/common/index.scss | 3 +- 8 files changed, 106 insertions(+), 24 deletions(-) diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue index 97e71144..34a5ee2e 100644 --- a/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue +++ b/data-room-ui/packages/BigScreenDesign/RightSetting/DataSetting.vue @@ -29,7 +29,11 @@ :dataset-name="datasetName" :ds-id="config.dataSource.businessKey" @getDsId="dsId => { getDataSetDetailsById(dsId, 'treeTable');}" - /> + > + + diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/index.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/index.vue index 56a14a44..2ee6b440 100644 --- a/data-room-ui/packages/BigScreenDesign/RightSetting/index.vue +++ b/data-room-ui/packages/BigScreenDesign/RightSetting/index.vue @@ -15,7 +15,11 @@ + > + + + > + + + > + + + + + + + + 确定 + > + 确定 + @@ -61,7 +85,12 @@ export default { data () { return { dataSetVisible: false, - dataSetId: null + dataSetId: null, + tabsActiveName: 'dataSet', + // 组件实例 + componentInstance: null, + // 是否使用了插槽 + isUseSlot: false } }, computed: { @@ -77,11 +106,23 @@ export default { }, mounted () { this.dataSetId = this.dsId + // 将内置的组件实例赋值给componentInstance + this.componentInstance = this.$refs.dataSetSetting + // 判断是否使用了插槽 + if (this.$scopedSlots && this.$scopedSlots.dataSetSelect && this.$scopedSlots.dataSetSelect()) { + this.isUseSlot = true + } else { + this.isUseSlot = false + } }, methods: { + handleClickTabs (vueComponent, event) { + this.componentInstance = vueComponent.$children[0] + }, sure () { this.dataSetVisible = false - const getSelectDs = this.$refs.dataSetSetting.getSelectDs() + const getSelectDs = this.componentInstance.getSelectDs() + console.log('getSelectDs', getSelectDs) if (Object.prototype.hasOwnProperty.call(getSelectDs, 'id')) { this.dataSetId = getSelectDs.id } @@ -96,9 +137,14 @@ export default {