指标列表
This commit is contained in:
23
src/api/system-boot/csstatisticalset.ts
Normal file
23
src/api/system-boot/csstatisticalset.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import createAxios from '@/utils/request'
|
||||
// 查询指标
|
||||
export const queryStatistical = (id:string) => {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return createAxios({
|
||||
url: '/system-boot/csstatisticalset/queryStatistical',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
// 绑定指标
|
||||
export const addStatistical = (params:any) => {
|
||||
return createAxios({
|
||||
url: '/system-boot/csstatisticalset/addStatistical',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
14
src/api/system-boot/dic.ts
Normal file
14
src/api/system-boot/dic.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
export const deleteStatistical = (id) => {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/delete',
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
// 字典树接口
|
||||
export function queryByCode(code: string) {
|
||||
let form = new FormData()
|
||||
@@ -40,3 +41,23 @@ export function queryByid(id: string) {
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//新增字典树数据
|
||||
export const addDictTree = (data: any) => {
|
||||
return createAxios({
|
||||
url: '/system-boot/dictTree/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 编辑统计指标配置项
|
||||
export const updateStatistical = (data) => {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/update',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user