已修改角色、新增用户、检测源列表、被检设备列表、检测脚本列表

This commit is contained in:
GYYM
2024-10-23 20:53:58 +08:00
parent e62f033e07
commit 8e9cda8c78
24 changed files with 997 additions and 196 deletions

View File

@@ -0,0 +1,21 @@
import type { ReqPage } from '@/api/interface'
// 检测源模块
export namespace TestSource {
// 检测源列表
export interface ResTestSourceList {
id: string; //检测源ID
testSourceName: string; //检测源名称
testSourceType: string; //检测源类型
testSourceModel: string; //检测源模式 标准源 高精度源
}
// 检测源参数
export interface ReqTestSourceParams extends ReqPage {
id: string; //检测源ID
testSourceName: string; //检测源名称
testSourceType: string; //检测源类型
testSourceModel: string; //检测源模式 标准源 高精度源
}
}

View File

@@ -0,0 +1,13 @@
import { ResPage } from '@/api/interface'
import { TestSource } from './interface'
import { ADMIN as rePrefix } from '@/api/config/serviceName'
import http from '@/api'
/**
* @name 检测源管理模块
*/
// 获取检测脚本列表
export const getTestSourceList = (params: TestSource.ReqTestSourceParams) => {
return http.post<ResPage<TestSource.ResTestSourceList>>(`/RoleList_Post`, params)
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/testSource/list`, params)
}

View File

@@ -0,0 +1,28 @@
const data = [
{
id: 'testSource1',
testSourceName: '标准源-福禄克-6100A',
testSourceType: 'FLUKE.6100A电能功率标准源',
testSourceModel: '标准源',
},
{
id: 'testSource2',
testSourceName: '标准源-昂立-PF2',
testSourceType: 'ANGLI-FP2高性能数字信号源',
testSourceModel: '标准源',
},
{
id: 'testSource3',
testSourceName: '标准源-丹迪克-DKLN1',
testSourceType: 'DKLN-1电能质量测试分析仪智能检定装置',
testSourceModel: '标准源',
},
{
id: 'testSource4',
testSourceName: '高精度设备-PQV520-1',
testSourceType: 'PQV-520电能质量监测装置',
testSourceModel: '高精度设备',
},
]
export default data