forked from github/dataease
refactor: 代码调整
This commit is contained in:
parent
dcc522dc05
commit
9085de668f
@ -102,7 +102,14 @@ public class DataSetTableService {
|
||||
DatasourceRequest datasourceRequest = new DatasourceRequest();
|
||||
datasourceRequest.setDatasource(ds);
|
||||
String table = new Gson().fromJson(dataSetTableRequest.getInfo(), DataTableInfoDTO.class).getTable();
|
||||
datasourceRequest.setQuery(createQuerySQL(ds.getType(), table, new String[]{"*"}));
|
||||
|
||||
DatasetTableField datasetTableField = new DatasetTableField();
|
||||
datasetTableField.setTableId(dataSetTableRequest.getId());
|
||||
datasetTableField.setChecked(Boolean.TRUE);
|
||||
List<DatasetTableField> fields = dataSetTableFieldsService.list(datasetTableField);
|
||||
String[] fieldArray = fields.stream().map(DatasetTableField::getOriginName).toArray(String[]::new);
|
||||
datasourceRequest.setQuery(createQuerySQL(ds.getType(), table, fieldArray));
|
||||
|
||||
return datasourceProvider.getData(datasourceRequest);
|
||||
}
|
||||
|
||||
|
@ -1,33 +1,33 @@
|
||||
<template>
|
||||
<ms-container>
|
||||
<ms-container>
|
||||
|
||||
<ms-aside-container>
|
||||
<group/>
|
||||
</ms-aside-container>
|
||||
<ms-aside-container>
|
||||
<group/>
|
||||
</ms-aside-container>
|
||||
|
||||
<ms-main-container>
|
||||
<keep-alive>
|
||||
<router-view/>
|
||||
</keep-alive>
|
||||
</ms-main-container>
|
||||
</ms-container>
|
||||
<ms-main-container>
|
||||
<keep-alive>
|
||||
<router-view/>
|
||||
</keep-alive>
|
||||
</ms-main-container>
|
||||
</ms-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MsMainContainer from "../common/components/MsMainContainer";
|
||||
import MsContainer from "../common/components/MsContainer";
|
||||
import MsAsideContainer from "../common/components/MsAsideContainer";
|
||||
import MsSettingMenu from "../settings/SettingMenu";
|
||||
import MsCurrentUser from "../settings/CurrentUser";
|
||||
import Group from "./group/Group";
|
||||
import MsMainContainer from "../common/components/MsMainContainer";
|
||||
import MsContainer from "../common/components/MsContainer";
|
||||
import MsAsideContainer from "../common/components/MsAsideContainer";
|
||||
import MsSettingMenu from "../settings/SettingMenu";
|
||||
import MsCurrentUser from "../settings/CurrentUser";
|
||||
import Group from "./group/Group";
|
||||
|
||||
export default {
|
||||
name: "DataSet",
|
||||
components: {MsMainContainer, MsContainer, MsAsideContainer, MsSettingMenu, MsCurrentUser, Group},
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
export default {
|
||||
name: "DataSet",
|
||||
components: {MsMainContainer, MsContainer, MsAsideContainer, MsSettingMenu, MsCurrentUser, Group},
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
@ -21,8 +21,11 @@
|
||||
<el-tab-pane :label="$t('dataset.data_preview')" name="dataPreview">
|
||||
<tab-data-preview :table="table" :fields="fields" :data="data"/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('dataset.join_view')" name="joinView">
|
||||
关联视图 TODO
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('dataset.update_info')" name="updateInfo">
|
||||
更新信息TODO
|
||||
更新信息 TODO
|
||||
</el-tab-pane>
|
||||
<!-- <el-tab-pane label="tab3" name="tab3">-->
|
||||
<!-- tab3-->
|
||||
|
@ -1,7 +1,8 @@
|
||||
const DataSet = () => import('@/business/components/dataset/DataSet');
|
||||
const DataSetHome = () => import('@/business/components/dataset/data/DataHome');
|
||||
const DataSetAddDB = () => import('@/business/components/dataset/data/AddDB');
|
||||
const DataSetTable = () => import('@/business/components/dataset/data/ViewTable');
|
||||
|
||||
const DataSetAddDB = () => import('@/business/components/dataset/add/AddDB');
|
||||
// const PerformanceTestHome = () => import('@/business/components/performance/home/PerformanceTestHome')
|
||||
// const EditPerformanceTest = () => import('@/business/components/performance/test/EditPerformanceTest')
|
||||
// const PerformanceTestList = () => import('@/business/components/performance/test/PerformanceTestList')
|
||||
|
@ -1554,6 +1554,7 @@ export default {
|
||||
field_name:'Field Name',
|
||||
field_origin_name:'Origin Name',
|
||||
field_check:'Checked',
|
||||
update_info:'Update Info'
|
||||
update_info:'Update Info',
|
||||
join_view: 'Relation View'
|
||||
}
|
||||
};
|
||||
|
@ -1560,12 +1560,13 @@ export default {
|
||||
table: '表',
|
||||
edit: '编辑',
|
||||
create_view: '创建视图',
|
||||
data_preview:'数据预览',
|
||||
field_type:'字段类型',
|
||||
field_name:'字段名',
|
||||
field_origin_name:'原始名',
|
||||
field_check:'选中',
|
||||
update_info:'更新信息'
|
||||
data_preview: '数据预览',
|
||||
field_type: '字段类型',
|
||||
field_name: '字段名',
|
||||
field_origin_name: '原始名',
|
||||
field_check: '选中',
|
||||
update_info: '更新信息',
|
||||
join_view: '关联视图'
|
||||
},
|
||||
datasource: {
|
||||
create: '新建数据连接',
|
||||
|
@ -1555,6 +1555,7 @@ export default {
|
||||
field_name:'字段名',
|
||||
field_origin_name:'原始名',
|
||||
field_check:'選中',
|
||||
update_info:'更新信息'
|
||||
update_info:'更新信息',
|
||||
join_view: '關聯視圖'
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user