暂降治理评估

This commit is contained in:
2024-03-08 10:33:06 +08:00
parent 2191d2dc6b
commit 50bbba807f
13 changed files with 968 additions and 6 deletions

View File

@@ -0,0 +1,40 @@
import createAxios from '@/utils/request'
const ADVANCE_BOOT = '/advance-boot'
/**
* 新增业务用户
*/
export const addSgIncomingLine = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgIncomingLine/add',
method: 'POST',
data: data
})
}
/**
* 更新业务用户
*/
export const updateSgIncomingLine = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgIncomingLine/update',
method: 'POST',
data: data
})
}
/**
* 删除业务用户
*/
export const deleteSgIncomingLine = (data: any) => {
let ids = [data]
return createAxios({
url: ADVANCE_BOOT + '/sgIncomingLine/delete',
method: 'POST',
data: ids
})
}

View File

@@ -0,0 +1,40 @@
import createAxios from '@/utils/request'
const ADVANCE_BOOT = '/advance-boot'
/**
* 新增业务用户
*/
export const addSgUser = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgUser/add',
method: 'POST',
data: data
})
}
/**
* 更新业务用户
*/
export const updateSgUser = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgUser/update',
method: 'POST',
data: data
})
}
/**
* 删除业务用户
*/
export const deleteSgUser = (data: any) => {
let ids = [data]
return createAxios({
url: ADVANCE_BOOT + '/sgUser/delete',
method: 'POST',
data: ids
})
}

View File

@@ -0,0 +1,62 @@
import createAxios from '@/utils/request'
const SYSTEM_PREFIX = '/system-boot'
/**
* 上传文件
* @param file
*/
export const uploadFile = (file: any, path: string) => {
let form = new FormData()
form.append('file', file)
form.append('path', path)
return createAxios({
url: SYSTEM_PREFIX + '/file/upload',
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data'
},
data: form
})
}
/**
* 删除文件
*/
export const deleteFile = (filePath: string) => {
let form = new FormData()
form.append('filePath', filePath)
return createAxios({
url: SYSTEM_PREFIX + '/file/delete',
method: 'POST',
data: form
})
}
/**
* 下载文件
*/
export const downloadFile = (filePath: string) => {
let form = new FormData()
form.append('filePath', filePath)
return createAxios({
url: SYSTEM_PREFIX + '/file/download',
method: 'GET'
})
}
/**
* 获取文件的短期url展示
*/
export const getFileUrl = (filePath: string) => {
let form = new FormData()
form.append('filePath', filePath)
return createAxios({
url: SYSTEM_PREFIX + '/file/getFileUrl',
method: 'POST'
})
}