diff --git a/src/api/rule-engine/log.ts b/src/api/rule-engine/log.ts new file mode 100644 index 00000000..05eddf37 --- /dev/null +++ b/src/api/rule-engine/log.ts @@ -0,0 +1,21 @@ +import server from '@/utils/request'; + +/** + * 获取产品列表 + */ +export const getProductList = (parmas?:any) => server.get('/device/product/_query/no-paging?paging=false',parmas); + +/** + * 获取设备列表 + */ +export const getDeviceList = (parmas?:any) => server.get('/device-instance/_query/no-paging?paging=false',parmas); + +/** + * 获取组织列表 + */ +export const getOrgList = (parmas?:any) => server.get('/organization/_query/no-paging?paging=false',parmas); + +/** + * 搜索 + */ +export const query = (data:any) => server.post('/alarm/record/_query/',data); \ No newline at end of file diff --git a/src/store/alarm.ts b/src/store/alarm.ts new file mode 100644 index 00000000..bb255798 --- /dev/null +++ b/src/store/alarm.ts @@ -0,0 +1,37 @@ +import { defineStore } from "pinia"; + +export const useAlarmStore = defineStore('alarm',()=>{ + const data = reactive({ + tab: 'all', + current: {}, + solveVisible: false, + logVisible: false, + defaultLevel: [], + columns: [ + { + dataIndex: 'alarmConfigName', + title: '告警名称', + // hideInSearch: true, + }, + { + dataIndex: 'alarmTime', + title: '告警时间', + valueType: 'dateTime', + }, + { + dataIndex: 'description', + title: '说明', + // hideInSearch: true, + }, + { + dataIndex: 'action', + title: '操作', + hideInSearch: true, + valueType: 'option', + }, + ], + }) + return { + data + } +}) \ No newline at end of file diff --git a/src/views/device/Product/index.vue b/src/views/device/Product/index.vue index 456eedbe..6f5076fd 100644 --- a/src/views/device/Product/index.vue +++ b/src/views/device/Product/index.vue @@ -35,7 +35,6 @@