From 3d6285498aa43e11e14185729554d4fbaec55fcf Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Thu, 24 Oct 2024 09:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + frontend/src/api/error/errorData.ts | 145 ++++++++++++++++-- frontend/src/api/error/interface/index.ts | 16 +- frontend/src/api/resource/resourceData.ts | 4 +- .../components/Error standardDialog.vue | 91 ----------- .../components/ErrorStandardDialog.vue | 72 +++++++++ .../components/ErrorSystemDialog.vue | 43 +++--- .../components/IndicatorTypeDialog.vue | 19 +-- .../src/views/machine/errorSystem/index.vue | 51 ++++-- package.json | 4 +- 10 files changed, 287 insertions(+), 159 deletions(-) delete mode 100644 frontend/src/views/machine/errorSystem/components/Error standardDialog.vue create mode 100644 frontend/src/views/machine/errorSystem/components/ErrorStandardDialog.vue diff --git a/.vscode/settings.json b/.vscode/settings.json index 9d8722b..0141266 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "cSpell.words": [ "daterange", "errordata", + "errordetail", "logdata", "resourcedata", "resourcename", diff --git a/frontend/src/api/error/errorData.ts b/frontend/src/api/error/errorData.ts index ecfd166..7c63e0c 100644 --- a/frontend/src/api/error/errorData.ts +++ b/frontend/src/api/error/errorData.ts @@ -4,33 +4,152 @@ const errordata = ref([ { 'id': '1', 'name': 'Q/GDW 1650.2- 2016', + 'publishTime':'', 'year':'2016', 'level':'A级', - 'details': [ - { measured: '详细1-1', deviceLevel: '详细1-2', condition: '详细1-3', maxErrorValue: '详细1-4' }, - { measured: '详细1-5', deviceLevel: '详细1-6', condition: '详细1-7', maxErrorValue: '详细1-8' }, - ], + 'state':'', }, { 'id': '2', 'name': 'Q/GDW 10650.2 - 2021', + 'publishTime':'', 'year':'2021', 'level':'A级', - 'details': [ - { measured: '详细1-1', deviceLevel: '详细1-2', condition: '详细1-3', maxErrorValue: '详细1-4' }, - { measured: '详细1-5', deviceLevel: '详细1-6', condition: '详细1-7', maxErrorValue: '详细1-8' }, - ], + 'state':'', }, { 'id': '3', 'name': 'GBT 19862 - 2016', + 'publishTime':'', 'year':'2016', 'level':'A级', - 'details': [ - { measured: '详细1-1', deviceLevel: '详细1-2', condition: '详细1-3', maxErrorValue: '详细1-4' }, - { measured: '详细1-5', deviceLevel: '详细1-6', condition: '详细1-7', maxErrorValue: '详细1-8' }, - ], + 'state':'', + }, ]) - export default errordata \ No newline at end of file + const errordetail = ref([ + { + measured: '电压', + deviceLevel: 'A', + condition: '10%~150%标称电压', + maxErrorValue: '±0.1%Un' + }, + { + measured: '频率', + deviceLevel: 'A', + condition: '42.5~57.5 Hz', + maxErrorValue: '±0.01Hz' + }, + { + measured: '电压三相不平衡度', + deviceLevel: 'A', + condition: '0.5%~5%', + maxErrorValue: '±0.15%' + }, + { + measured: '电压三相不平衡度', + deviceLevel: 'A', + condition: '5%(不包含)~ 40%', + maxErrorValue: '±0.3%' + }, + { + measured: '电流三相不平衡度', + deviceLevel: 'A', + condition: '', + maxErrorValue: '±1%' + }, + { + measured: '短时闪变', + deviceLevel: 'A', + condition: 'Pst:0.2~10', + maxErrorValue: '±5%' + }, + { + measured: '谐波电压', + deviceLevel: 'A', + condition: 'Uh≥1%Un', + maxErrorValue: '±5%Uh' + }, + { + measured: '谐波电压', + deviceLevel: 'A', + condition: 'Uh<1%Un', + maxErrorValue: '±0.05%Un' + }, + { + measured: '谐波电流', + deviceLevel: 'A', + condition: 'In≥3%In', + maxErrorValue: '±5%Ih' + }, + { + measured: '谐波电流', + deviceLevel: 'A', + condition: 'In<3%In', + maxErrorValue: '±0.15%In' + }, + { + measured: '谐波功率', + deviceLevel: 'A', + condition: 'Ph≥150W', + maxErrorValue: '±1%Ph' + }, + { + measured: '谐波功率', + deviceLevel: 'A', + condition: 'Ph<150W', + maxErrorValue: '±1.5W' + }, + { + measured: '间谐波电压', + deviceLevel: 'A', + condition: 'Uh≥1%Un', + maxErrorValue: '±5%Uh' + }, + { + measured: '间谐波电压', + deviceLevel: 'A', + condition: 'Uh<1%Un', + maxErrorValue: '±0.05%Un' + }, + { + measured: '间谐波电流', + deviceLevel: 'A', + condition: 'In≥3%In', + maxErrorValue: '±5%Ih' + }, + { + measured: '间谐波电流', + deviceLevel: 'A', + condition: 'In<3%In', + maxErrorValue: '±0.15%In' + }, + { + measured: '电流', + deviceLevel: 'A', + condition: 'I≥0.05In', + maxErrorValue: '±0.5%' + }, + { + measured: '电流', + deviceLevel: 'A', + condition: '0.01In≤I<0.05In', + maxErrorValue: '±1%' + }, + { + measured: '暂态幅值', + deviceLevel: 'A', + condition: '', + maxErrorValue: '±0.2%Un' + }, + { + measured: '暂态时间', + deviceLevel: 'A', + condition: '', + maxErrorValue: '±1周波' + }, + ]) + + + export default {errordata,errordetail} \ No newline at end of file diff --git a/frontend/src/api/error/interface/index.ts b/frontend/src/api/error/interface/index.ts index 5f3c9d6..e194a34 100644 --- a/frontend/src/api/error/interface/index.ts +++ b/frontend/src/api/error/interface/index.ts @@ -4,14 +4,18 @@ export namespace ErrorSystem { export interface ErrorSystemList { id: string;//误差体系表Id name: string;//误差体系名称 + publishTime:string;//发布时间 year:string;//标准实施年份 level:string;//使用设备等级 - details?: Array<{ - measured: string;//被测量 - deviceLevel: string;//检测装置级别 - condition: string;//测量条件 - maxErrorValue: string;//最大误差 - }>; // 详细信息 + state:string;//状态 } + + // 查看详细误差体系 + export interface ErrorSystemDetail { + measured: string;//被测量 + deviceLevel: string;//检测装置级别 + condition: string;//测量条件 + maxErrorValue: string;//最大误差 + } } \ No newline at end of file diff --git a/frontend/src/api/resource/resourceData.ts b/frontend/src/api/resource/resourceData.ts index 6a543a4..ed15746 100644 --- a/frontend/src/api/resource/resourceData.ts +++ b/frontend/src/api/resource/resourceData.ts @@ -223,7 +223,7 @@ const resourcedata = ref([ 'name': '普通表格', 'path':'/plan/planList/index', - 'sort':71, + 'sort':100, 'type':'菜单', 'remark':'检测计划描述', 'route_Name':'route', @@ -235,7 +235,7 @@ const resourcedata = ref([ 'name': '表格树', 'path':'/plan/planList/index', - 'sort':72, + 'sort':100, 'type':'菜单', 'remark':'检测计划描述', 'route_Name':'route', diff --git a/frontend/src/views/machine/errorSystem/components/Error standardDialog.vue b/frontend/src/views/machine/errorSystem/components/Error standardDialog.vue deleted file mode 100644 index f49b6aa..0000000 --- a/frontend/src/views/machine/errorSystem/components/Error standardDialog.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - diff --git a/frontend/src/views/machine/errorSystem/components/ErrorStandardDialog.vue b/frontend/src/views/machine/errorSystem/components/ErrorStandardDialog.vue new file mode 100644 index 0000000..8368116 --- /dev/null +++ b/frontend/src/views/machine/errorSystem/components/ErrorStandardDialog.vue @@ -0,0 +1,72 @@ + + + + diff --git a/frontend/src/views/machine/errorSystem/components/ErrorSystemDialog.vue b/frontend/src/views/machine/errorSystem/components/ErrorSystemDialog.vue index ab38012..fed44d1 100644 --- a/frontend/src/views/machine/errorSystem/components/ErrorSystemDialog.vue +++ b/frontend/src/views/machine/errorSystem/components/ErrorSystemDialog.vue @@ -7,12 +7,12 @@ - + - + @@ -23,21 +23,21 @@ - - + + - - + + - - + + @@ -53,12 +53,12 @@ 批量删除 - + - - + +