通用配置
This commit is contained in:
17
frontend/src/api/system/base/index.ts
Normal file
17
frontend/src/api/system/base/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import http from '@/api'
|
||||
import {type Base} from '@/api/system/base/interface'
|
||||
|
||||
//获取检测配置
|
||||
export const getTestConfig = () => {
|
||||
return http.get(`/sysTestConfig/getConfig`)
|
||||
}
|
||||
|
||||
|
||||
//编辑检测配置
|
||||
export const updateTestConfig = (params: Base.ResTestConfig) => {
|
||||
return http.post(`/sysTestConfig/update`, params)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
19
frontend/src/api/system/base/interface/index.ts
Normal file
19
frontend/src/api/system/base/interface/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// 检测配置表模块
|
||||
export namespace Base {
|
||||
|
||||
/**
|
||||
* 检测配置表查询返回的对象
|
||||
*/
|
||||
export interface ResTestConfig {
|
||||
id: string; //系统配置表Id
|
||||
autoGenerate:number;//检测报告是否自动生成0 否;1是
|
||||
maxTime:number;//最大复检次数,默认3次
|
||||
dataRule:string;//数据处理原则,关联字典(所有值、部分值、cp95值、平均值、任意值),默认任意值
|
||||
state: number; //状态
|
||||
createBy?: string| null; //创建用户
|
||||
createTime?: string| null; //创建时间
|
||||
updateBy?: string| null; //更新用户
|
||||
updateTime?: string| null; //更新时间
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user