123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /*
- * @Author: wf
- * @Date: 2021-08-18 09:22:19
- * @LastEditors: wf
- * @LastEditTime: 2021-08-18 17:22:40
- * @Description: 告警数据配置
- */
- export const sysQuery = {
- params: {
- alarmCategory:'1',
- alarmName:'',
- sceneType:'5'
- },
- undone: {// 未处理告警列表查询字段
- exportUrl: '/zoniot-rmcp-web/Abnormal/getAllAbnormalExcel'
- },
- done: {// 已处理告警列表查询字段
- exportUrl: '/zoniot-rmcp-web/Abnormal/getAllHandleAbnormalExcel'
- }
- }
-
- /**
- * @description: 系统告警搜索条件配置
- * @param : conditions 条件汇总 | alias 场景别名区分常显和更多过滤条件
- * @return:
- */
- export const sysSearchConfig = {
- conditions: [
- {
- label: '',
- prop: 'alarmCategory',
- slot: 'alarmCategory',
- },
- {
- label: '',
- prop: 'alarmName',
- slot: 'alarmName',
- placeholder: '告警名称',
- }
- ],
- water: {
- normal: ['alarmCategory', 'alarmName'],
- more: [],
- },
- other: {
- normal: ['alarmCategory', 'alarmName'],
- more: [],
- }
- }
-
-
- export const alarmMeasuringDatasFormat = (val) => {
- let str = '';
- _.each(val, (item) => {
- str += `${item.measuringName}:${item.showData || '--'}${item.measuringUnit || ''};`
- })
- return str;
- }
-
- /* 告警列表配置,按照场景别名区分 */
- export const sysColumnConfig = {
- cols: [
- {
- label: '产品',
- prop: 'productName'
- },{
- label: '设备编号',
- prop: 'deviceNo',
- },{
- label: '告警名称',
- prop: 'alarmName',
- },{
- label: '告警描述',
- prop: 'desc',
- }, {
- label: '规则',
- prop: 'alarmRuleNum',
- }, {
- label: '状态',
- prop:'enabled',
- slot:'enabled',
- },
- {
- label: '操作',
- prop: 'opt',
- slot: 'opt',
- }
- ],
- done:['productName', 'deviceNo', 'alarmName', 'desc', 'alarmRuleNum',
- 'enabled','opt'],
- undone:['productName', 'deviceNo', 'alarmName', 'desc', 'alarmRuleNum',
- 'enabled','opt'],
- loraMeter: ['alarmTypeName', 'lastAlarmTime', 'deviceNo', 'meterNo', 'deviceModel',
- 'companyName', 'deptName', 'address','handleTime','opt'],
- nbiotMeter:['alarmTypeName', 'lastAlarmTime', 'deviceNo', 'meterNo', 'deviceModel',
- 'companyName', 'deptName', 'address','handleTime','opt'],
- other: ['sceneName', 'deviceType', 'deviceName', 'alarmContent', 'attributeName',
- 'opState', 'state', 'opt'],
- }
-
-
-
|