新增检测计划列表
This commit is contained in:
44
frontend/src/api/plan/interface/index.ts
Normal file
44
frontend/src/api/plan/interface/index.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import type { ReqPage } from '@/api/interface'
|
||||
import type { DatetimeFormatProps } from 'vue-i18n';
|
||||
|
||||
// 检测计划模块
|
||||
export namespace Plan {
|
||||
|
||||
// 检测计划列表
|
||||
export interface PlanList {
|
||||
id: string; //检测计划ID
|
||||
name: string; //检测计划名称
|
||||
pattern: string; //模式,字典表(数字、模拟、比对)
|
||||
father_Plan_Id: string; //父计划ID
|
||||
dataSource_Id: string; //数据源ID
|
||||
script_Id: string; //检测脚本ID
|
||||
error_Sys_Id: string;//误差体系ID
|
||||
test_State: string; //检测状态
|
||||
report_State: string; //报告生成状态
|
||||
result: string;//检测结果
|
||||
state: number; //状态
|
||||
create_By?: string; //创建用户
|
||||
create_Time?: string;//创建时间
|
||||
update_By?: string; //更新用户
|
||||
update_Time?: string; //更新时间
|
||||
}
|
||||
|
||||
// 被检设备参数
|
||||
export interface ReqPlanParams extends ReqPage {
|
||||
id: string; //检测计划ID
|
||||
name: string; //检测计划名称
|
||||
pattern: string; //模式,字典表(数字、模拟、比对)
|
||||
father_Plan_Id: string; //父计划ID
|
||||
dataSource_Id: string; //数据源ID
|
||||
script_Id: string; //检测脚本ID
|
||||
error_Sys_Id: string;//误差体系ID
|
||||
test_State: string; //检测状态
|
||||
report_State: string; //报告生成状态
|
||||
result: string;//检测结果
|
||||
state: number; //状态
|
||||
create_By?: string; //创建用户
|
||||
create_Time?: string;//创建时间
|
||||
update_By?: string; //更新用户
|
||||
update_Time?: string; //更新时间
|
||||
}
|
||||
}
|
||||
125
frontend/src/api/plan/planData.ts
Normal file
125
frontend/src/api/plan/planData.ts
Normal file
@@ -0,0 +1,125 @@
|
||||
import type {Plan} from "./interface"
|
||||
|
||||
const plandata = ref<Plan.PlanList[]>([
|
||||
{
|
||||
'id': '1',
|
||||
'name': '检测计划1',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'/',
|
||||
'dataSource_Id':'分钟统计数据最大值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 1650.2- 2016',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '2',
|
||||
'name': '检测子计划1-1',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'检测计划1',
|
||||
'dataSource_Id':'分钟统计数据最大值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 1650.2- 2016',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '3',
|
||||
'name': '检测子计划1-2',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'检测计划1',
|
||||
'dataSource_Id':'分钟统计数据最大值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 1650.2- 2016',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '4',
|
||||
'name': '检测计划2',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'/',
|
||||
'dataSource_Id':'分钟统计数据最小值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 10650.2 - 2021',
|
||||
'test_State':'检测完成',
|
||||
'report_State':'部分生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '5',
|
||||
'name': '检测计划3',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'/',
|
||||
'dataSource_Id':'分钟统计数据最大值',
|
||||
'script_Id':'/',
|
||||
'error_Sys_Id':'/',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '6',
|
||||
'name': '检测子计划4',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'/',
|
||||
'dataSource_Id':'分钟统计数据CP95值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 1650.2- 2016',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
{
|
||||
'id': '7',
|
||||
'name': '检测子计划4-1',
|
||||
'pattern':'模拟式',
|
||||
'father_Plan_Id':'检测计划4',
|
||||
'dataSource_Id':'分钟统计数据CP95值',
|
||||
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
|
||||
'error_Sys_Id':'Q/GDW 1650.2- 2016',
|
||||
'test_State':'未检',
|
||||
'report_State':'未生成',
|
||||
'result':'符合',
|
||||
'state': 1,
|
||||
'create_By':'',
|
||||
'create_Time':'',
|
||||
'update_By':'',
|
||||
'update_Time':'',
|
||||
},
|
||||
])
|
||||
|
||||
export default plandata
|
||||
Reference in New Issue
Block a user