first
This commit is contained in:
55
src/api/system-boot/csDictData.ts
Normal file
55
src/api/system-boot/csDictData.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
// 新增字典数据
|
||||
export const addCsDictData = (data: any) => {
|
||||
return request({
|
||||
url: '/system-boot/csDictData/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典数据
|
||||
export const queryCsDictDataPage = (data: any) => {
|
||||
return request({
|
||||
url: '/system-boot/csDictData/list',
|
||||
method: 'post',
|
||||
data: Object.assign(
|
||||
{
|
||||
orderBy: '',
|
||||
pageNum: 0,
|
||||
pageSize: 0,
|
||||
searchBeginTime: '',
|
||||
searchEndTime: '',
|
||||
searchState: 0,
|
||||
searchValue: '',
|
||||
dataType: '',
|
||||
sortBy: ''
|
||||
},
|
||||
data
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
//删除字典数据
|
||||
export const delCsDictData = (id: string) => {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return request({
|
||||
url: '/system-boot/csDictData/delete',
|
||||
method: 'post',
|
||||
data: form,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典数据
|
||||
export const updateCsDictData = (data: any) => {
|
||||
return request({
|
||||
url: '/system-boot/csDictData/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
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
|
||||
})
|
||||
}
|
||||
30
src/api/system-boot/dic.ts
Normal file
30
src/api/system-boot/dic.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
export const dicDelete = (id: string) => {
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
export function dicAdd(data: any) {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dicUpdate(data: any) {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
34
src/api/system-boot/dicData.ts
Normal file
34
src/api/system-boot/dicData.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function dictDataUpdate(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictData/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dictDataDelete(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictData/delete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dictDataGetTypeIdData(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictData/getTypeIdData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function dictDataAdd(data) {
|
||||
return request({
|
||||
url: '/system-boot/dictData/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
63
src/api/system-boot/dictTree.ts
Normal file
63
src/api/system-boot/dictTree.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
// 字典树接口
|
||||
export function queryByCode(code: string) {
|
||||
let form = new FormData()
|
||||
form.append('code', code)
|
||||
return createAxios({
|
||||
url: '/system-boot/dictTree/queryByCode',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
// 字典树接口通过code
|
||||
export function queryCsDictTree(pid: string) {
|
||||
let form = new FormData()
|
||||
form.append('pid', pid)
|
||||
return createAxios({
|
||||
url: '/system-boot/dictTree/query',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
// 字典树接口通过id
|
||||
export function queryByid(id: string) {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return createAxios({
|
||||
url: '/system-boot/dictTree/queryByid',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
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
|
||||
})
|
||||
}
|
||||
33
src/api/system-boot/dictType.ts
Normal file
33
src/api/system-boot/dictType.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function dictTypeList(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictType/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dictTypeUpdate(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictType/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dictTypeAdd(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictType/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dictTypeDelete(data: any) {
|
||||
return request({
|
||||
url: '/system-boot/dictType/delete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user