feat(数据集): 关联数据集

This commit is contained in:
junjie 2021-11-30 15:43:04 +08:00
parent 96bd85c4e2
commit e5c46a0711
2 changed files with 10 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<el-button size="mini" @click="cancel">
{{ $t('dataset.cancel') }}
</el-button>
<el-button :disabled="!name" size="mini" type="primary" @click="save">
<el-button :disabled="!name || dataset.length === 0" size="mini" type="primary" @click="save">
{{ $t('dataset.confirm') }}
</el-button>
</el-row>

View File

@ -39,6 +39,7 @@
<p v-if="detail.table.type === 'sql'" class="info-content">{{ $t('dataset.sql_data') }}</p>
<p v-if="detail.table.type === 'excel'" class="info-content">{{ $t('dataset.excel_data') }}</p>
<p v-if="detail.table.type === 'custom'" class="info-content">{{ $t('dataset.custom_data') }}</p>
<p v-if="detail.table.type === 'union'" class="info-content">{{ $t('dataset.union_data') }}</p>
</el-col>
<el-col v-show="detail.table.type === 'db'" class="info-item">
<p class="info-title">{{ $t('dataset.table') }}</p>
@ -73,6 +74,14 @@
<p v-if="detail.datasource.type === 'mysql'" class="info-content">MySQL</p>
<p v-if="detail.datasource.type === 'sqlServer'" class="info-content">SQL Server</p>
<p v-if="detail.datasource.type === 'oracle'" class="info-content">Oracle</p>
<p v-if="detail.datasource.type === 'hive'" class="info-content">Apache Hive</p>
<p v-if="detail.datasource.type === 'pg'" class="info-content">PostgreSQL</p>
<p v-if="detail.datasource.type === 'es'" class="info-content">Elasticsearch</p>
<p v-if="detail.datasource.type === 'mariadb'" class="info-content">MariaDB</p>
<p v-if="detail.datasource.type === 'ds_doris'" class="info-content">Doris</p>
<p v-if="detail.datasource.type === 'ck'" class="info-content">ClickHouse</p>
<p v-if="detail.datasource.type === 'redshift'" class="info-content">AWS Redshift</p>
<p v-if="detail.datasource.type === 'mongo'" class="info-content">MongoDB</p>
</el-col>
<el-col class="info-item">
<p class="info-title">{{ $t('dataset.create_time') }}</p>