48 lines
879 B
TypeScript
48 lines
879 B
TypeScript
|
|
//参数设置字典
|
||
|
|
// @ts-ignore
|
||
|
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
// 查询字典列表
|
||
|
|
export function listreportinstr(params:any) {
|
||
|
|
return request({
|
||
|
|
url: '/reportinstr/list',
|
||
|
|
method: 'get',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询字典详细
|
||
|
|
export function getreportinstr(id:number) {
|
||
|
|
return request({
|
||
|
|
url: `/reportinstr/${id}`,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增字典
|
||
|
|
export function addreportinstr(params:any) {
|
||
|
|
return request({
|
||
|
|
url: '/reportinstr',
|
||
|
|
method: 'post',
|
||
|
|
data:params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 修改字典
|
||
|
|
export function updatereportinstr(params:any) {
|
||
|
|
return request({
|
||
|
|
url: '/reportinstr',
|
||
|
|
method: 'put',
|
||
|
|
data:params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除字典
|
||
|
|
export function delreportinstr(id:any) {
|
||
|
|
return request({
|
||
|
|
url: `/reportinstr/${id}`,
|
||
|
|
method: 'delete'
|
||
|
|
})
|
||
|
|
|
||
|
|
}
|