diff --git a/src/assets/css/variable.scss b/src/assets/css/variable.scss
index b12e8a3..7ed8c39 100644
--- a/src/assets/css/variable.scss
+++ b/src/assets/css/variable.scss
@@ -10,6 +10,7 @@ $cellTextColor: #39414D;
$cellCommentColor: #66A0A4;
$cellStringColor: #1021D5;
$cellKeywordColor: #CF2F72;
+$pattern-grey-100: #A5B2C5;
$pattern-blue-100: #CEE6FD;
$pattern-blue-200: #e6f1fb;
$pattern-blue-300: #3991e1;
diff --git a/src/components/CreateConnection/Form.vue b/src/components/CreateConnection/Form.vue
index 3ef3a8d..ab1a877 100644
--- a/src/components/CreateConnection/Form.vue
+++ b/src/components/CreateConnection/Form.vue
@@ -2,7 +2,9 @@
-
+
{{$t('settings.defaultEngineDesc')}}
-
-
+
+
+
+
+
+ {{ engine.name }}
+
+
@@ -31,7 +47,13 @@
{{$t('settings.externalDatasource')}}
- {{$t('add')}}
+ {{$t('add')}}
+ {{$t('refresh')}}
\ No newline at end of file
diff --git a/src/service/module/settings.js b/src/service/module/settings.js
index cc92aa1..c57af2d 100644
--- a/src/service/module/settings.js
+++ b/src/service/module/settings.js
@@ -10,10 +10,11 @@ export default {
resetTimout: () => axios.post('/api/settings/configuration/reset'),
checkConnection: payload => axios.post('/api/settings/connection/test', payload),
createConnect: payload => axios.post('/api/settings/connection', payload),
- getConnectionList: () => axios.get('/api/settings/connection'),
+ getConnectionList: payload => axios.get(`/api/settings/connection${payload}`),
getExistingTableList: connectionId => axios.get(`/api/settings/connection/${connectionId}/table`),
updateConnection: (connectionId, data) => axios.put(`/api/settings/connection/${connectionId}`, data),
deleteConnection: connectionId => axios.delete(`/api/settings/connection/${connectionId}`),
getAlgorithmList: () => axios.get('/api/settings/node/def?node_type=train'),
- getParamsByAlgorithmId: id => axios.get(`/api/settings/node/def/${id}`)
+ getParamsByAlgorithmId: id => axios.get(`/api/settings/node/def/${id}`),
+ getEngineInfo: payload => axios.get(`/api/engine/status${payload}`)
}
\ No newline at end of file
diff --git a/src/store/module/settings.js b/src/store/module/settings.js
index b9a290c..96651ba 100644
--- a/src/store/module/settings.js
+++ b/src/store/module/settings.js
@@ -2,9 +2,14 @@ import * as types from '../type'
import { settings } from '../../service'
export default {
state: {
- isRunningAll: false
+ isRunningAll: false,
+ engineInfo: {}
+ },
+ mutations: {
+ [types.SET_ENGINE_INFO]: (state, payload) => {
+ state.engineInfo = payload
+ }
},
- mutations: {},
actions: {
[types.GET_CONFIGS]: () => {
return settings.getDefaultConfig()
@@ -24,8 +29,8 @@ export default {
[types.CREATE_CONNECTION]: (_, payload) => {
return settings.createConnect(payload)
},
- [types.GET_CONNECTION_LIST]: () => {
- return settings.getConnectionList()
+ [types.GET_CONNECTION_LIST]: (_, payload = '') => {
+ return settings.getConnectionList(payload)
},
[types.GET_CONNECTION_TABLE]: (_, connectionId) => {
return settings.getExistingTableList(connectionId)
@@ -41,6 +46,16 @@ export default {
},
[types.GET_PARAM_BY_ID]: (_, id) => {
return settings.getParamsByAlgorithmId(id)
+ },
+ [types.GET_ENGINE_INFO]: async ({ commit }, payload = '') => {
+ let res = {}
+ try {
+ res = await settings.getEngineInfo(payload)
+ commit(types.SET_ENGINE_INFO, res.data)
+ } catch (err) {
+ console.log(err)
+ }
+ return res
}
}
}
\ No newline at end of file
diff --git a/src/store/type.js b/src/store/type.js
index 59ec055..0812a15 100644
--- a/src/store/type.js
+++ b/src/store/type.js
@@ -139,3 +139,5 @@ export const DELETE_CONNECTION = 'DELETE_CONNECTION'
export const GET_ALGORITHM_LIST = 'GET_ALGORITHM_LIST'
export const GET_PARAM_BY_ID = 'GET_PARAM_BY_ID'
+export const SET_ENGINE_INFO = 'SET_ENGINE_INFO'
+export const GET_ENGINE_INFO = 'GET_ENGINE_INFO'