This commit is contained in:
zhujiyan
2024-05-14 08:51:30 +08:00
parent 3e254f820b
commit 9e2cb801e4
5 changed files with 515 additions and 92 deletions

View File

@@ -25,3 +25,5 @@ export const getUserReportById = (id: any) => {
method: 'GET'
})
}

View File

@@ -22,7 +22,7 @@ export function queryByAllCode() {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
}
// data: form
})
}
@@ -41,6 +41,19 @@ export function queryCsDictTree(pid: string) {
})
}
/**
* 根据id查询字典值
*/
export const getDictTreeById = (id: any) => {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/system-boot/dictTree/queryById',
method: 'POST',
data:form
})
}
// 字典树接口通过id
export function queryByid(id: string) {
let form = new FormData()
@@ -55,7 +68,6 @@ export function queryByid(id: string) {
})
}
//新增字典树数据
export const addDictTree = (data: any) => {
return createAxios({
@@ -65,9 +77,8 @@ export const addDictTree = (data: any) => {
})
}
// 编辑统计指标配置项
export const updateStatistical = (data:any) => {
export const updateStatistical = (data: any) => {
return createAxios({
url: '/system-boot/dic/update',
method: 'PUT',
@@ -75,10 +86,10 @@ export const updateStatistical = (data:any) => {
})
}
// 单位绑定
export function codeDicTree(data:any) {
export function codeDicTree(data: any) {
return createAxios({
url: "/system-boot/dic/codeDicTree",
method: "get",
params: data,
});
}
url: '/system-boot/dic/codeDicTree',
method: 'get',
params: data
})
}

View File

@@ -59,4 +59,16 @@ export const getFileUrl = (filePath: string) => {
url: SYSTEM_PREFIX + '/file/getFileUrl',
method: 'POST'
})
}
/**
* 根据获取文件的一个短期url及文件名
*/
export const getFileNameAndFilePath = (query: any) => {
return createAxios({
url:SYSTEM_PREFIX + '/file/getFileVO',
method: 'GET',
params:query
})
}