通用配置
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; //更新时间
|
||||
|
||||
}
|
||||
}
|
||||
13
frontend/src/api/system/versionRegister/index.ts
Normal file
13
frontend/src/api/system/versionRegister/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from '@/api'
|
||||
import {type VersionRegister} from '@/api/system/versionRegister/interface'
|
||||
|
||||
//获取有效数据配置
|
||||
export const getRegRes = (params: VersionRegister.ResSys_Reg_Res) => {
|
||||
return http.get(`/sysRegRes/getRegResByType?id=${params.type}`)
|
||||
}
|
||||
|
||||
|
||||
//编辑有效数据配置
|
||||
export const updateRegRes = (params: VersionRegister.Sys_Reg_Res) => {
|
||||
return http.post(`/sysRegRes/update`, params)
|
||||
}
|
||||
31
frontend/src/api/system/versionRegister/interface/index.ts
Normal file
31
frontend/src/api/system/versionRegister/interface/index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
// 检测配置表模块
|
||||
export namespace VersionRegister {
|
||||
|
||||
/**
|
||||
* 检测配置表查询返回的对象
|
||||
*/
|
||||
export interface ResSys_Reg_Res {
|
||||
id: string; //版本注册表Id
|
||||
type: string; //版本类型(模拟式、数字式、比对式)
|
||||
code: string; //注册码
|
||||
licenseKey: string; //密钥
|
||||
expireDate: string; //到期时间
|
||||
waveRecord?: number;
|
||||
realTime?: number;
|
||||
statistics?: number;
|
||||
flicker?: number;
|
||||
state: number; //状态
|
||||
createBy?: string| null; //创建用户
|
||||
createTime?: string| null; //创建时间
|
||||
updateBy?: string| null; //更新用户
|
||||
updateTime?: string| null; //更新时间
|
||||
}
|
||||
|
||||
export interface Sys_Reg_Res {
|
||||
id: string;
|
||||
waveRecord?: number;
|
||||
realTime?: number;
|
||||
statistics?: number;
|
||||
flicker?: number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user