diff --git a/src/api/mes/vulcAlarmStandard/types.ts b/src/api/mes/vulcAlarmStandard/types.ts index 734c544..48ea867 100644 --- a/src/api/mes/vulcAlarmStandard/types.ts +++ b/src/api/mes/vulcAlarmStandard/types.ts @@ -1,6 +1,6 @@ export interface VulcAlarmStandardVO { /** - * 报警项目ID + * 报警标准ID */ alarmStandardId: string | number; @@ -54,11 +54,26 @@ export interface VulcAlarmStandardVO { */ remark: string; + /** + * 数据类型 + */ + dataType: string; + + /** + * 地址 + */ + pointAddress: string; + + /** + * 频率(毫秒) + */ + stepTime: number; + } export interface VulcAlarmStandardForm extends BaseEntity { /** - * 报警项目ID + * 报警标准ID */ alarmStandardId?: string | number; @@ -112,12 +127,29 @@ export interface VulcAlarmStandardForm extends BaseEntity { */ remark?: string; + /** + * 数据类型 + */ + dataType?: string; + + /** + * 地址 + */ + pointAddress?: string; + + /** + * 频率(毫秒) + */ + stepTime?: number; + + technologyId?: string | number; + } export interface VulcAlarmStandardQuery extends PageQuery { /** - * 报警项目ID + * 报警标准ID */ alarmStandardId?: string | number; @@ -166,10 +198,27 @@ export interface VulcAlarmStandardQuery extends PageQuery { */ activeFlag?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 数据类型 + */ + dataType?: string; + + /** + * 地址 + */ + pointAddress?: string; + + /** + * 频率(毫秒) + */ + stepTime?: number; + + /** + * 日期范围参数 + */ + params?: any; + + technologyId?: string | number; } diff --git a/src/views/mes/vulcAlarmStandard/index.vue b/src/views/mes/vulcAlarmStandard/index.vue index 5443141..194bf74 100644 --- a/src/views/mes/vulcAlarmStandard/index.vue +++ b/src/views/mes/vulcAlarmStandard/index.vue @@ -4,13 +4,13 @@ :leave-active-class='proxy?.animate.searchAnimate.leave'>
- + + @keyup.enter='handleQuery'> - - + + - - - + + + + + + + + + + + + + @@ -88,6 +99,13 @@ width='120' /> + + + + + +
@@ -497,6 +501,13 @@ const handleExport = () => { }, `qcInspectionItem_${new Date().getTime()}.xlsx`) } +/** 导出模板按钮操作 */ +const handleExportTemplate = () => { + proxy?.download('qms/qcInspectionItem/exportTemplate', { + + }, `qcInspectionItem_template_${new Date().getTime()}.xlsx`) +} + /** 查询检测项类别列表 */ let qcInspectionItemCategoryList = ref([]); const getCategoryList = async () => { diff --git a/src/views/qms/qcInspectionTemplate/index.vue b/src/views/qms/qcInspectionTemplate/index.vue index b8e291c..b284e7b 100644 --- a/src/views/qms/qcInspectionTemplate/index.vue +++ b/src/views/qms/qcInspectionTemplate/index.vue @@ -34,6 +34,12 @@ 导出 + + 导出模板 + + + 导入 + @@ -309,11 +315,12 @@ +