perf: 优化全局接口功能

This commit is contained in:
奔跑的面条
2022-12-15 19:48:16 +08:00
parent 4baa5719a0
commit 390b1d0fde
3 changed files with 26 additions and 112 deletions
@@ -113,94 +113,7 @@ export const useChartEditStore = defineStore({
},
// 数据请求处理(需存储给后端)
requestGlobalConfig: {
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'
}
}
}
}],
requestDataPond: [],
requestOriginUrl: '',
requestInterval: requestInterval,
requestIntervalUnit: requestIntervalUnit,