diff --git a/src/api/iot/device.js b/src/api/iot/device.js index d5dd5f71..6890ebc2 100644 --- a/src/api/iot/device.js +++ b/src/api/iot/device.js @@ -80,6 +80,15 @@ export function listDeviceLogList(query) { }); } +// 获取设备事件列表 +export function listDeviceEventLogList(query) { + return request({ + url: "/iot/device/event-list", + method: "get", + params: query + }); +} + // 获取设备类型列表 export function getDeviceFunList(query) { return request({ diff --git a/src/basedata/physicalModel.js b/src/basedata/physicalModel.js new file mode 100644 index 00000000..70e3bbd4 --- /dev/null +++ b/src/basedata/physicalModel.js @@ -0,0 +1,20 @@ +export const dataTypeOption = { + int: 'int(整数型)', + long: 'long(长整数型)', + float: 'float(单精度浮点型)', + double: 'double(双精度浮点数)', + string: 'text(字符串)', + boolean: 'boolean(布尔型)', + date: 'date(时间型)', + enum: 'enum(枚举)', + array: 'array(数组)', + object: 'object(结构体)', + file: 'file(文件)', + password: 'password(密码)', + geoPoint: 'geoPoint(地理位置)', +}; +export const eventLevel = { + ordinary:'普通', + warn:'警告', + urgent:'紧急', +} diff --git a/src/components/DialogTemplate/index.vue b/src/components/DialogTemplate/index.vue index a7269638..abddb79f 100644 --- a/src/components/DialogTemplate/index.vue +++ b/src/components/DialogTemplate/index.vue @@ -1,6 +1,6 @@