Merge branch 'master' of github.com:gcpaas/DataRoom

main
liu.tao3 2 years ago
commit 63a5d9592b

@ -80,6 +80,15 @@ public class ScreenMapChart extends Chart {
@ApiModelProperty(notes = "值")
private String value;
@ApiModelProperty(notes = "图形字体颜色")
private String fontGraphicColor;
@ApiModelProperty(notes = "图形字体大小")
private String fontSize;
@ApiModelProperty(notes = "是否开启下钻")
private Boolean down;
}

@ -26,7 +26,14 @@
class="type-item"
@click="openAddForm(dataset.datasetType,dataset.componentName)"
>
{{ dataset.name }}
<span>
{{ dataset.name }}
</span>
<p>
<span class="description">
{{ dataset.description }}
</span>
</p>
</div>
</el-card>
</el-col>
@ -49,6 +56,7 @@ export default {
}
},
created () { },
mounted () { },
methods: {
//
openAddForm (type, componentName) {
@ -62,17 +70,16 @@ export default {
<style lang="scss" scoped>
.type-item {
height: 104px;
line-height: 90px;
text-align: center;
font-size: 16px;
font-weight: 400;
cursor: pointer;
position: relative;
padding-top: 35px;
color: var(--bs-el-text);
p {
position: absolute;
width: 100%;
bottom: 20px;
margin-top: 10px;
font-size: 14px;
line-height: 16px;
color: #909399;

@ -546,15 +546,16 @@ export default {
this.current = 1
const list = [
{ name: '全部', datasetType: '' },
{ name: '原始数据集', datasetType: 'original', componentName: 'OriginalEditForm' },
{ name: '自助数据集', datasetType: 'custom', componentName: 'CustomEditForm' },
{ name: '存储过程数据集', datasetType: 'storedProcedure', componentName: 'StoredProcedureEditForm' },
{ name: 'JSON数据集', datasetType: 'json', componentName: 'JsonEditForm' },
{ name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' },
{ name: 'JS数据集', datasetType: 'js', componentName: 'JsEditForm' },
{ name: 'HTTP数据集', datasetType: 'http', componentName: 'HttpEditForm' }
{ name: '原始数据集', datasetType: 'original', componentName: 'OriginalEditForm', description: '直接查询某个数据库表' },
{ name: '自助数据集', datasetType: 'custom', componentName: 'CustomEditForm', description: '自定义SQL语句查询' },
{ name: '存储过程数据集', datasetType: 'storedProcedure', componentName: 'StoredProcedureEditForm', description: '调用数据库存储过程查询' },
{ name: 'JSON数据集', datasetType: 'json', componentName: 'JsonEditForm', description: '直接定义静态数据' },
{ name: 'JS数据集', datasetType: 'js', componentName: 'JsEditForm', description: '编写JS代码进行动态模拟数据创建' },
{ name: 'HTTP数据集', datasetType: 'http', componentName: 'HttpEditForm', description: '接入第三方HTTP服务查询' },
{ name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm', description: '支持ES、Mongodb、国产化数据库、自定义Java代码查询' }
]
if (window.BS_CONFIG?.datasetTypeList && window.BS_CONFIG?.datasetTypeList?.length != 0) {
if (window.BS_CONFIG?.datasetTypeList && window.BS_CONFIG?.datasetTypeList?.length !== 0) {
this.datasetTypeList = [{ name: '全部', datasetType: '' }, ...list.filter(item => window.BS_CONFIG?.datasetTypeList.findIndex(x => x === item.datasetType) !== -1)]
} else {
this.datasetTypeList = [

Loading…
Cancel
Save