Kaynağa Gözat

[Feat]语音报警增加是否报警喝报警频率功能、预警联动增加数据趋势和数据趋势持续时间

wangkeyi 1 gün önce
ebeveyn
işleme
eef5d711d5

+ 31 - 0
src/views/vent/deviceManager/comment/warningTabel/warning.data.ts

@@ -46,6 +46,23 @@ export const levelColumns: BasicColumn[] = [
     dataIndex: 'des',
     editComponent: 'Input',
   },
+  {
+    title: '是否语音报警',
+    width: 100,
+    editRow: true,
+    dataIndex: 'isVoice',
+    editComponent: 'Switch',
+    editValueMap: (value) => {
+      return value ? '是' : '否';
+    },
+  },
+  {
+    title: '语音播报频率',
+    width: 100,
+    editRow: true,
+    dataIndex: 'voiceFre',
+    editComponent: 'InputNumber',
+  },
 ];
 
 export const warningColumns: BasicColumn[] = [
@@ -470,6 +487,20 @@ export const monitorWarningFormSchemas = (param) =>
       field: 'cxTime',
       component: 'InputNumber',
     },
+    {
+      label: '数据趋势',
+      field: 'dataTrend',
+      component: 'JDictSelectTag',
+      componentProps: {
+        dictCode: 'dataTrend',
+        placeholder: '请选择数据趋势',
+      },
+    },
+    {
+      label: '数据趋势持续时间(h)',
+      field: 'trendCxTime',
+      component: 'InputNumber',
+    },
   ];
 
 export const controlWarningFormSchemas: FormSchema[] = [