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

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

@@ -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