提交 64504dab authored 作者: taojinlong's avatar taojinlong

fix: 数据源错误信息

上级 8fb9309d
...@@ -16,12 +16,8 @@ import io.dataease.provider.ProviderFactory; ...@@ -16,12 +16,8 @@ import io.dataease.provider.ProviderFactory;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.beans.PropertyVetoException; import java.beans.PropertyVetoException;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.net.URL;
import java.sql.*; import java.sql.*;
import java.util.*; import java.util.*;
...@@ -287,9 +283,9 @@ public class JdbcProvider extends DefaultJdbcProvider { ...@@ -287,9 +283,9 @@ public class JdbcProvider extends DefaultJdbcProvider {
} }
} catch (SQLException e) { } catch (SQLException e) {
io.dataease.plugins.common.exception.DataEaseException.throwException("SQL ERROR" + e.getMessage()); DataEaseException.throwException("SQL ERROR" + e.getMessage());
} catch (Exception e) { } catch (Exception e) {
io.dataease.plugins.common.exception.DataEaseException.throwException("Data source connection exception: " + e.getMessage()); DataEaseException.throwException("Data source connection exception: " + e.getMessage());
} }
return list; return list;
} }
......
...@@ -495,7 +495,7 @@ export default { ...@@ -495,7 +495,7 @@ export default {
changeType() { changeType() {
for (let i = 0; i < this.dsTypes.length; i++) { for (let i = 0; i < this.dsTypes.length; i++) {
if (this.dsTypes[i].type === this.form.type) { if (this.dsTypes[i].type === this.form.type) {
if(row.type !== 'api'){ if(this.form.type !== 'api'){
this.form.configuration.extraParams = this.dsTypes[i].extraParams this.form.configuration.extraParams = this.dsTypes[i].extraParams
} }
this.datasourceType = this.dsTypes[i] this.datasourceType = this.dsTypes[i]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论