feat: 新增数据池配置页面

This commit is contained in:
奔跑的面条
2022-12-15 19:37:43 +08:00
parent ee071cacb3
commit 4baa5719a0
25 changed files with 968 additions and 5342 deletions
@@ -113,7 +113,94 @@ export const useChartEditStore = defineStore({
},
// 数据请求处理(需存储给后端)
requestGlobalConfig: {
requestDataPond: [],
requestDataPond: [{
dataPondId: '1',
dataPondName: '我是数据池1',
dataPondRequestConfig: {
requestUrl: '',
requestContentType: 0,
requestDataType: 0,
// @ts-ignore
requestHttpType: 'get',
// @ts-ignore
requestParamsBodyType: 'json',
requestSQLContent: {
sql: 'select *'
},
requestParams: {
Body: {
'form-data': {
xxx: '23123',
xxx1: '23123',
xxx2: '23123',
xxx3: '23123',
xxx4: '23123',
xxx5: '23123',
},
'x-www-form-urlencoded': {
xxx: '23123',
xxx1: '23123',
xxx2: '23123',
xxx3: '23123',
xxx4: '23123',
xxx5: '23123',
},
json: '{}',
xml: '{}'
},
Header: {
xxx: '23123',
xxx1: '23123',
xxx2: '23123',
xxx3: '23123',
xxx4: '23123',
xxx5: '23123',
},
Params: {
xxx: '23123',
xxx1: '23123',
xxx2: '23123',
xxx3: '23123',
xxx4: '23123',
xxx5: '23123',
}
}
}
},
{
dataPondId: '2',
dataPondName: '我是数据池2',
dataPondRequestConfig: {
requestUrl: '',
requestContentType: 0,
requestDataType: 0,
// @ts-ignore
requestHttpType: 'get',
// @ts-ignore
requestParamsBodyType: 'none',
requestSQLContent: {
sql: 'select *'
},
requestParams: {
Body: {
'form-data': {
xxx: '23123'
},
'x-www-form-urlencoded': {
xxx: '23123'
},
json: '{}',
xml: '{}'
},
Header: {
xxx: '23123'
},
Params: {
xxx: '23123'
}
}
}
}],
requestOriginUrl: '',
requestInterval: requestInterval,
requestIntervalUnit: requestIntervalUnit,