{"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\\productType.js","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\productType.js","mtime":1667545180588},{"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 // 获取分组列表数据\n typeList: function typeList(data, cb) {\n req.post(portal + '/device/product/type/query', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 新增数据\n addType: function addType(data, cb) {\n req.post(portal + '/device/product/type/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 修改数据\n updateType: function updateType(data, cb) {\n req.put(portal + '/device/product/type/', data).then(function (rep) {\n if (rep.data) {\n cb(rep.data);\n }\n });\n },\n // 获取产品分类列表树\n productType: function productType(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/device/product/type/getTree\", data).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n AllproductType: function AllproductType(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/device/product/type/getAllTree\", data).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n // 删除产品类型\n removeProductType: function removeProductType(ids) {\n return new Promise(function (resolve, reject) {\n req.remove(portal + \"/device/product/type/?ids=\" + ids).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n }\n};",null]}