fix: 修复数据集配置扩展没有数据回显的问题

main
wu.jian2 2 years ago
parent 4f03171cd1
commit f82bf7cc24

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.0.RELEASE</version> <version>0.0.1.2023071101.Alpha</version>
</parent> </parent>
<artifactId>dataroom-core</artifactId> <artifactId>dataroom-core</artifactId>

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.0.RELEASE</version> <version>0.0.1.2023071101.Alpha</version>
</parent> </parent>
<artifactId>dataroom-server</artifactId> <artifactId>dataroom-server</artifactId>
@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom-core</artifactId> <artifactId>dataroom-core</artifactId>
<version>1.0.0.RELEASE</version> <version>0.0.1.2023071101.Alpha</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>

@ -12,7 +12,7 @@
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.0.RELEASE</version> <version>0.0.1.2023071101.Alpha</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<description>基于G2Plot、Echarts的大屏设计服务端具备设计、预览能力支持MySQL、Oracle、PostgreSQL、Groovy等数据集接入 <description>基于G2Plot、Echarts的大屏设计服务端具备设计、预览能力支持MySQL、Oracle、PostgreSQL、Groovy等数据集接入
@ -60,7 +60,7 @@
<clickhouse.version>0.3.2</clickhouse.version> <clickhouse.version>0.3.2</clickhouse.version>
<commons-io.version>2.2</commons-io.version> <commons-io.version>2.2</commons-io.version>
<okhttp3.version>4.9.1</okhttp3.version> <okhttp3.version>4.9.1</okhttp3.version>
<dataset.core.version>1.0.0.RELEASE</dataset.core.version> <dataset.core.version>0.0.1.2023071101.Alpha</dataset.core.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>

@ -2,14 +2,16 @@
"name": "@gcpaas/data-room-ui", "name": "@gcpaas/data-room-ui",
"version": "1.0.1-2023071801-Alpha", "version": "1.0.1-2023071801-Alpha",
"description": "自定义大屏", "description": "自定义大屏",
"author": "gc-starter", "author": "gcpaas",
"license": "MIT", "license": "MIT",
"main": "packages/index.js", "main": "packages/index.js",
"keywords": [ "keywords": [
"dataRoom", "dataRoom",
"bigScreen",
"low code",
"自定义大屏",
"大屏设计器", "大屏设计器",
"低代码", "低代码"
"low code"
], ],
"repository": { "repository": {
"type": "github", "type": "github",

@ -30,8 +30,11 @@
:ds-id="config.dataSource.businessKey" :ds-id="config.dataSource.businessKey"
@getDsId="dsId => { getDataSetDetailsById(dsId, 'treeTable');}" @getDsId="dsId => { getDataSetDetailsById(dsId, 'treeTable');}"
> >
<template #dataSetSelect> <template #dataSetSelect="{value}">
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="value"
/>
</template> </template>
</data-set-select> </data-set-select>
</el-form-item> </el-form-item>

@ -16,8 +16,11 @@
ref="dataSetting" ref="dataSetting"
:key="config.code" :key="config.code"
> >
<template #dataSetSelect> <template #dataSetSelect="{value}">
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="value"
/>
</template> </template>
</DataSetting> </DataSetting>
</el-tab-pane> </el-tab-pane>

@ -14,8 +14,11 @@
@updateSetting="updateSetting" @updateSetting="updateSetting"
@updateDataSetting="updateDataSetting" @updateDataSetting="updateDataSetting"
> >
<template #dataSetSelect> <template #dataSetSelect="{value}">
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="value"
/>
</template> </template>
</RightSetting> </RightSetting>
<OverallSetting <OverallSetting

@ -87,8 +87,11 @@
@updateDataSetting="updateDataSetting" @updateDataSetting="updateDataSetting"
@updatePage="updatePage" @updatePage="updatePage"
> >
<template #dataSetSelect> <template #dataSetSelect="{ value }">
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="value"
/>
</template> </template>
</SettingPanel> </SettingPanel>
<!-- 添加资源面板 --> <!-- 添加资源面板 -->

@ -6,6 +6,7 @@
:visible.sync="dataSetVisible" :visible.sync="dataSetVisible"
width="80%" width="80%"
class="bs-dialog-wrap data-set-wrap bs-el-dialog" class="bs-dialog-wrap data-set-wrap bs-el-dialog"
@opened="openedInit"
> >
<el-tabs <el-tabs
v-if="isUseSlot" v-if="isUseSlot"
@ -27,7 +28,10 @@
:ds-value="DataDsValue" :ds-value="DataDsValue"
/> />
</el-tab-pane> </el-tab-pane>
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="DataDsValue"
/>
</el-tabs> </el-tabs>
<DataSetManagement <DataSetManagement
v-else v-else
@ -86,6 +90,7 @@ export default {
return { return {
dataSetVisible: false, dataSetVisible: false,
dataSetId: null, dataSetId: null,
newDataDsValue: '',
tabsActiveName: 'dataSet', tabsActiveName: 'dataSet',
// //
componentInstance: null, componentInstance: null,
@ -106,8 +111,6 @@ export default {
}, },
mounted () { mounted () {
this.dataSetId = this.dsId this.dataSetId = this.dsId
// componentInstance
this.componentInstance = this.$refs.dataSetSetting
// 使 // 使
if (this.$scopedSlots && this.$scopedSlots.dataSetSelect && this.$scopedSlots.dataSetSelect()) { if (this.$scopedSlots && this.$scopedSlots.dataSetSelect && this.$scopedSlots.dataSetSelect()) {
this.isUseSlot = true this.isUseSlot = true
@ -116,6 +119,11 @@ export default {
} }
}, },
methods: { methods: {
openedInit () {
// componentInstance
this.componentInstance = this.$refs.dataSetSetting
this.newDataDsValue = this.DataDsValue
},
handleClickTabs (vueComponent, event) { handleClickTabs (vueComponent, event) {
this.componentInstance = vueComponent.$children[0] this.componentInstance = vueComponent.$children[0]
}, },
@ -140,7 +148,8 @@ export default {
::v-deep .big-screen-router-view-wrap { ::v-deep .big-screen-router-view-wrap {
padding-left: 16px !important; padding-left: 16px !important;
} }
::v-deep .el-tabs__header{
::v-deep .el-tabs__header {
margin-bottom: 0; margin-bottom: 0;
} }

@ -20,8 +20,11 @@
@getDsId="getDsId" @getDsId="getDsId"
@getSelectDs="getSelectDs" @getSelectDs="getSelectDs"
> >
<template #dataSetSelect> <template #dataSetSelect="{value}">
<slot name="dataSetSelect" /> <slot
name="dataSetSelect"
:value="value"
/>
</template> </template>
</DataSetDialog> </DataSetDialog>
</div> </div>

Loading…
Cancel
Save