表单验证

This commit is contained in:
sjl
2024-10-30 15:19:47 +08:00
parent f9bb15ad24
commit 0c2f59a0a7
21 changed files with 736 additions and 603 deletions

View File

@@ -1,10 +1,10 @@
const data = [
{
id: 'device1',
deviceName:"模拟装置1",
devicename:"模拟装置1",
deviceType:"PQS882B4电能质量监测装置",
deviceChannels:"4",
PlanName: "沧州220kV留古等4座变电站电能质量检测",
Planname: "沧州220kV留古等4座变电站电能质量检测",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "南京灿能电力自动化股份有限公司",
@@ -12,10 +12,10 @@ const data = [
},
{
id: 'device2',
deviceName:"模拟装置2",
devicename:"模拟装置2",
deviceType:"PQS882A电能质量监测装置",
deviceChannels:"1",
PlanName: "邯郸220kV团城站等4座站电能质量检测",
Planname: "邯郸220kV团城站等4座站电能质量检测",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "南京灿能电力自动化股份有限公司",
@@ -23,10 +23,10 @@ const data = [
},
{
id: 'device3',
deviceName:"模拟装置3",
devicename:"模拟装置3",
deviceType:"PQS882A电能质量监测装置",
deviceChannels:"1",
PlanName: "衡水冀州光伏电站配套出口工程",
Planname: "衡水冀州光伏电站配套出口工程",
deviceUn: "57.74",
deviceIn: "1",
deviceCompany: "南京灿能电力自动化股份有限公司",
@@ -34,10 +34,10 @@ const data = [
},
{
id: 'device4',
deviceName:"模拟装置4",
devicename:"模拟装置4",
deviceType:"PMC-680M-22-22-00-115ANBC电能质量监测装置",
deviceChannels:"4",
PlanName: "深圳市中电软件有限公司委托送检",
Planname: "深圳市中电软件有限公司委托送检",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "深圳中电电力技术股份有限公司",
@@ -48,47 +48,47 @@ const data = [
const plan_devicedata = [
{
id: '1', //装置序号ID
Name: '设备1', //设备名称
Dev_Type: 'PQS882A',//设备类型
Dev_Chns: 1, //设备通道数
Check_Result: '合格', //检测结果
Report_State: '已生成', //报告状态
Document_State: '归档', //归档状态
Check_State:'检测完成',//检测状态
ReCheck_Num: 0, //复检次数
name: '设备1', //设备名称
dev_Type: 'PQS882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '合格', //检测结果
report_State: '已生成', //报告状态
document_State: '归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '2', //装置序号ID
Name: '设备2', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '/', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'未检',//检测状态
ReCheck_Num: 0, //复检次数
name: '设备2', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '/', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '3', //装置序号ID
Name: '设备3', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '/', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'检测中',//检测状态
ReCheck_Num: 0, //复检次数
name: '设备3', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '/', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测中',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '4', //装置序号ID
Name: '设备4', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '不合格', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'检测完成',//检测状态
ReCheck_Num: 1, //复检次数
name: '设备4', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '不合格', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
]

View File

@@ -32,37 +32,37 @@ export namespace Device {
// 被检设备列表
export interface DeviceList {
id: string; //装置序号ID
Name: string; //设备名称
Pattern?: string; //设备模式 模拟 数字 比对
Dev_Type: string;//设备类型
Dev_Chns: number; //设备通道数
Dev_Volt?: number; //额定电压V
Dev_Curr?: number; //额定电流A
Manufacturer?: string;//生产厂家
CreateDate?: string; //生产日期
CreateId?: string; //出厂编号
Hardware_Version?: string; //固件版本
Software_Version?: string; //软件版本
IP?: string; //IP地址
Port?: number; //端口号
IsEncryption?: string; //装置是否为加密版本
Series?: string; //装置识别码3ds加密
Dev_Key?: string; //装置秘钥3ds加密
SampleID?: string; //样品编号
Arrived_Date?: string; //送样日期
City_Name?: string; //所属地市名称
GD_Name?: string; //所属供电公司名称
Sub_Name?: string; //所属电站名称
Check_State: string; //检测状态
Check_Result: string; //检测结果
Report_State: string; //报告状态
Document_State: string; //归档状态
ReCheck_Num: number; //复检次数
State?: number; //状态
Create_By?: string; //创建用户
Create_Time?: string; //创建时间
Update_By?: string; //更新用户
Update_Time?: string; //更新时间
name: string; //设备名称
pattern?: string; //设备模式 模拟 数字 比对
dev_Type: string;//设备类型
dev_Chns: number; //设备通道数
dev_Volt?: number; //额定电压V
dev_Curr?: number; //额定电流A
manufacturer?: string;//生产厂家
createDate?: string; //生产日期
createId?: string; //出厂编号
hardware_Version?: string; //固件版本
software_Version?: string; //软件版本
iP?: string; //IP地址
port?: number; //端口号
isEncryption?: string; //装置是否为加密版本
series?: string; //装置识别码3ds加密
dev_Key?: string; //装置秘钥3ds加密
sampleID?: string; //样品编号
arrived_Date?: string; //送样日期
city_Name?: string; //所属地市名称
gD_Name?: string; //所属供电公司名称
sub_Name?: string; //所属电站名称
check_State: string; //检测状态
check_Result: string; //检测结果
report_State: string; //报告状态
document_State: string; //归档状态
reCheck_Num: number; //复检次数
state?: number; //状态
create_By?: string; //创建用户
create_Time?: string; //创建时间
update_By?: string; //更新用户
update_Time?: string; //更新时间
}
}