This commit is contained in:
GYYM
2024-12-05 15:25:49 +08:00
parent 92a1736667
commit 2611f43d1f
4 changed files with 27 additions and 27 deletions

View File

@@ -170,35 +170,35 @@ const testFatherPlanList: Dict[] = [
const sourceDataList: Dict[] = [ const sourceDataList: Dict[] = [
{ {
id: "1", id: "1",
label: '标准源-福禄克6100A-1', label: '标准源-FLUKE.6100A电能功率标准源-1',
}, },
{ {
id: "2", id: "2",
label: '标准源-昂立PF2-1', label: '标准源-ANGLI-FP2高性能数字信号源-1',
}, },
{ {
id: "3", id: "3",
label: '标准源-丹迪克DKLN1-1', label: '标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
}, },
{ {
id: "4", id: "4",
label: '标准源-博电PQC600A-1', label: '标准源-PQC600A高精度电能功率标准源-1',
}, },
{ {
id: "5", id: "5",
label: '高精度设备-PQV520-1', label: '高精度设备-PQV-520便携式电能质量监测装置-1',
}, },
{ {
id: "6", id: "6",
label: '高精度设备-PQV520-2', label: '高精度设备-PQV-520便携式电能质量监测装置-2',
}, },
{ {
id: "7", id: "7",
label: '高精度设备-PQV520-3', label: '高精度设备-PQV-520便携式电能质量监测装置-3',
}, },
{ {
id: "8", id: "8",
label: '高精度设备-PQV520-4', label: '高精度设备-PQV-520便携式电能质量监测装置-4',
}, },
] ]
@@ -279,7 +279,7 @@ const planData = ref<Plan.PlanAndSourceBO[]>([
'name': '沧州110kV东光站装置送检', 'name': '沧州110kV东光站装置送检',
'pattern':'1', 'pattern':'1',
"source_Id" : ['1'], "source_Id" : ['1'],
"testSourceName":'标准源-福禄克6100A-1', "testSourceName":'标准源-FLUKE.6100A电能功率标准源-1',
'dataSource_Id':['1'], 'dataSource_Id':['1'],
'dataSource_Ids':'实时数据', 'dataSource_Ids':'实时数据',
'script_Id':'1', 'script_Id':'1',
@@ -293,7 +293,7 @@ const planData = ref<Plan.PlanAndSourceBO[]>([
'name': '邯郸2台安徽振兴终端送检', 'name': '邯郸2台安徽振兴终端送检',
'pattern':'1', 'pattern':'1',
"source_Id" : ['5','6','7','8'], "source_Id" : ['5','6','7','8'],
"testSourceName":'高精度设备-PQV520-1', "testSourceName":'高精度设备-PQV-520便携式电能质量监测装置-1',
'father_Plan_Id':'1', 'father_Plan_Id':'1',
'dataSource_Id':['1'], 'dataSource_Id':['1'],
'dataSource_Ids':'实时数据', 'dataSource_Ids':'实时数据',
@@ -303,7 +303,7 @@ const planData = ref<Plan.PlanAndSourceBO[]>([
'report_State':'2', 'report_State':'2',
'result':'0', 'result':'0',
"testSourceList":[ "testSourceList":[
'高精度设备-PQV520-2','高精度设备-PQV520-3','高精度设备-PQV520-4' '高精度设备-PQV-520便携式电能质量监测装置-2','高精度设备-PQV-520便携式电能质量监测装置-3','高精度设备-PQV-520便携式电能质量监测装置-4'
] ]
}, },
{ {
@@ -311,7 +311,7 @@ const planData = ref<Plan.PlanAndSourceBO[]>([
'name': '浙江分布式光伏电能质量试点', 'name': '浙江分布式光伏电能质量试点',
'pattern':'1', 'pattern':'1',
"source_Id" : ['3'], "source_Id" : ['3'],
"testSourceName":'标准源-丹迪克DKLN1-1', "testSourceName":'标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
'father_Plan_Id':'1', 'father_Plan_Id':'1',
'dataSource_Id':['1'], 'dataSource_Id':['1'],
'dataSource_Ids':'实时数据', 'dataSource_Ids':'实时数据',

View File

@@ -10,9 +10,9 @@
</span> --> </span> -->
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<el-dropdown-item command="高精度设备-PQV520-2">高精度设备-PQV520-2</el-dropdown-item> <el-dropdown-item command="高精度设备-PQV520-2">高精度设备-PQV-520便携式电能质量监测装置-2</el-dropdown-item>
<el-dropdown-item command="高精度设备-PQV520-3">高精度设备-PQV520-3</el-dropdown-item> <el-dropdown-item command="高精度设备-PQV520-3">高精度设备-PQV-520便携式电能质量监测装置-3</el-dropdown-item>
<el-dropdown-item command="高精度设备-PQV520-4">高精度设备-PQV520-4</el-dropdown-item> <el-dropdown-item command="高精度设备-PQV520-4">高精度设备-PQV-520便携式电能质量监测装置-4</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>

View File

@@ -1,6 +1,6 @@
<template> <template>
<!-- 基础信息弹出框 --> <!-- 基础信息弹出框 -->
<el-dialog :model-value="visible" :title="dialogTitle" v-bind="dialogSmall" @close="handleCancel" width="500" draggable> <el-dialog :model-value="visible" :title="dialogTitle" v-bind="dialogSmall" @close="handleCancel" draggable>
<div> <div>
<el-form :model="formData" ref='formRuleRef' :rules='rules'> <el-form :model="formData" ref='formRuleRef' :rules='rules'>
<el-form-item label="名称" prop="name" :label-width="100"> <el-form-item label="名称" prop="name" :label-width="100">
@@ -197,6 +197,8 @@ const rules: Ref<Record<string, Array<FormItemRule>>> = ref({
}); });
</script> </script>
<style scoped> <style scoped lang="scss">
:deep(.dialog-small .el-dialog__body){
max-height: 330px !important;
}
</style> </style>

View File

@@ -167,30 +167,28 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
{ {
prop: 'name', prop: 'name',
label: '名称', label: '名称',
width: 200, width: 220,
search: { el: 'input' }, search: { el: 'input' },
}, },
{ {
prop: 'testSourceName', prop: 'testSourceName',
label: '检测源', label: '检测源',
width: 215, width: 365,
render: scope => { render: scope => {
return ( return (
<div class='flx-flex-start'> <div class='flx-flex-start'>
<el-button type='primary' link onClick={() => showData(scope.row.testSourceName)}> <el-button type='primary' link onClick={() => showData(scope.row.testSourceName)}>
{scope.row.testSourceName} {scope.row.testSourceName}
</el-button> </el-button>
<moreButtons isShow={isVisible(scope.row)} ></moreButtons> <moreButtons isShow={isVisible(scope.row)} ></moreButtons>
</div> </div>
) )
}, },
}, },
{ {
prop: 'script_Id', prop: 'script_Id',
label: '检测脚本', label: '检测脚本',
width: 350, width: 360,
enum: testScriptDataList, enum: testScriptDataList,
fieldNames: { label: 'label', value: 'id' }, fieldNames: { label: 'label', value: 'id' },
render: scope => { render: scope => {
@@ -219,14 +217,14 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
{ {
prop: 'dataSource_Ids', prop: 'dataSource_Ids',
label: '数据源', label: '数据源',
width: 200, width: 120,
// enum: testSoureDataList, // enum: testSoureDataList,
// fieldNames: { label: 'label', value: 'id' }, // fieldNames: { label: 'label', value: 'id' },
}, },
{ {
prop: 'test_State', prop: 'test_State',
label: '检测状态', label: '检测状态',
width: 100, width: 120,
enum: dictTestState, enum: dictTestState,
// enum: dictStore.getDictData('planTestState'), // enum: dictStore.getDictData('planTestState'),
search: { el: 'select', props: { filterable: true } }, search: { el: 'select', props: { filterable: true } },
@@ -235,7 +233,7 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
{ {
prop: 'report_State', prop: 'report_State',
label: '检测报告状态', label: '检测报告状态',
width: 150, width: 120,
enum: dictReportState, enum: dictReportState,
// enum: dictStore.getDictData('planReportState'), // enum: dictStore.getDictData('planReportState'),
search: { el: 'select', props: { filterable: true } }, search: { el: 'select', props: { filterable: true } },
@@ -244,7 +242,7 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
{ {
prop: 'result', prop: 'result',
label: '检测结果', label: '检测结果',
width: 100, width: 120,
enum: dictResult, enum: dictResult,
// enum: dictStore.getDictData('planResult'), // enum: dictStore.getDictData('planResult'),
search: { el: 'select', props: { filterable: true } }, search: { el: 'select', props: { filterable: true } },