检测首页增加不同入口的默认选择状态和禁止选择状态

This commit is contained in:
GYYM
2024-11-07 20:41:32 +08:00
parent 4695a82b38
commit 9804baf8a3
11 changed files with 425 additions and 214 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,7 +48,7 @@ const data = [
const plan_devicedata = [
{
id: '1', //装置序号ID
name: '设备1', //设备名称
name: '模拟装置1', //设备名称
dev_Type: 'PQS882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '合格', //检测结果
@@ -59,7 +59,7 @@ const data = [
},
{
id: '2', //装置序号ID
name: '设备2', //设备名称
name: '模拟装置2', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '/', //检测结果
@@ -70,7 +70,7 @@ const data = [
},
{
id: '3', //装置序号ID
name: '设备3', //设备名称
name: '模拟装置3', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '/', //检测结果
@@ -81,7 +81,7 @@ const data = [
},
{
id: '4', //装置序号ID
name: '设备4', //设备名称
name: '模拟装置4', //设备名称
dev_Type: 'PQS882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '不合格', //检测结果
@@ -90,6 +90,61 @@ const data = [
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '5', //装置序号ID
name: '中电测试装置', //设备名称
dev_Type: 'PMC-680M-22-22-00-115ANBC',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '不合格', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '6', //装置序号ID
name: '易司拓测试装置1', //设备名称
dev_Type: 'E703A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '不合格', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '7', //装置序号ID
name: '易司拓测试装置2', //设备名称
dev_Type: 'E703A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '不合格', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '8', //装置序号ID
name: '山大电力测试装置1', //设备名称
dev_Type: 'SDL-3002C',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '不合格', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '9', //装置序号ID
name: '山大电力测试装置2', //设备名称
dev_Type: 'SDL-3002C',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '不合格', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 2, //复检次数
},
]
export default {data,plan_devicedata}

View File

@@ -150,6 +150,22 @@ const testErrSystDataList: Dict[] = [
},
]
//父计划ID及名称
const testFatherPlanList: Dict[] = [
{
id: "1",
label: '检测计划1',
},
{
id: "2",
label: '检测子计划2',
},
{
id: "3",
label: '检测子计划1-2',
},
]
const planData = ref<Plan.PlanBO[]>([
{
'id': '1',
@@ -172,7 +188,7 @@ const planData = ref<Plan.PlanBO[]>([
'error_Sys_Id':'2',
'test_State':'2',
'report_State':'2',
'result':'2',
'result':'0',
},
{
'id': '3',
@@ -182,9 +198,9 @@ const planData = ref<Plan.PlanBO[]>([
'dataSource_Id':'3',
'script_Id':'3',
'error_Sys_Id':'3',
'test_State':'3',
'report_State':'3',
'result':'3',
'test_State':'1',
'report_State':'1',
'result':'1',
},
])
@@ -310,4 +326,4 @@ const planData = ref<Plan.PlanBO[]>([
// },
// ])
export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,testSoureDataList,testScriptDataList,testErrSystDataList}
export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,testSoureDataList,testScriptDataList,testErrSystDataList,testFatherPlanList}

View File

@@ -2,6 +2,7 @@ import http from "@/api";
//获取计划列表
export const getPlanList = (data: any) => {
return null;
return http.post<Static.planData>(
"http://192.168.1.123:4523/m1/2573730-0-default/plan/planList/list",
data,

View File

@@ -7,17 +7,17 @@
{
"id": 4,
"pid": 1,
"name": "检测计划1"
"name": "邯郸220kV团城站等4座站电能质量检测"
},
{
"id": 5,
"pid": 1,
"name": "检测计划2"
"name": "衡水冀州光伏电站配套出口工程"
},
{
"id": 6,
"pid": 1,
"name": "检测计划3"
"name": "深圳市中电软件有限公司委托送检"
}
],
"id": 1
@@ -28,17 +28,17 @@
{
"id": 7,
"pid": 2,
"name": "检测计划4"
"name": "沧州220kV留古等4座变电站电能质量检测"
},
{
"id": 8,
"pid": 2,
"name": "检测计划5"
"name": "沧州供电公司110kV东光站等10台装置送检"
},
{
"id": 9,
"pid": 2,
"name": "检测计划6"
"name": "保定分布式光伏电能质量监测试点"
}
],
"id": 2
@@ -49,12 +49,12 @@
{
"id": 10,
"pid": 3,
"name": "检测计划7"
"name": "邯郸2台安徽振兴终端送检"
},
{
"id": 11,
"pid": 3,
"name": "检测计划8"
"name": "北京2024现场检测"
}
],
"id": 3