{"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\\PhysicalModel.js","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\PhysicalModel.js","mtime":1667545180510},{"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;\nexport default {\n /**\r\n * \r\n * @param {传参} data \r\n * @param {回调} cb \r\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 attributeAdd: function attributeAdd(data, cb) {\n req.post(portal + '/device/metadata/properties/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 物模型属性更新\n modifyAttribute: function modifyAttribute(data, cb) {\n req.put(portal + '/device/metadata/properties/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //物模型属性排序\n saveAttributeProperty: function saveAttributeProperty(data, cb) {\n req.post(portal + \"/device/metadata/properties/updateSequence\", data).then(function (rep) {\n cb(rep.data);\n });\n },\n // 物模型功能分页\n FunctionList: function FunctionList(data, cb) {\n req.post(portal + '/device/metadata/functions/query', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 物模型功能添加\n AddFunction: function AddFunction(data, cb) {\n req.post(portal + '/device/metadata/functions/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 物模型功能更新\n modifyFunction: function modifyFunction(data, cb) {\n req.put(portal + '/device/metadata/functions/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //物模型功能根据ID查询\n FunctionDetails: function FunctionDetails(id, cb) {\n req.get(portal + '/device/metadata/functions/' + id).then(function (res) {\n cb(res.data);\n });\n },\n //物模型功能排序\n saveFunctionProperty: function saveFunctionProperty(data, cb) {\n req.post(portal + \"/device/metadata/functions/updateSequence\", data).then(function (rep) {\n cb(rep.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 addEventDefinition: function addEventDefinition(data, cb) {\n req.post(portal + \"/device/metadata/events/\", data).then(function (res) {\n cb(res.data);\n });\n },\n //物模型事件根据id查询\n findEventDefinition: function findEventDefinition(id, cb) {\n req.get(portal + '/device/metadata/events/' + id).then(function (res) {\n cb(res.data);\n });\n },\n //物模型事件修改\n modifyEventDefinition: function modifyEventDefinition(data, cb) {\n req.put(portal + '/device/metadata/events/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 物模型事件删除\n removeEventDefinition: function removeEventDefinition(data, cb) {\n req.remove(portal + \"/device/metadata/events/\", data).then(function (res) {\n cb(res.data);\n });\n },\n //物模型事件排序\n saveProperty: function saveProperty(data, cb) {\n req.post(portal + \"/device/metadata/events/updateSequence\", data).then(function (rep) {\n cb(rep.data);\n });\n },\n //告警新增\n addAlerts: function addAlerts(data, cb) {\n req.post(portal + \"/device/product/warnConf/\", data).then(function (res) {\n cb(res.data);\n });\n },\n //告警查询\n loadAlerts: function loadAlerts(data, cb) {\n req.post(portal + \"/device/product/warnConf/query\", data).then(function (res) {\n cb(res.data);\n });\n },\n //告警根据id查询\n findAlerts: function findAlerts(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/product/warnConf/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n //告警排序\n savePropertyAlerts: function savePropertyAlerts(data, cb) {\n req.post(portal + \"/device/product/warnConf/updateSequence\", data).then(function (rep) {\n cb(rep.data);\n });\n }\n};",null]}