forked from github/dataease
refactor: 去除所有前端api自定义超时时间
This commit is contained in:
parent
90e584da1f
commit
87d3ec69f2
@ -5,7 +5,6 @@ export function queryAuthModel(data, loading = true, timeout = 30000) {
|
||||
url: 'authModel/queryAuthModel',
|
||||
method: 'post',
|
||||
loading: loading,
|
||||
timeout: timeout,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ export function ajaxGetData(id, data) {
|
||||
method: 'post',
|
||||
loading: true,
|
||||
hideMsg: true,
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -67,7 +66,6 @@ export function ajaxGetDataOnly(id, data) {
|
||||
method: 'post',
|
||||
loading: true,
|
||||
hideMsg: true,
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
@ -125,7 +125,6 @@ export function post(url, data, showLoading = true, timeout = 20000) {
|
||||
url: url,
|
||||
method: 'post',
|
||||
loading: showLoading,
|
||||
timeout: timeout,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
@ -68,7 +68,6 @@ export function viewInfo(id, data) {
|
||||
return request({
|
||||
url: 'api/link/viewDetail/' + id,
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
hideMsg: true,
|
||||
data
|
||||
})
|
||||
|
@ -22,7 +22,6 @@ export function querySubject(data) {
|
||||
url: '/panel/subject/query',
|
||||
method: 'post',
|
||||
loading: true,
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -31,7 +30,6 @@ export function querySubjectWithGroup(data) {
|
||||
return request({
|
||||
url: '/panel/subject/querySubjectWithGroup',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -41,7 +39,6 @@ export function defaultTree(data, loading = true, timeout = 30000) {
|
||||
url: '/panel/group/defaultTree',
|
||||
method: 'post',
|
||||
loading: loading,
|
||||
timeout: timeout,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -51,7 +48,6 @@ export function groupTree(data, loading = true, timeout = 30000) {
|
||||
url: '/panel/group/tree',
|
||||
method: 'post',
|
||||
loading: loading,
|
||||
timeout: timeout,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -60,7 +56,6 @@ export function viewData(id, data) {
|
||||
return request({
|
||||
url: '/chart/view/getData/' + id,
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
hideMsg: true,
|
||||
data
|
||||
})
|
||||
@ -69,7 +64,6 @@ export function panelSave(data) {
|
||||
return request({
|
||||
url: 'panel/group/save',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
loading: true,
|
||||
data
|
||||
})
|
||||
@ -78,8 +72,7 @@ export function findOne(id) {
|
||||
return request({
|
||||
url: 'panel/group/findOne/' + id,
|
||||
method: 'get',
|
||||
loading: true,
|
||||
timeout: 30000
|
||||
loading: true
|
||||
})
|
||||
}
|
||||
|
||||
@ -94,7 +87,6 @@ export function getPreviewData(data) {
|
||||
return request({
|
||||
url: '/panel/table/getPreviewData',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -133,7 +125,6 @@ export function get(url) {
|
||||
export function delGroup(groupId) {
|
||||
return request({
|
||||
url: '/panel/group/deleteCircle/' + groupId,
|
||||
method: 'post',
|
||||
timeout: 30000
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
@ -1,11 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function queryAll() {
|
||||
return request({
|
||||
url: '/pdf-template/queryAll',
|
||||
method: 'get',
|
||||
loading: true,
|
||||
timeout: 30000
|
||||
loading: true
|
||||
})
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ export function tree(data) {
|
||||
return request({
|
||||
url: '/api/panelView/tree',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -13,7 +12,6 @@ export function viewsWithIds(data) {
|
||||
return request({
|
||||
url: '/api/panelView/viewsWithIds',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
loading: true,
|
||||
data
|
||||
})
|
||||
@ -23,7 +21,6 @@ export function findOne(id) {
|
||||
return request({
|
||||
url: '/api/panelView/findOne/' + id,
|
||||
method: 'get',
|
||||
timeout: 30000,
|
||||
loading: true
|
||||
})
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ export function validate(data) {
|
||||
return request({
|
||||
url: '/system/testConnection',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
loading: true,
|
||||
data
|
||||
|
||||
|
@ -4,14 +4,12 @@ export function save(data) {
|
||||
return request({
|
||||
url: '/template/save',
|
||||
data: data,
|
||||
timeout: 60000,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
export function templateDelete(id) {
|
||||
return request({
|
||||
url: '/template/delete/' + id,
|
||||
timeout: 60000,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@ -19,7 +17,6 @@ export function templateDelete(id) {
|
||||
export function showTemplateList(data) {
|
||||
return request({
|
||||
url: '/template/templateList',
|
||||
timeout: 60000,
|
||||
data: data,
|
||||
method: 'post'
|
||||
})
|
||||
@ -28,7 +25,6 @@ export function showTemplateList(data) {
|
||||
export function findOne(id) {
|
||||
return request({
|
||||
url: '/template/findOne/' + id,
|
||||
timeout: 60000,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@ -36,7 +32,6 @@ export function findOne(id) {
|
||||
export function find(data) {
|
||||
return request({
|
||||
url: '/template/find',
|
||||
timeout: 60000,
|
||||
data: data,
|
||||
method: 'post'
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user