mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 18:00:57 +08:00
支持上传自定义图标
This commit is contained in:
@@ -20,13 +20,7 @@ export function putCompanyInfo(id, parameter) {
|
||||
data: parameter,
|
||||
})
|
||||
}
|
||||
export function postImageFile(parameter) {
|
||||
return axios({
|
||||
url: '/common-setting/v1/file',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
})
|
||||
}
|
||||
|
||||
export function getDepartmentList(params) {
|
||||
// ?department_parent_id=-1 查询第一级部门,下面的id根据实际的传
|
||||
return axios({
|
||||
|
31
cmdb-ui/src/api/file.js
Normal file
31
cmdb-ui/src/api/file.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import { axios } from '@/utils/request'
|
||||
|
||||
export function postImageFile(parameter) {
|
||||
return axios({
|
||||
url: '/common-setting/v1/file',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
})
|
||||
}
|
||||
|
||||
export function getFileData(data_type) {
|
||||
return axios({
|
||||
url: `/common-setting/v1/data/${data_type}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function addFileData(data_type, data) {
|
||||
return axios({
|
||||
url: `/common-setting/v1/data/${data_type}`,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteFileData(data_type, id) {
|
||||
return axios({
|
||||
url: `/common-setting/v1/data/${data_type}/${id}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user