与后端接口进行首次联调
This commit is contained in:
@@ -3,19 +3,18 @@ import type { ReqPage } from '@/api/interface'
|
||||
// 检测源模块
|
||||
export namespace TestSource {
|
||||
|
||||
// 检测源列表
|
||||
export interface ResTestSourceList {
|
||||
id: string; //检测源ID
|
||||
testSourceName: string; //检测源名称
|
||||
testSourceType: string; //检测源类型
|
||||
testSourceModel: string; //检测源模式 标准源 高精度源
|
||||
// 检测源接口
|
||||
export interface TestSourceBO {
|
||||
id?: string; //检测源ID
|
||||
name: string; //检测源名称
|
||||
pattern: string;//检测源模式(字典表Code字段,数字、模拟、比对)
|
||||
type: string; //检测源类型(字典表Code字段,标准源、高精度设备)
|
||||
devType: string;//检测源设备类型(字典表Code字段)
|
||||
parameters: string;//源参数(JSON字符串)
|
||||
}
|
||||
|
||||
// 检测源参数
|
||||
export interface ReqTestSourceParams extends ReqPage {
|
||||
id: string; //检测源ID
|
||||
testSourceName: string; //检测源名称
|
||||
testSourceType: string; //检测源类型
|
||||
testSourceModel: string; //检测源模式 标准源 高精度源
|
||||
// 检测源+分页
|
||||
export interface ReqTestSourceParams extends ReqPage,TestSourceBO {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,6 @@ import http from '@/api'
|
||||
*/
|
||||
// 获取检测脚本列表
|
||||
export const getTestSourceList = (params: TestSource.ReqTestSourceParams) => {
|
||||
return http.post<ResPage<TestSource.ResTestSourceList>>(`/RoleList_Post`, params)
|
||||
return http.post<ResPage<TestSource.TestSourceBO>>(`/testSource/list`, params)
|
||||
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/testSource/list`, params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user