{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\reform-fvue\\src\\api\\ReformSituation\\municipal.js","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\api\\ReformSituation\\municipal.js","mtime":1742979107291},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from '@/request.js';\nimport qs from 'qs';\nvar portal = window.context.portal;\nexport default {\n // 指标分页查询\n getIndexTable: function getIndexTable(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationIndex/v1/query\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 新增指标\n addIndex: function addIndex(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationIndex/v1/\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 指标修改\n updateIndex: function updateIndex(data) {\n return new Promise(function (resolve, reject) {\n req.put(portal + \"/bizMunicipalReformSituationIndex/v1/\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 批量启用或禁用指标\n addbatchUpdateIndex: function addbatchUpdateIndex(_ref) {\n var ids = _ref.ids,\n isUse = _ref.isUse;\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationIndex/v1/bulkOperation?ids=\".concat(ids, \"&isUse=\").concat(isUse)).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 启用指标查询\n enableIndicator: function enableIndicator() {\n return new Promise(function (resolve, reject) {\n req.get(portal + \"/bizMunicipalReformSituationIndex/v1/enableIndex\").then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 指标填报\n indexDataEntry: function indexDataEntry(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationFill/v1/\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 指标修改\n indexDataUpdate: function indexDataUpdate(data) {\n return new Promise(function (resolve, reject) {\n req.put(portal + \"/bizMunicipalReformSituationFill/v1/\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 填报数据分页查询\n getTableData: function getTableData(data, isAffirm) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationFill/v1/power/query?isAffirm=\".concat(isAffirm), data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 专项小组分页查询\n getGroupTableData: function getGroupTableData(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationFill/v1/group/query\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 根据id查询详情\n getDetailById: function getDetailById(id) {\n return new Promise(function (resolve, reject) {\n req.get(portal + \"/bizMunicipalReformSituationFill/v1/\".concat(id)).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 根据id修改审核状态\n getUpdateStatus: function getUpdateStatus(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/bizMunicipalReformSituationFill/v1/updateStatus\", data).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 根据id删除数据\n getDeleteByIds: function getDeleteByIds(ids) {\n return new Promise(function (resolve, reject) {\n req.remove(portal + \"/bizMunicipalReformSituationFill/v1/?ids=\".concat(ids)).then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n },\n // 检验当前部门本月是否已填报数据\n depIsEntry: function depIsEntry() {\n return new Promise(function (resolve, reject) {\n req.get(portal + \"/bizMunicipalReformSituationFill/v1/fillAuth\").then(function (res) {\n resolve(res && res.data || []);\n }).catch(function (err) {\n reject(err);\n });\n });\n }\n};",null]}