提交 4f031ad9 authored 作者: taojinlong's avatar taojinlong

Merge branch 'main' of github.com:dataease/dataease into main

...@@ -91,11 +91,7 @@ public class DatasourceService { ...@@ -91,11 +91,7 @@ public class DatasourceService {
DatasourceProvider datasourceProvider = ProviderFactory.getProvider(datasource.getType()); DatasourceProvider datasourceProvider = ProviderFactory.getProvider(datasource.getType());
DatasourceRequest datasourceRequest = new DatasourceRequest(); DatasourceRequest datasourceRequest = new DatasourceRequest();
datasourceRequest.setDatasource(datasource); datasourceRequest.setDatasource(datasource);
try { datasourceProvider.test(datasourceRequest);
datasourceProvider.test(datasourceRequest);
} catch (Exception e) {
throw new RuntimeException(Translator.get("i18n_datasource_check_fail"));
}
} }
public List<DBTableDTO> getTables(Datasource datasource) throws Exception { public List<DBTableDTO> getTables(Datasource datasource) throws Exception {
......
...@@ -102,10 +102,6 @@ public class DataSetTableService { ...@@ -102,10 +102,6 @@ public class DataSetTableService {
datasetTable.setCreateBy(AuthUtils.getUser().getUsername()); datasetTable.setCreateBy(AuthUtils.getUser().getUsername());
datasetTable.setCreateTime(System.currentTimeMillis()); datasetTable.setCreateTime(System.currentTimeMillis());
DataTableInfoDTO dataTableInfoDTO = new DataTableInfoDTO(); DataTableInfoDTO dataTableInfoDTO = new DataTableInfoDTO();
if (StringUtils.equalsIgnoreCase("db", datasetTable.getType())) {
dataTableInfoDTO.setTable(datasetTable.getName());
datasetTable.setInfo(new Gson().toJson(dataTableInfoDTO));
}
int insert = datasetTableMapper.insert(datasetTable); int insert = datasetTableMapper.insert(datasetTable);
// 添加表成功后,获取当前表字段和类型,抽象到dataease数据库 // 添加表成功后,获取当前表字段和类型,抽象到dataease数据库
if (insert == 1) { if (insert == 1) {
......
...@@ -119,7 +119,7 @@ public class PanelLinkService { ...@@ -119,7 +119,7 @@ public class PanelLinkService {
public Boolean validateHeads(PanelLink panelLink) throws Exception{ public Boolean validateHeads(PanelLink panelLink) throws Exception{
HttpServletRequest request = ServletUtils.request(); HttpServletRequest request = ServletUtils.request();
String token = request.getHeader("LINK-PWD-TOKEN"); String token = request.getHeader("LINK-PWD-TOKEN");
if (StringUtils.isEmpty(token)) return false; if (StringUtils.isEmpty(token) || StringUtils.equals("undefined", token) || StringUtils.equals("null", token)) return false;
boolean verify = JWTUtils.verifyLink(token, panelLink.getResourceId(), decryptParam(panelLink.getPwd())); boolean verify = JWTUtils.verifyLink(token, panelLink.getResourceId(), decryptParam(panelLink.getPwd()));
return verify; return verify;
} }
......
...@@ -989,7 +989,8 @@ export default { ...@@ -989,7 +989,8 @@ export default {
loginLogo: 'Login page header logo', loginLogo: 'Login page header logo',
loginImage: 'Picture on the right side of the login page', loginImage: 'Picture on the right side of the login page',
loginTitle: 'Login page title', loginTitle: 'Login page title',
title: 'System name' title: 'System name',
advice_size: 'Advice picture size'
}, },
auth: { auth: {
authConfig: 'Auth Config', authConfig: 'Auth Config',
......
...@@ -989,7 +989,8 @@ export default { ...@@ -989,7 +989,8 @@ export default {
loginLogo: '登陸頁面頭部 Logo', loginLogo: '登陸頁面頭部 Logo',
loginImage: '登陸頁面右側圖片', loginImage: '登陸頁面右側圖片',
loginTitle: '登陸頁面標題', loginTitle: '登陸頁面標題',
title: '系統名稱' title: '系統名稱',
advice_size: '建議圖片大小'
}, },
auth: { auth: {
authConfig: '權限配置', authConfig: '權限配置',
......
...@@ -989,7 +989,8 @@ export default { ...@@ -989,7 +989,8 @@ export default {
loginLogo: '登录页面头部logo', loginLogo: '登录页面头部logo',
loginImage: '登录页面右侧图片', loginImage: '登录页面右侧图片',
loginTitle: '登录页面标题', loginTitle: '登录页面标题',
title: '系统名称' title: '系统名称',
advice_size: '建议图片大小'
}, },
auth: { auth: {
authConfig: '权限配置', authConfig: '权限配置',
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
// color: rgb(191, 203, 217); // color: rgb(191, 203, 217);
color: rgba(255,255,255,0.87); color: rgba(255,255,255,0.87);
float: left; float: left;
img{
width: auto;
max-height: 45px;
}
} }
.el-menu { .el-menu {
float: left; float: left;
......
...@@ -120,17 +120,24 @@ export default { ...@@ -120,17 +120,24 @@ export default {
save() { save() {
// console.log(this.checkTableList); // console.log(this.checkTableList);
// console.log(this.scene); // console.log(this.scene);
let ds = {}
this.options.forEach(ele => {
if (ele.id === this.dataSource) {
ds = ele
}
})
const sceneId = this.param.id const sceneId = this.param.id
const dataSourceId = this.dataSource const dataSourceId = this.dataSource
const tables = [] const tables = []
const mode = this.mode const mode = this.mode
this.checkTableList.forEach(function(name) { this.checkTableList.forEach(function(name) {
tables.push({ tables.push({
name: name, name: ds.name + '_' + name,
sceneId: sceneId, sceneId: sceneId,
dataSourceId: dataSourceId, dataSourceId: dataSourceId,
type: 'db', type: 'db',
mode: parseInt(mode) mode: parseInt(mode),
info: JSON.stringify({ table: name })
}) })
}) })
post('/dataset/table/batchAdd', tables).then(response => { post('/dataset/table/batchAdd', tables).then(response => {
......
...@@ -180,9 +180,13 @@ export default { ...@@ -180,9 +180,13 @@ export default {
margin-top: 20px; margin-top: 20px;
} }
img{ img{
width: 240px; /*width: 240px;*/
width: auto;
max-height: 60px;
@media only screen and (max-width: 1280px) { @media only screen and (max-width: 1280px) {
width: 200px; /*width: 200px;*/
width: auto;
max-height: 50px;
} }
} }
} }
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<el-dropdown-item v-if="data.nodeType==='panel'" icon="el-icon-paperclip" :command="beforeClickMore('link',data,node)"> <el-dropdown-item v-if="data.nodeType==='panel'" icon="el-icon-paperclip" :command="beforeClickMore('link',data,node)">
{{ $t('panel.create_public_links') }} {{ $t('panel.create_public_links') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="data.nodeType==='panel'" icon="el-icon-paperclip" :command="beforeClickMore('toDefaultPanel',data,node)"> <el-dropdown-item v-if="data.nodeType==='panel'" icon="el-icon-copy-document" :command="beforeClickMore('toDefaultPanel',data,node)">
{{ $t('panel.to_default_panel') }} {{ $t('panel.to_default_panel') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item icon="el-icon-edit-outline" :command="beforeClickMore('rename',data,node)"> <el-dropdown-item icon="el-icon-edit-outline" :command="beforeClickMore('rename',data,node)">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论