{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\equipmentManage.js","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\equipmentManage.js","mtime":1686792516218},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from '@/request.js';\nvar portal = window.context.portal;\nvar headers = {\n 'Content-type': 'application/x-www-form-urlencoded'\n};\nexport default {\n // 根据id查询设备信息\n deviceDetails: function deviceDetails(id, cb) {\n req.get(portal + '/device/info/' + id).then(function (res) {\n cb(res.data);\n });\n },\n // 根据id查询设备信息\n deviceDetailsInfo: function deviceDetailsInfo(id, cb) {\n req.get(portal + '/device/info/detail/' + id).then(function (res) {\n cb(res.data);\n });\n },\n // 获取设备扩展参数配置\n getExtendParams: function getExtendParams(data, cb) {\n req.post(portal + '/device/params/conf/findAll', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 根据id启禁用设备\n deviceflag: function deviceflag(data, cb) {\n req.post(portal + '/device/info/modifyEnabled', data).then(function (res) {\n cb(res.data);\n });\n },\n // 根据产品id获取设备数量\n getDeviceInfo: function getDeviceInfo(data, cb) {\n req.request({\n method: 'post',\n url: portal + '/device/info/getDeviceInfo',\n data: data,\n headers: headers\n }).then(function (res) {\n cb(res.data);\n });\n },\n // 分页查询区域\n loadArea: function loadArea(data, cb) {\n req.post(portal + \"/device/baseArea/query\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 获取产品扩展参数配置\n getProductParams: function getProductParams(data, cb) {\n req.post(portal + '/device/product/paramsConf/findAll', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 分页查询设备所属合同\n getDeviceList: function getDeviceList(data, cb) {\n req.post(portal + '/device/relation/contract/findByContractPage', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //附件下载\n accessoryDownload: function accessoryDownload(data) {\n req.downloadGetCopy(portal + '/file/v1/downloadFile=' + data);\n },\n // 删除关联信息\n delete: function _delete(ids, cb) {\n req.remove(portal + '/biz/task/schedulerTask/v1/?ids=' + ids).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 获取合同关联信息\n getContractList: function getContractList(data, cb) {\n req.post(portal + '/device/relation/contract/getContractList', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 新增设备关联合同\n saveDevice: function saveDevice(data, cb) {\n req.post(portal + '/device/relation/contract/bindContract', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //告警查询\n load: function load(data, cb) {\n req.post(portal + \"/device/product/warnConf/query\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 物模型事件查询\n loadEventDefinition: function loadEventDefinition(data, cb) {\n req.post(portal + \"/device/metadata/events/query\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 物模型属性列表\n attributeList: function attributeList(data, cb) {\n req.post(portal + '/device/metadata/properties/query', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //告警新增\n addAlerts: function addAlerts(data, cb) {\n req.post(portal + \"/device/warn/conf/\", data).then(function (res) {\n cb(res.data);\n });\n },\n //告警查询\n loadAlerts: function loadAlerts(data, cb) {\n req.post(portal + \"/device/warn/conf/query\", data).then(function (res) {\n cb(res.data);\n });\n },\n //告警根据id查询\n findAlerts: function findAlerts(id, cb) {\n req.get(portal + '/device/warn/conf/' + id).then(function (res) {\n cb(res.data);\n });\n },\n //产品告警根据id查询\n findProductAlerts: function findProductAlerts(id, cb) {\n req.get(portal + '/device/product/warnConf/' + id).then(function (res) {\n cb(res.data);\n });\n },\n //告警修改\n modifyAlerts: function modifyAlerts(data, cb) {\n req.put(portal + '/device/warn/conf/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n modifyEnabled: function modifyEnabled(data, cb) {\n req.post(portal + \"/device/warn/conf/modifyEnabled\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 新增状态日志\n addLog: function addLog(data, cb) {\n req.post(portal + \"/deviceStatusLog/v1/\", data).then(function (rep) {\n cb(rep.data);\n });\n },\n // 修改状态日志\n updateLog: function updateLog(data, cb) {\n req.put(portal + \"/deviceStatusLog/v1/\", data).then(function (rep) {\n cb(rep.data);\n });\n },\n // 分页查询状态日志\n loadLog: function loadLog(data, cb) {\n req.post(portal + \"/deviceStatusLog/v1/query\", data).then(function (rep) {\n cb(rep.data);\n });\n },\n // 修改设备状态信息\n updateStatus: function updateStatus(data, cb) {\n req.post(portal + \"/device/info/updateStatus?id=\".concat(data.id, \"&&productCode=\").concat(data.productCode, \"&&status=\").concat(data.status)).then(function (rep) {\n cb(rep.data);\n });\n },\n //视频点位数据导出\n exportPointBase: function exportPointBase(data, cb) {\n req.post(portal + \"/biz/catalog/base/exportPoint\", data, 'blob').then(function (res) {\n cb(res.data);\n });\n },\n // 修改设备状态信息\n updateImportant: function updateImportant(data, cb) {\n req.post(portal + \"/device/info/updateImportant?id=\".concat(data.id, \"&&important=\").concat(data.important)).then(function (rep) {\n cb(rep.data);\n });\n },\n // 修改设备状态信息\n updateImportantPoint: function updateImportantPoint(data, cb) {\n req.post(portal + \"/biz/catalog/base/point/updateImportant?id=\".concat(data.id, \"&&important=\").concat(data.important)).then(function (rep) {\n cb(rep.data);\n });\n },\n // // 物模型属性列表\n // updateImportantPoint(data, cb) {\n // req.post(portal + '/biz/catalog/base/point/updateImportant', data).then(rep => {\n // if (rep.data) {\n // cb(rep.data)\n // }\n // })\n // },\n // 根据id查询状态日志信息\n findLogById: function findLogById(id, cb) {\n req.get(portal + '/deviceStatusLog/v1/' + id).then(function (res) {\n cb(res.data);\n });\n },\n // // 根据设备id获取实时数据\n // realData(id, cb) {\n // req.post(portal + '/device/data/query?id=' + id).then(res => {\n // cb(res.data)\n // })s\n // }\n supplierId: function supplierId(id, cb) {\n req.get(portal + '/device/base/company/' + id).then(function (res) {\n cb(res.data);\n });\n },\n managerId: function managerId(id, cb) {\n req.get(portal + '/device/base/user/' + id).then(function (res) {\n cb(res.data);\n });\n },\n // 查询区域下拉树\n loadAreaTree: function loadAreaTree(data, cb) {\n req.post(portal + \"/device/baseArea/getTree\", data).then(function (res) {\n cb(res.data);\n });\n }\n};",null]}