123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005 |
- import request from '@/utils/request'
- /************物联硬件************/
- //物联分类列表
- export function iotDeviceList(data) {
- return request({
- url: '/iot/device/list',
- method: 'post',
- data: data
- })
- }
- //设备类型下啦列表
- export function iotTypeGetAllTypes(query) {
- return request({
- url: '/iot/type/getAllTypes',
- method: 'get',
- params: query
- })
- }
- //设备类型配置查询
- export function iotTypeGetParamByTypeId(query) {
- return request({
- url: '/iot/type/getParamByTypeId',
- method: 'get',
- params: query
- })
- }
- //通过设备类型查询设备属性
- export function iotAttributeGetByTypeId(query) {
- return request({
- url: '/iot/attribute/getByTypeId',
- method: 'get',
- params: query
- })
- }
- //新增设备
- export function iotDeviceAdd(data) {
- return request({
- url: '/iot/device/add',
- method: 'post',
- data: data
- })
- }
- //设备详情
- export function iotDeviceDetail(query) {
- return request({
- url: '/iot/device/detail',
- method: 'get',
- params: query
- })
- }
- //编辑设备
- export function iotDeviceUpdate(data) {
- return request({
- url: '/iot/device/update',
- method: 'post',
- data: data
- })
- }
- //删除设备
- export function iotDeviceDelete(data) {
- return request({
- url: '/iot/device/delete',
- method: 'post',
- data: data
- })
- }
- //物联设备在线数量
- export function iotDeviceDeviceCount(query) {
- return request({
- url: '/iot/device/deviceCount',
- method: 'get',
- params: query
- })
- }
- //根据设备ID-查询设备功能列表
- export function iotTypeFunctionList(data) {
- return request({
- url: '/iot/type/function/list',
- method: 'post',
- data: data
- })
- }
- //根据设备ID-新增设备功能
- export function iotTypeFunctionAdd(data) {
- return request({
- url: '/iot/type/function/add',
- method: 'post',
- data: data
- })
- }
- //根据设备ID-编辑设备功能
- export function iotTypeFunctionUpdate(data) {
- return request({
- url: '/iot/type/function/update',
- method: 'post',
- data: data
- })
- }
- //根据设备ID-删除设备功能
- export function iotTypeFunctionDelete(data) {
- return request({
- url: '/iot/type/function/delete',
- method: 'post',
- data: data
- })
- }
- //根据设备ID-获取功能下拉列表
- export function iotTypeFunctionDropList(data) {
- return request({
- url: '/iot/type/function/dropList',
- method: 'post',
- data: data
- })
- }
- //根据类型ID-获取未设备列表
- export function iotDeviceExtraDeviceList(data) {
- return request({
- url: '/iot/device/extraDeviceList',
- method: 'post',
- data: data
- })
- }
- //批量添加-设备
- export function iotDeviceAddBatch(data) {
- return request({
- url: '/iot/device/addBatch',
- method: 'post',
- data: data
- })
- }
- //物联设备-查询传感器LOG日志
- export function iotDeviceDataList(data) {
- return request({
- url: '/iot/deviceData/list',
- method: 'post',
- data: data
- })
- }
- //物联设备-查询设备日志类型
- export function iotDeviceLogType(query) {
- return request({
- url: '/iot/device/log/type',
- method: 'get',
- params: query
- })
- }
- //物联设备-根据设备ID查询设备日志
- export function iotDeviceLogList(data) {
- return request({
- url: '/iot/device/log/list',
- method: 'post',
- data: data
- })
- }
- /************物联分类************/
- //物联分类列表
- export function iotTypeList(data) {
- return request({
- url: '/iot/type/list',
- method: 'post',
- data: data
- })
- }
- //获取物联分类标识
- export function iotTypeGetTypeKey(query) {
- return request({
- url: '/iot/type/getTypeKey',
- method: 'get',
- params: query
- })
- }
- //新增物联分类
- export function iotTypeAdd(data) {
- return request({
- url: '/iot/type/add',
- method: 'post',
- data: data
- })
- }
- //编辑物联分类
- export function iotTypeUpdate(data) {
- return request({
- url: '/iot/type/update',
- method: 'post',
- data: data
- })
- }
- //物联分类删除
- export function iotTypeDelete(data) {
- return request({
- url: '/iot/type/delete',
- method: 'post',
- data: data
- })
- }
- //物联分类详情
- export function iotTypeDetail(query) {
- return request({
- url: '/iot/type/detail',
- method: 'get',
- params: query
- })
- }
- //物联分类-配置-属性列表
- export function iotAttributeList(data) {
- return request({
- url: '/iot/attribute/list',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性新增
- export function iotAttributeAdd(data) {
- return request({
- url: '/iot/attribute/add',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性编辑
- export function iotAttributeUpdate(data) {
- return request({
- url: '/iot/attribute/update',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性删除
- export function iotAttributeDelete(data) {
- return request({
- url: '/iot/attribute/delete',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性详情
- export function iotAttributeDetail(query) {
- return request({
- url: '/iot/attribute/detail',
- method: 'get',
- params: query
- })
- }
- //物联分类-配置-属性上移
- export function iotAttributeMoveUp(data) {
- return request({
- url: '/iot/attribute/moveUp',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性下移
- export function iotAttributeMoveDown(data) {
- return request({
- url: '/iot/attribute/moveDown',
- method: 'post',
- data: data
- })
- }
- //物联分类-配置-属性类别(分类下的子标识)列表
- export function iotAttributeAttrType(query) {
- return request({
- url: '/iot/attribute/attrType',
- method: 'get',
- params: query
- })
- }
- //物联分类-配置-模块列表
- export function iotTypeTypeModelAndAttr(query) {
- return request({
- url: '/iot/type/typeModelAndAttr',
- method: 'get',
- params: query
- })
- }
- //物联分类-配置-模块
- export function iotTypeSaveTypeModel(data) {
- return request({
- url: '/iot/type/saveTypeModel',
- method: 'post',
- data: data
- })
- }
- /***********分类配置*************/
- //分类配置列表
- export function iotParamList(data) {
- return request({
- url: '/iot/param/list',
- method: 'post',
- data: data
- })
- }
- //分类配置添加
- export function iotParamAdd(data) {
- return request({
- url: '/iot/param/add',
- method: 'post',
- data: data
- })
- }
- //分类配置编辑
- export function iotParamUpdate(data) {
- return request({
- url: '/iot/param/update',
- method: 'post',
- data: data
- })
- }
- //分类配置删除
- export function iotParamDelete(data) {
- return request({
- url: '/iot/param/delete',
- method: 'post',
- data: data
- })
- }
- //分类配置详情
- export function iotParamDetail(query) {
- return request({
- url: '/iot/param/detail',
- method: 'get',
- params: query
- })
- }
- //分类配置展示
- export function iotParamAll(data) {
- return request({
- url: '/iot/param/all',
- method: 'post',
- data: data
- })
- }
- //分类配置上移
- export function iotParamMoveUp(data) {
- return request({
- url: '/iot/param/moveUp',
- method: 'post',
- data: data
- })
- }
- //分类配置下移
- export function iotParamMoveDown(data) {
- return request({
- url: '/iot/param/moveDown',
- method: 'post',
- data: data
- })
- }
- //分类配置字典列表
- export function iotParamValueList(data) {
- return request({
- url: '/iot/paramValue/list',
- method: 'post',
- data: data
- })
- }
- //分类配置字典新增
- export function iotParamValueAdd(data) {
- return request({
- url: '/iot/paramValue/add',
- method: 'post',
- data: data
- })
- }
- //分类配置字典编辑
- export function iotParamValueUpdate(data) {
- return request({
- url: '/iot/paramValue/update',
- method: 'post',
- data: data
- })
- }
- //分类配置字典删除
- export function iotParamValueDelete(data) {
- return request({
- url: '/iot/paramValue/delete',
- method: 'post',
- data: data
- })
- }
- //分类配置字典详情
- export function iotParamValueDetail(query) {
- return request({
- url: '/iot/paramValue/detail',
- method: 'get',
- params: query
- })
- }
- /***********告警方式*************/
- //方式列表
- export function iotAlarmType(query) {
- return request({
- url: '/iot/alarm/type',
- method: 'get',
- params: query
- })
- }
- //告警方式列表
- export function iotAlarmTypeList(data) {
- return request({
- url: '/iot/alarm/type/list',
- method: 'post',
- data: data
- })
- }
- //告警方式新增
- export function iotAlarmTypeAdd(data) {
- return request({
- url: '/iot/alarm/type/add',
- method: 'post',
- data: data
- })
- }
- //告警方式编辑
- export function iotAlarmTypeUpdate(data) {
- return request({
- url: '/iot/alarm/type/update',
- method: 'post',
- data: data
- })
- }
- //告警方式删除
- export function iotAlarmTypeDelete(data) {
- return request({
- url: '/iot/alarm/type/delete',
- method: 'post',
- data: data
- })
- }
- //告警方式启用&禁用
- export function iotAlarmTypeChangeState(data) {
- return request({
- url: '/iot/alarm/type/changeState',
- method: 'post',
- data: data
- })
- }
- /***********消息模板*************/
- //消息模板-下拉列表
- export function iotAlarmTemplateDrop(data) {
- return request({
- url: '/iot/alarm/template/drop',
- method: 'post',
- data: data
- })
- }
- //消息模板列表
- export function iotAlarmTemplateList(data) {
- return request({
- url: '/iot/alarm/template/list',
- method: 'post',
- data: data
- })
- }
- //消息模板新增
- export function iotAlarmTemplateAdd(data) {
- return request({
- url: '/iot/alarm/template/add',
- method: 'post',
- data: data
- })
- }
- //消息模板编辑
- export function iotAlarmTemplateUpdate(data) {
- return request({
- url: '/iot/alarm/template/update',
- method: 'post',
- data: data
- })
- }
- //消息模板删除
- export function iotAlarmTemplateDelete(data) {
- return request({
- url: '/iot/alarm/template/delete',
- method: 'post',
- data: data
- })
- }
- //消息模板-发送调试信息
- export function iotAlarmSendCheck(data) {
- return request({
- url: '/iot/alarm/send/check',
- method: 'post',
- data: data
- })
- }
- //消息模板启用&禁用
- export function iotAlarmTemplateChangeState(data) {
- return request({
- url: '/iot/alarm/template/changeState',
- method: 'post',
- data: data
- })
- }
- //获取消息模板类型列表
- export function iotAlarmTemplateBodyType(query) {
- return request({
- url: '/iot/alarm/template/bodyType',
- method: 'get',
- params: query
- })
- }
- //短信发送业务类型(预案短信/化学品短信/气瓶短信)
- export function iotAlarmTemplateBusinessType(query) {
- return request({
- url: '/iot/alarm/template/businessType',
- method: 'get',
- params: query
- })
- }
- /***********网络组件*************/
- /*
- 网络组件-下拉列表or组件详情查询
- isList:下拉列表查询时传true
- id:详情查询时传入ID
- */
- export function iotNetworkInfo(query) {
- return request({
- url: '/iot/network/info',
- method: 'get',
- params: query
- })
- }
- //网络组件-列表
- export function iotNetworkList(data) {
- return request({
- url: '/iot/network/list',
- method: 'post',
- data: data
- })
- }
- //网络组件-新增
- export function iotNetworkAdd(data) {
- return request({
- url: '/iot/network/add',
- method: 'post',
- data: data
- })
- }
- //网络组件-修改
- export function iotNetworkUpdate(data) {
- return request({
- url: '/iot/network/update',
- method: 'post',
- data: data
- })
- }
- //网络组件-删除
- export function iotNetworkDelete(data) {
- return request({
- url: '/iot/network/delete',
- method: 'post',
- data: data
- })
- }
- //网络组件-详情
- export function iotNetworkDetail(data) {
- return request({
- url: '/iot/network/detail',
- method: 'post',
- data: data
- })
- }
- /***************** 协议管理 *****************/
- //协议管理-列表
- export function iotProtocolList(data) {
- return request({
- url: '/iot/protocol/list',
- method: 'post',
- data: data
- })
- }
- //协议管理-新增
- export function iotProtocolAdd(data) {
- return request({
- url: '/iot/protocol/add',
- method: 'post',
- data: data
- })
- }
- //协议管理-编辑
- export function iotProtocolUpdate(data) {
- return request({
- url: '/iot/protocol/update',
- method: 'post',
- data: data
- })
- }
- //协议管理-删除
- export function iotProtocolDelete(data) {
- return request({
- url: '/iot/protocol/delete',
- method: 'post',
- data: data
- })
- }
- /***************** 硬件分类 *****************/
- //硬件分类-新增
- export function iotHardwareTypeAdd(data) {
- return request({
- url: '/iot/hardwareType/add',
- method: 'post',
- data: data
- })
- }
- //硬件分类-编辑
- export function iotHardwareTypeUpdate(data) {
- return request({
- url: '/iot/hardwareType/update',
- method: 'post',
- data: data
- })
- }
- //硬件分类-列表
- export function iotHardwareTypeList(data) {
- return request({
- url: '/iot/hardwareType/list',
- method: 'post',
- data: data
- })
- }
- //硬件分类-删除
- export function iotHardwareTypeDelete(data) {
- return request({
- url: '/iot/hardwareType/delete',
- method: 'post',
- data: data
- })
- }
- //硬件分类-详情
- export function iotHardwareTypeDetail(query) {
- return request({
- url: '/iot/hardwareType/detail',
- method: 'get',
- params: query
- })
- }
- //硬件分类-获取分类标识列表
- export function iotHardwareTypeGetTypeKey(query) {
- return request({
- url: '/iot/hardwareType/getTypeKey',
- method: 'get',
- params: query
- })
- }
- //硬件分类-功能下拉列表
- export function iotHardwareFunctionDropList(data) {
- return request({
- url: '/iot/hardware/function/dropList',
- method: 'post',
- data: data
- })
- }
- //硬件分类-功能列表
- export function iotHardwareFunctionList(data) {
- return request({
- url: '/iot/hardware/function/list',
- method: 'post',
- data: data
- })
- }
- //硬件分类-功能新增
- export function iotHardwareFunctionAdd(data) {
- return request({
- url: '/iot/hardware/function/add',
- method: 'post',
- data: data
- })
- }
- //硬件分类-功能编辑
- export function iotHardwareFunctionUpdate(data) {
- return request({
- url: '/iot/hardware/function/update',
- method: 'post',
- data: data
- })
- }
- //硬件分类-功能删除
- export function iotHardwareFunctionDelete(data) {
- return request({
- url: '/iot/hardware/function/delete',
- method: 'post',
- data: data
- })
- }
- /*********** 硬件设备 ************/
- //硬件设备-新增
- export function iotHardwareAdd(data) {
- return request({
- url: '/iot/hardware/add',
- method: 'post',
- data: data
- })
- }
- //硬件设备-编辑
- export function iotHardwareUpdate(data) {
- return request({
- url: '/iot/hardware/update',
- method: 'post',
- data: data
- })
- }
- //硬件设备-列表
- export function iotHardwareList(data) {
- return request({
- url: '/iot/hardware/list',
- method: 'post',
- data: data
- })
- }
- //硬件设备-详情
- export function iotHardwareDetail(query) {
- return request({
- url: '/iot/hardware/detail',
- method: 'get',
- params: query
- })
- }
- //硬件设备-删除
- export function iotHardwareDelete(data) {
- return request({
- url: '/iot/hardware/delete',
- method: 'post',
- data: data
- })
- }
- //硬件设备-新增-获取硬件分类
- export function iotHardwareTypeFindHardwareType(data) {
- return request({
- url: '/iot/hardwareType/findHardwareType',
- method: 'post',
- data: data
- })
- }
- //硬件设备-硬件日志
- export function iotHardwareLogList(data) {
- return request({
- url: '/iot/hardware/log/list',
- method: 'post',
- data: data
- })
- }
- /***********接收人*************/
- //获取接收人-列表
- export function iotAlarmReceiveList(data) {
- return request({
- url: '/iot/alarm/receive/list',
- method: 'post',
- data: data
- })
- }
- //获取接收人-新增
- export function iotAlarmReceiveAdd(data) {
- return request({
- url: '/iot/alarm/receive/add',
- method: 'post',
- data: data
- })
- }
- //获取接收人-删除
- export function iotAlarmReceiveDelete(data) {
- return request({
- url: '/iot/alarm/receive/delete',
- method: 'post',
- data: data
- })
- }
- //获取接收人-编辑
- export function iotAlarmReceiveUpdate(data) {
- return request({
- url: '/iot/alarm/receive/update',
- method: 'post',
- data: data
- })
- }
- //获取接收人-下拉列表
- export function iotAlarmReceiveDropList(data) {
- return request({
- url: '/iot/alarm/receive/dropList',
- method: 'post',
- data: data
- })
- }
- //消息日志-列表
- export function iotAlarmLogList(data) {
- return request({
- url: '/iot/alarm/log/list',
- method: 'post',
- data: data
- })
- }
- /************************* 监控配置 *************************/
- //设备监控-列表
- export function iotMonitorConfigList(data) {
- return request({
- url: '/iot/monitor/config/list',
- method: 'post',
- data: data
- })
- }
- //设备监控-新增
- export function iotMonitorConfigAdd(data) {
- return request({
- url: '/iot/monitor/config/add',
- method: 'post',
- data: data
- })
- }
- //设备监控-编辑
- export function iotMonitorConfigUpdate(data) {
- return request({
- url: '/iot/monitor/config/update',
- method: 'post',
- data: data
- })
- }
- //设备监控-删除
- export function iotMonitorConfigDelete(data) {
- return request({
- url: '/iot/monitor/config/delete',
- method: 'post',
- data: data
- })
- }
- //设备监控-详情
- export function iotMonitorConfigDetail(query) {
- return request({
- url: '/iot/monitor/config/detail',
- method: 'get',
- params: query
- })
- }
- //设备监控日志-列表
- export function iotMonitorLogList(data) {
- return request({
- url: '/iot/monitor/log/list',
- method: 'post',
- data: data
- })
- }
- /******************** 应用管理 ********************/
- //应用列表-列表
- export function iotAppInfoList(data) {
- return request({
- url: '/iot/app/info/list',
- method: 'post',
- data: data
- })
- }
- //应用列表-新增
- export function iotAppInfoAdd(data) {
- return request({
- url: '/iot/app/info/add',
- method: 'post',
- data: data
- })
- }
- //应用列表-编辑
- export function iotAppInfoUpdate(data) {
- return request({
- url: '/iot/app/info/update',
- method: 'post',
- data: data
- })
- }
- //应用列表-删除
- export function iotAppInfoDelete(data) {
- return request({
- url: '/iot/app/info/delete',
- method: 'post',
- data: data
- })
- }
- //应用列表-获取应用版本号
- export function iotAppInfoGetLastVersion(query) {
- return request({
- url: '/iot/app/info/getLastVersion',
- method: 'get',
- params: query
- })
- }
- //应用列表-code列表
- export function iotAppInfoGetCodeList(query) {
- return request({
- url: '/iot/app/info/getCodeList',
- method: 'get',
- params: query
- })
- }
- //应用列表-获取可升级设备列表
- export function iotAppInfoUpgradeDevices(data) {
- return request({
- url: '/iot/app/info/upgradeDevices',
- method: 'post',
- data: data
- })
- }
- //应用列表-批量升级
- export function iotAppInfoBatchUpgrade(data) {
- return request({
- url: '/iot/app/info/batchUpgrade',
- method: 'post',
- data: data
- })
- }
- //应用升级-列表
- export function iotAppUpgradeList(data) {
- return request({
- url: '/iot/app/upgrade/list',
- method: 'post',
- data: data
- })
- }
- //应用升级-撤销升级
- export function iotAppUpgradeDelete(data) {
- return request({
- url: '/iot/app/upgrade/delete',
- method: 'post',
- data: data
- })
- }
- /********************* 物联管理首页 *********************/
- //统计-设备在线离线
- export function iotStatisticsDeviceOnline(query) {
- return request({
- url: '/iot/statistics/deviceOnline',
- method: 'get',
- params: query
- })
- }
- //统计-设备分类
- export function iotStatisticsDeviceType(query) {
- return request({
- url: '/iot/statistics/deviceType',
- method: 'get',
- params: query
- })
- }
- //统计-设备统计
- export function iotStatisticsDevices(query) {
- return request({
- url: '/iot/statistics/devices',
- method: 'get',
- params: query
- })
- }
- //统计-告警消息统计
- export function iotStatisticsMessages(query) {
- return request({
- url: '/iot/statistics/messages',
- method: 'get',
- params: query
- })
- }
- //统计-消息列表
- export function iotAlarmLogMessages(data) {
- return request({
- url: '/iot/alarm/log/select',
- method: 'post',
- data: data
- })
- }
|