appCenter.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { postform, postBody } from "../utils/request";
  2. //获得数据列表接口
  3. const getDmsDataList = (params) => {
  4. return postform(systemConfig.dmsDataProxy + "/content/selectContentList", params);
  5. };
  6. //获得类型接口
  7. const getDmsCNameAType = (params) => {
  8. return postform(systemConfig.dmsDataProxy + "/category/selectByCNameAType", params);
  9. };
  10. //获得标签多选框接口
  11. const getDmsSName = (params) => {
  12. return postform(systemConfig.dmsDataProxy + "/select/getSelectBySName", params);
  13. };
  14. //根据模型id查询模型详情接口
  15. const getModelById = (params) => {
  16. return postform(systemConfig.dmsDataProxy + "/model/getModelById", params)
  17. }
  18. //更新内容接口
  19. const updateContent = (params) => {
  20. return postform(systemConfig.dmsDataProxy + "/content/updateContent", params)
  21. }
  22. // 获取内容
  23. const getContentById = (params) => {
  24. return postform(systemConfig.dmsDataProxy + '/content/selectContentById', params);
  25. }
  26. // 获取运行管理页面数据(params:{nowTimes:[],lastTimes:[]})
  27. const getAllYxglDatas = (params) => {
  28. return postBody(
  29. systemConfig.baseServicerPath + "/OperationManagementController/getAllYxglDatas",
  30. params
  31. );
  32. };
  33. // 获取所有服务数据(params:{nowTimes:[]})
  34. const downFileAllServiceDatas = (params) => {
  35. return postBody(
  36. systemConfig.baseServicerPath + "/OperationManagementController/downFileAllServiceDatas",
  37. params
  38. );
  39. };
  40. // 根据时间查询服务调用详情(params:{nowTimes:[]})
  41. const getServiceDataByDate = (params) => {
  42. return postBody(
  43. systemConfig.baseServicerPath + "/OperationManagementController/getServiceDataByDate",
  44. params
  45. );
  46. }
  47. export default {
  48. getDmsDataList,
  49. getDmsCNameAType,
  50. getDmsSName,
  51. updateContent,
  52. getModelById,
  53. getContentById,
  54. getAllYxglDatas,
  55. downFileAllServiceDatas,
  56. getServiceDataByDate
  57. };