Bladeren bron

所有put修改为post,delete修改为get

wukai 7 maanden geleden
bovenliggende
commit
b46efa0bfe
52 gewijzigde bestanden met toevoegingen van 275 en 275 verwijderingen
  1. 4 4
      src/api/alarm/record.js
  2. 4 4
      src/api/biz/mc.js
  3. 4 4
      src/api/biz/msConfig.js
  4. 4 4
      src/api/hl/bd.js
  5. 4 4
      src/api/hl/bdm.js
  6. 4 4
      src/api/hl/bm.js
  7. 4 4
      src/api/hl/hc.js
  8. 4 4
      src/api/hl/hcs.js
  9. 2 2
      src/api/hl/hld.js
  10. 4 4
      src/api/hl/hm.js
  11. 4 4
      src/api/hl/hms.js
  12. 3 3
      src/api/hl/hmsd.js
  13. 6 6
      src/api/hl/ho.js
  14. 4 4
      src/api/hl/hs.js
  15. 4 4
      src/api/hl/id.js
  16. 4 4
      src/api/hl/im.js
  17. 4 4
      src/api/hl/inspection.js
  18. 1 1
      src/api/index/hl.js
  19. 4 4
      src/api/metrics/def.js
  20. 4 4
      src/api/metrics/detail.js
  21. 4 4
      src/api/metrics/rela.js
  22. 4 4
      src/api/metrics/tpl.js
  23. 4 4
      src/api/metrics/type.js
  24. 3 3
      src/api/monitor/cache.js
  25. 7 7
      src/api/monitor/job.js
  26. 3 3
      src/api/monitor/jobLog.js
  27. 3 3
      src/api/monitor/logininfor.js
  28. 1 1
      src/api/monitor/online.js
  29. 3 3
      src/api/monitor/operlog.js
  30. 4 4
      src/api/obj/app.js
  31. 4 4
      src/api/obj/data.js
  32. 6 6
      src/api/obj/metrics.js
  33. 4 4
      src/api/obj/obj.js
  34. 4 4
      src/api/obj/pp.js
  35. 4 4
      src/api/obj/tpl.js
  36. 4 4
      src/api/push/pushConfig.js
  37. 4 4
      src/api/push/pushRecord.js
  38. 4 4
      src/api/risk/analysis.js
  39. 4 4
      src/api/risk/config.js
  40. 4 4
      src/api/risk/model.js
  41. 4 4
      src/api/risk/obj.js
  42. 4 4
      src/api/risk/r5.js
  43. 5 5
      src/api/system/config.js
  44. 5 5
      src/api/system/dept.js
  45. 4 4
      src/api/system/dict/data.js
  46. 5 5
      src/api/system/dict/type.js
  47. 5 5
      src/api/system/menu.js
  48. 5 5
      src/api/system/notice.js
  49. 4 4
      src/api/system/post.js
  50. 66 66
      src/api/system/role.js
  51. 10 10
      src/api/system/user.js
  52. 4 4
      src/api/tool/gen.js

+ 4 - 4
src/api/alarm/record.js

@@ -29,8 +29,8 @@ export function addRecord(data) {
 // 修改告警记录
 export function updateRecord(data) {
     return request({
-        url: '/alarm/record',
-        method: 'put',
+        url: '/alarm/record/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateRecord(data) {
 // 删除告警记录
 export function delRecord(alarmId) {
     return request({
-        url: '/alarm/record/' + alarmId,
-        method: 'delete'
+        url: '/alarm/record/del/' + alarmId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/biz/mc.js

@@ -29,8 +29,8 @@ export function addMc(data) {
 // 修改业务对象自定义指标
 export function updateMc(data) {
     return request({
-        url: '/biz/mc',
-        method: 'put',
+        url: '/biz/mc/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateMc(data) {
 // 删除业务对象自定义指标
 export function delMc(mcId) {
     return request({
-        url: '/biz/mc/' + mcId,
-        method: 'delete'
+        url: '/biz/mc/del/' + mcId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/biz/msConfig.js

@@ -29,8 +29,8 @@ export function addMsConfig(data) {
 // 修改首页指标配置
 export function updateMsConfig(data) {
     return request({
-        url: '/biz/msConfig',
-        method: 'put',
+        url: '/biz/msConfig/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateMsConfig(data) {
 // 删除首页指标配置
 export function delMsConfig(imId) {
     return request({
-        url: '/biz/msConfig/' + imId,
-        method: 'delete'
+        url: '/biz/msConfig/del/' + imId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/bd.js

@@ -29,8 +29,8 @@ export function addBd(data) {
 // 修改业务模型明细
 export function updateBd(data) {
     return request({
-        url: '/hl/bd',
-        method: 'put',
+        url: '/hl/bd/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateBd(data) {
 // 删除业务模型明细
 export function delBd(bizDetailId) {
     return request({
-        url: '/hl/bd/' + bizDetailId,
-        method: 'delete'
+        url: '/hl/bd/del/' + bizDetailId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/bdm.js

@@ -29,8 +29,8 @@ export function addBdm(data) {
 // 修改业务模型健康度指标
 export function updateBdm(data) {
     return request({
-        url: '/hl/bdm',
-        method: 'put',
+        url: '/hl/bdm/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateBdm(data) {
 // 删除业务模型健康度指标
 export function delBdm(bizMetricsId) {
     return request({
-        url: '/hl/bdm/' + bizMetricsId,
-        method: 'delete'
+        url: '/hl/bdm/del/' + bizMetricsId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/bm.js

@@ -29,8 +29,8 @@ export function addBm(data) {
 // 修改业务模型
 export function updateBm(data) {
     return request({
-        url: '/hl/bm',
-        method: 'put',
+        url: '/hl/bm/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateBm(data) {
 // 删除业务模型
 export function delBm(modelId) {
     return request({
-        url: '/hl/bm/' + modelId,
-        method: 'delete'
+        url: '/hl/bm/del/' + modelId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/hl/hc.js

@@ -29,8 +29,8 @@ export function addHc(data) {
 // 修改模型健康度分类
 export function updateHc(data) {
     return request({
-        url: '/hl/hc',
-        method: 'put',
+        url: '/hl/hc/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateHc(data) {
 // 删除模型健康度分类
 export function delHc(hlClassId) {
     return request({
-        url: '/hl/hc/' + hlClassId,
-        method: 'delete'
+        url: '/hl/hc/del/' + hlClassId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/hcs.js

@@ -29,8 +29,8 @@ export function addHcs(data) {
 // 修改模型健康度分类得分
 export function updateHcs(data) {
     return request({
-        url: '/hl/hcs',
-        method: 'put',
+        url: '/hl/hcs/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateHcs(data) {
 // 删除模型健康度分类得分
 export function delHcs(scoreClassId) {
     return request({
-        url: '/hl/hcs/' + scoreClassId,
-        method: 'delete'
+        url: '/hl/hcs/del/' + scoreClassId,
+        method: 'get'
     })
 }
 

+ 2 - 2
src/api/hl/hld.js

@@ -4,8 +4,8 @@ import request from '@/utils/request'
 // 修改健康度明细
 export function updateHld(data) {
     return request({
-        url: '/hl/hld',
-        method: 'put',
+        url: '/hl/hld/edit',
+        method: 'post',
         data
     })
 }

+ 4 - 4
src/api/hl/hm.js

@@ -29,8 +29,8 @@ export function addHm(data) {
 // 修改业务模型健康度指标
 export function updateHm(data) {
     return request({
-        url: '/hl/hm',
-        method: 'put',
+        url: '/hl/hm/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateHm(data) {
 // 删除业务模型健康度指标
 export function delHm(hlMetricsId) {
     return request({
-        url: '/hl/hm/' + hlMetricsId,
-        method: 'delete'
+        url: '/hl/hm/del/' + hlMetricsId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/hl/hms.js

@@ -29,8 +29,8 @@ export function addHms(data) {
 // 修改业务模型健康度指标得分
 export function updateHms(data) {
     return request({
-        url: '/hl/hms',
-        method: 'put',
+        url: '/hl/hms/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateHms(data) {
 // 删除业务模型健康度指标得分
 export function delHms(scoreMetricsId) {
     return request({
-        url: '/hl/hms/' + scoreMetricsId,
-        method: 'delete'
+        url: '/hl/hms/del/' + scoreMetricsId,
+        method: 'get'
     })
 }
 

+ 3 - 3
src/api/hl/hmsd.js

@@ -30,7 +30,7 @@ export function addHmsd(data) {
 export function updateHmsd(data) {
     return request({
         url: '/hl/hmsd',
-        method: 'put',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateHmsd(data) {
 // 删除业务模型健康度得分指标明细
 export function delHmsd(scoreDetailId) {
     return request({
-        url: '/hl/hmsd/' + scoreDetailId,
-        method: 'delete'
+        url: '/hl/hmsd/del/' + scoreDetailId,
+        method: 'get'
     })
 }

+ 6 - 6
src/api/hl/ho.js

@@ -9,8 +9,8 @@ export function hlClassList(hlClassId) {
 
 export function deleteHlClass(hlClassId) {
     return request({
-        url: '/hl/ho/' + hlClassId,
-        method: 'delete',
+        url: '/hl/ho/del/' + hlClassId,
+        method: 'get',
     })
 }
 
@@ -58,8 +58,8 @@ export function addHo(data) {
 // 修改模型健康度对象
 export function updateHo(data) {
     return request({
-        url: '/hl/ho',
-        method: 'put',
+        url: '/hl/ho/edit',
+        method: 'post',
         data: data
     })
 }
@@ -67,8 +67,8 @@ export function updateHo(data) {
 // 删除模型健康度对象
 export function delHo(hlObjId) {
     return request({
-        url: '/hl/ho/' + hlObjId,
-        method: 'delete'
+        url: '/hl/ho/del/' + hlObjId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/hl/hs.js

@@ -29,8 +29,8 @@ export function addHs(data) {
 // 修改健康度分数记录
 export function updateHs(data) {
     return request({
-        url: '/hl/hs',
-        method: 'put',
+        url: '/hl/hs/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateHs(data) {
 // 删除健康度分数记录
 export function delHs(hlScoreId) {
     return request({
-        url: '/hl/hs/' + hlScoreId,
-        method: 'delete'
+        url: '/hl/hs/del/' + hlScoreId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/hl/id.js

@@ -29,8 +29,8 @@ export function addId(data) {
 // 修改业务模型健康度评分明细
 export function updateId(data) {
     return request({
-        url: '/hl/id',
-        method: 'put',
+        url: '/hl/id/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateId(data) {
 // 删除业务模型健康度评分明细
 export function delId(inspectionDetailId) {
     return request({
-        url: '/hl/id/' + inspectionDetailId,
-        method: 'delete'
+        url: '/hl/id/del/' + inspectionDetailId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/im.js

@@ -29,8 +29,8 @@ export function addIm(data) {
 // 修改业务模型健康度指标明细
 export function updateIm(data) {
     return request({
-        url: '/hl/im',
-        method: 'put',
+        url: '/hl/im/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateIm(data) {
 // 删除业务模型健康度指标明细
 export function delIm(autoId) {
     return request({
-        url: '/hl/im/' + autoId,
-        method: 'delete'
+        url: '/hl/im/del/' + autoId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/hl/inspection.js

@@ -29,8 +29,8 @@ export function addInspection(data) {
 // 修改业务模型健康度巡检
 export function updateInspection(data) {
     return request({
-        url: '/hl/inspection',
-        method: 'put',
+        url: '/hl/inspection/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateInspection(data) {
 // 删除业务模型健康度巡检
 export function delInspection(inspectionId) {
     return request({
-        url: '/hl/inspection/' + inspectionId,
-        method: 'delete'
+        url: '/hl/inspection/del/' + inspectionId,
+        method: 'get'
     })
 }

+ 1 - 1
src/api/index/hl.js

@@ -65,7 +65,7 @@ export function msConfigList(){
 export function msConfigDel(ids){
     return request({
         url: '/index/ms/config/del/'+ids,
-        method: 'delete'
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/metrics/def.js

@@ -29,8 +29,8 @@ export function addDef(data) {
 // 修改指标定义
 export function updateDef(data) {
     return request({
-        url: '/metrics/def',
-        method: 'put',
+        url: '/metrics/def/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateDef(data) {
 // 删除指标定义
 export function delDef(metricsId) {
     return request({
-        url: '/metrics/def/' + metricsId,
-        method: 'delete'
+        url: '/metrics/def/del/' + metricsId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/metrics/detail.js

@@ -29,8 +29,8 @@ export function addDetail(data) {
 // 修改模板指标明细
 export function updateDetail(data) {
     return request({
-        url: '/metrics/detail',
-        method: 'put',
+        url: '/metrics/detail/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateDetail(data) {
 // 删除模板指标明细
 export function delDetail(tplDetailId) {
     return request({
-        url: '/metrics/detail/' + tplDetailId,
-        method: 'delete'
+        url: '/metrics/detail/del/' + tplDetailId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/metrics/rela.js

@@ -29,8 +29,8 @@ export function addRela(data) {
 // 修改分类和定义关系
 export function updateRela(data) {
     return request({
-        url: '/metrics/rela',
-        method: 'put',
+        url: '/metrics/rela/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateRela(data) {
 // 删除分类和定义关系
 export function delRela(relaId) {
     return request({
-        url: '/metrics/rela/' + relaId,
-        method: 'delete'
+        url: '/metrics/rela/del/' + relaId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/metrics/tpl.js

@@ -29,8 +29,8 @@ export function addTpl(data) {
 // 修改指标模板
 export function updateTpl(data) {
     return request({
-        url: '/metrics/tpl',
-        method: 'put',
+        url: '/metrics/tpl/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateTpl(data) {
 // 删除指标模板
 export function delTpl(tplId) {
     return request({
-        url: '/metrics/tpl/' + tplId,
-        method: 'delete'
+        url: '/metrics/tpl/del/' + tplId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/metrics/type.js

@@ -29,8 +29,8 @@ export function addType(data) {
 // 修改指标分类
 export function updateType(data) {
     return request({
-        url: '/metrics/type',
-        method: 'put',
+        url: '/metrics/type/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateType(data) {
 // 删除指标分类
 export function delType(typeId) {
     return request({
-        url: '/metrics/type/' + typeId,
-        method: 'delete'
+        url: '/metrics/type/del/' + typeId,
+        method: 'get'
     })
 }

+ 3 - 3
src/api/monitor/cache.js

@@ -36,7 +36,7 @@ export function getCacheValue(cacheName, cacheKey) {
 export function clearCacheName(cacheName) {
   return request({
     url: '/monitor/cache/clearCacheName/' + cacheName,
-    method: 'delete'
+    method: 'get'
   })
 }
 
@@ -44,7 +44,7 @@ export function clearCacheName(cacheName) {
 export function clearCacheKey(cacheKey) {
   return request({
     url: '/monitor/cache/clearCacheKey/' + cacheKey,
-    method: 'delete'
+    method: 'get'
   })
 }
 
@@ -52,6 +52,6 @@ export function clearCacheKey(cacheKey) {
 export function clearCacheAll() {
   return request({
     url: '/monitor/cache/clearCacheAll',
-    method: 'delete'
+    method: 'get'
   })
 }

+ 7 - 7
src/api/monitor/job.js

@@ -29,8 +29,8 @@ export function addJob(data) {
 // 修改定时任务调度
 export function updateJob(data) {
   return request({
-    url: '/monitor/job',
-    method: 'put',
+    url: '/monitor/job/edit',
+    method: 'post',
     data: data
   })
 }
@@ -38,8 +38,8 @@ export function updateJob(data) {
 // 删除定时任务调度
 export function delJob(jobId) {
   return request({
-    url: '/monitor/job/' + jobId,
-    method: 'delete'
+    url: '/monitor/job/del/' + jobId,
+    method: 'get'
   })
 }
 
@@ -51,7 +51,7 @@ export function changeJobStatus(jobId, status) {
   }
   return request({
     url: '/monitor/job/changeStatus',
-    method: 'put',
+    method: 'post',
     data: data
   })
 }
@@ -65,7 +65,7 @@ export function runJob(jobId, jobGroup) {
   }
   return request({
     url: '/monitor/job/run',
-    method: 'put',
+    method: 'post',
     data: data
   })
-}
+}

+ 3 - 3
src/api/monitor/jobLog.js

@@ -12,8 +12,8 @@ export function listJobLog(query) {
 // 删除调度日志
 export function delJobLog(jobLogId) {
   return request({
-    url: '/monitor/jobLog/' + jobLogId,
-    method: 'delete'
+    url: '/monitor/jobLog/del/' + jobLogId,
+    method: 'get'
   })
 }
 
@@ -21,6 +21,6 @@ export function delJobLog(jobLogId) {
 export function cleanJobLog() {
   return request({
     url: '/monitor/jobLog/clean',
-    method: 'delete'
+    method: 'get'
   })
 }

+ 3 - 3
src/api/monitor/logininfor.js

@@ -12,8 +12,8 @@ export function list(query) {
 // 删除登录日志
 export function delLogininfor(infoId) {
   return request({
-    url: '/monitor/logininfor/' + infoId,
-    method: 'delete'
+    url: '/monitor/logininfor/del/' + infoId,
+    method: 'get'
   })
 }
 
@@ -29,6 +29,6 @@ export function unlockLogininfor(userName) {
 export function cleanLogininfor() {
   return request({
     url: '/monitor/logininfor/clean',
-    method: 'delete'
+    method: 'get'
   })
 }

+ 1 - 1
src/api/monitor/online.js

@@ -13,6 +13,6 @@ export function list(query) {
 export function forceLogout(tokenId) {
   return request({
     url: '/monitor/online/' + tokenId,
-    method: 'delete'
+    method: 'get'
   })
 }

+ 3 - 3
src/api/monitor/operlog.js

@@ -12,8 +12,8 @@ export function list(query) {
 // 删除操作日志
 export function delOperlog(operId) {
   return request({
-    url: '/monitor/operlog/' + operId,
-    method: 'delete'
+    url: '/monitor/operlog/del/' + operId,
+    method: 'get'
   })
 }
 
@@ -21,6 +21,6 @@ export function delOperlog(operId) {
 export function cleanOperlog() {
   return request({
     url: '/monitor/operlog/clean',
-    method: 'delete'
+    method: 'get'
   })
 }

+ 4 - 4
src/api/obj/app.js

@@ -29,8 +29,8 @@ export function addApp(data) {
 // 修改应用程序管理
 export function updateApp(data) {
     return request({
-        url: '/obj/app',
-        method: 'put',
+        url: '/obj/app/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateApp(data) {
 // 删除应用程序管理
 export function delApp(appId) {
     return request({
-        url: '/obj/app/' + appId,
-        method: 'delete'
+        url: '/obj/app/del/' + appId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/obj/data.js

@@ -35,8 +35,8 @@ export function addData(data) {
 // 修改业务对象数据接口
 export function updateData(data) {
     return request({
-        url: '/obj/data',
-        method: 'put',
+        url: '/obj/data/edit',
+        method: 'post',
         data: data
     })
 }
@@ -44,7 +44,7 @@ export function updateData(data) {
 // 删除业务对象数据接口
 export function delData(dataId) {
     return request({
-        url: '/obj/data/' + dataId,
-        method: 'delete'
+        url: '/obj/data/del/' + dataId,
+        method: 'get'
     })
 }

+ 6 - 6
src/api/obj/metrics.js

@@ -29,8 +29,8 @@ export function addMetrics(data) {
 // 修改业务对象指标
 export function updateMetrics(data) {
     return request({
-        url: '/obj/metrics',
-        method: 'put',
+        url: '/obj/metrics/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateMetrics(data) {
 // 删除业务对象指标
 export function delMetrics(objMetricsId) {
     return request({
-        url: '/obj/metrics/' + objMetricsId,
-        method: 'delete'
+        url: '/obj/metrics/del/' + objMetricsId,
+        method: 'get'
     })
 }
 
@@ -52,8 +52,8 @@ export function metricsHistory(objMetricsId){
 
 export function putMetrics(data){
     return request({
-        url: '/obj/metrics',
-        method: 'put',
+        url: '/obj/metrics/edit',
+        method: 'post',
         data: data
     })
 }

+ 4 - 4
src/api/obj/obj.js

@@ -29,8 +29,8 @@ export function addObj(data) {
 // 修改业务对象
 export function updateObj(data) {
     return request({
-        url: '/obj/obj',
-        method: 'put',
+        url: '/obj/obj/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updateObj(data) {
 // 删除业务对象
 export function delObj(objId) {
     return request({
-        url: '/obj/obj/' + objId,
-        method: 'delete'
+        url: '/obj/obj/del/' + objId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/obj/pp.js

@@ -29,8 +29,8 @@ export function addPp(data) {
 // 修改业务对象pinpoint组成
 export function updatePp(data) {
     return request({
-        url: '/obj/pp',
-        method: 'put',
+        url: '/obj/pp/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updatePp(data) {
 // 删除业务对象pinpoint组成
 export function delPp(objPpId) {
     return request({
-        url: '/obj/pp/' + objPpId,
-        method: 'delete'
+        url: '/obj/pp/del/' + objPpId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/obj/tpl.js

@@ -29,8 +29,8 @@ export function addTpl(data) {
 // 修改业务对象模板应用
 export function updateTpl(data) {
     return request({
-        url: '/obj/tpl',
-        method: 'put',
+        url: '/obj/tpl/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateTpl(data) {
 // 删除业务对象模板应用
 export function delTpl(objTplId) {
     return request({
-        url: '/obj/tpl/' + objTplId,
-        method: 'delete'
+        url: '/obj/tpl/del/' + objTplId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/push/pushConfig.js

@@ -29,8 +29,8 @@ export function addPushConfig(data) {
 // 修改推送配置
 export function updatePushConfig(data) {
     return request({
-        url: '/push/pushConfig',
-        method: 'put',
+        url: '/push/pushConfig/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,8 +38,8 @@ export function updatePushConfig(data) {
 // 删除推送配置
 export function delPushConfig(pcId) {
     return request({
-        url: '/push/pushConfig/' + pcId,
-        method: 'delete'
+        url: '/push/pushConfig/del/' + pcId,
+        method: 'get'
     })
 }
 

+ 4 - 4
src/api/push/pushRecord.js

@@ -29,8 +29,8 @@ export function addPushRecord(data) {
 // 修改推送记录
 export function updatePushRecord(data) {
     return request({
-        url: '/push/pushRecord',
-        method: 'put',
+        url: '/push/pushRecord/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updatePushRecord(data) {
 // 删除推送记录
 export function delPushRecord(prId) {
     return request({
-        url: '/push/pushRecord/' + prId,
-        method: 'delete'
+        url: '/push/pushRecord/del/' + prId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/risk/analysis.js

@@ -29,8 +29,8 @@ export function addAnalysis(data) {
 // 修改风险分析结果
 export function updateAnalysis(data) {
     return request({
-        url: '/risk/analysis',
-        method: 'put',
+        url: '/risk/analysis/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateAnalysis(data) {
 // 删除风险分析结果
 export function delAnalysis(resultId) {
     return request({
-        url: '/risk/analysis/' + resultId,
-        method: 'delete'
+        url: '/risk/analysis/del/' + resultId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/risk/config.js

@@ -29,8 +29,8 @@ export function addConfig(data) {
 // 修改风险管理指标配置
 export function updateConfig(data) {
     return request({
-        url: '/risk/config',
-        method: 'put',
+        url: '/risk/config/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateConfig(data) {
 // 删除风险管理指标配置
 export function delConfig(hcId) {
     return request({
-        url: '/risk/config/' + hcId,
-        method: 'delete'
+        url: '/risk/config/del/' + hcId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/risk/model.js

@@ -29,8 +29,8 @@ export function addModel(data) {
 // 修改风险管理
 export function updateModel(data) {
     return request({
-        url: '/risk/model',
-        method: 'put',
+        url: '/risk/model/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateModel(data) {
 // 删除风险管理
 export function delModel(riskId) {
     return request({
-        url: '/risk/model/' + riskId,
-        method: 'delete'
+        url: '/risk/model/del/' + riskId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/risk/obj.js

@@ -29,8 +29,8 @@ export function addObj(data) {
 // 修改风险管理对象
 export function updateObj(data) {
     return request({
-        url: '/risk/obj',
-        method: 'put',
+        url: '/risk/obj/edit',
+        method: 'post',
         data: data
     })
 }
@@ -38,7 +38,7 @@ export function updateObj(data) {
 // 删除风险管理对象
 export function delObj(riskObjId) {
     return request({
-        url: '/risk/obj/' + riskObjId,
-        method: 'delete'
+        url: '/risk/obj/del/' + riskObjId,
+        method: 'get'
     })
 }

+ 4 - 4
src/api/risk/r5.js

@@ -23,8 +23,8 @@ export function listConfig(query){
 
 export function updateConfig(data){
     return request({
-        url: '/risk/config',
-        method: 'put',
+        url: '/risk/config/edit',
+        method: 'post',
         data
     })
 }
@@ -38,8 +38,8 @@ export function addConfig(data){
 
 export function deleteConfig(hcIds){
     return request({
-        url: '/risk/config/'+hcIds,
-        method: 'delete'
+        url: '/risk/config/del/'+hcIds,
+        method: 'get'
     })
 }
 

+ 5 - 5
src/api/system/config.js

@@ -37,8 +37,8 @@ export function addConfig(data) {
 // 修改参数配置
 export function updateConfig(data) {
   return request({
-    url: '/system/config',
-    method: 'put',
+    url: '/system/config/edit',
+    method: 'post',
     data: data
   })
 }
@@ -46,8 +46,8 @@ export function updateConfig(data) {
 // 删除参数配置
 export function delConfig(configId) {
   return request({
-    url: '/system/config/' + configId,
-    method: 'delete'
+    url: '/system/config/del/' + configId,
+    method: 'get'
   })
 }
 
@@ -55,6 +55,6 @@ export function delConfig(configId) {
 export function refreshCache() {
   return request({
     url: '/system/config/refreshCache',
-    method: 'delete'
+    method: 'get'
   })
 }

+ 5 - 5
src/api/system/dept.js

@@ -37,8 +37,8 @@ export function addDept(data) {
 // 修改部门
 export function updateDept(data) {
   return request({
-    url: '/system/dept',
-    method: 'put',
+    url: '/system/dept/edit',
+    method: 'post',
     data: data
   })
 }
@@ -46,7 +46,7 @@ export function updateDept(data) {
 // 删除部门
 export function delDept(deptId) {
   return request({
-    url: '/system/dept/' + deptId,
-    method: 'delete'
+    url: '/system/dept/del/' + deptId,
+    method: 'get'
   })
-}
+}

+ 4 - 4
src/api/system/dict/data.js

@@ -37,8 +37,8 @@ export function addData(data) {
 // 修改字典数据
 export function updateData(data) {
   return request({
-    url: '/system/dict/data',
-    method: 'put',
+    url: '/system/dict/data/edit',
+    method: 'post',
     data: data
   })
 }
@@ -46,7 +46,7 @@ export function updateData(data) {
 // 删除字典数据
 export function delData(dictCode) {
   return request({
-    url: '/system/dict/data/' + dictCode,
-    method: 'delete'
+    url: '/system/dict/data/del/' + dictCode,
+    method: 'get'
   })
 }

+ 5 - 5
src/api/system/dict/type.js

@@ -29,8 +29,8 @@ export function addType(data) {
 // 修改字典类型
 export function updateType(data) {
   return request({
-    url: '/system/dict/type',
-    method: 'put',
+    url: '/system/dict/type/edit',
+    method: 'post',
     data: data
   })
 }
@@ -38,8 +38,8 @@ export function updateType(data) {
 // 删除字典类型
 export function delType(dictId) {
   return request({
-    url: '/system/dict/type/' + dictId,
-    method: 'delete'
+    url: '/system/dict/type/del/' + dictId,
+    method: 'get'
   })
 }
 
@@ -47,7 +47,7 @@ export function delType(dictId) {
 export function refreshCache() {
   return request({
     url: '/system/dict/type/refreshCache',
-    method: 'delete'
+    method: 'get'
   })
 }
 

+ 5 - 5
src/api/system/menu.js

@@ -45,8 +45,8 @@ export function addMenu(data) {
 // 修改菜单
 export function updateMenu(data) {
   return request({
-    url: '/system/menu',
-    method: 'put',
+    url: '/system/menu/edit',
+    method: 'post',
     data: data
   })
 }
@@ -54,7 +54,7 @@ export function updateMenu(data) {
 // 删除菜单
 export function delMenu(menuId) {
   return request({
-    url: '/system/menu/' + menuId,
-    method: 'delete'
+    url: '/system/menu/del/' + menuId,
+    method: 'get'
   })
-}
+}

+ 5 - 5
src/api/system/notice.js

@@ -29,8 +29,8 @@ export function addNotice(data) {
 // 修改公告
 export function updateNotice(data) {
   return request({
-    url: '/system/notice',
-    method: 'put',
+    url: '/system/notice/edit',
+    method: 'post',
     data: data
   })
 }
@@ -38,7 +38,7 @@ export function updateNotice(data) {
 // 删除公告
 export function delNotice(noticeId) {
   return request({
-    url: '/system/notice/' + noticeId,
-    method: 'delete'
+    url: '/system/notice/del/' + noticeId,
+    method: 'get'
   })
-}
+}

+ 4 - 4
src/api/system/post.js

@@ -29,8 +29,8 @@ export function addPost(data) {
 // 修改岗位
 export function updatePost(data) {
   return request({
-    url: '/system/post',
-    method: 'put',
+    url: '/system/post/edit',
+    method: 'post',
     data: data
   })
 }
@@ -38,7 +38,7 @@ export function updatePost(data) {
 // 删除岗位
 export function delPost(postId) {
   return request({
-    url: '/system/post/' + postId,
-    method: 'delete'
+    url: '/system/post/del/' + postId,
+    method: 'get'
   })
 }

+ 66 - 66
src/api/system/role.js

@@ -2,118 +2,118 @@ import request from '@/utils/request'
 
 // 查询角色列表
 export function listRole(query) {
-  return request({
-    url: '/system/role/list',
-    method: 'get',
-    params: query
-  })
+    return request({
+        url: '/system/role/list',
+        method: 'get',
+        params: query
+    })
 }
 
 // 查询角色详细
 export function getRole(roleId) {
-  return request({
-    url: '/system/role/' + roleId,
-    method: 'get'
-  })
+    return request({
+        url: '/system/role/' + roleId,
+        method: 'get'
+    })
 }
 
 // 新增角色
 export function addRole(data) {
-  return request({
-    url: '/system/role',
-    method: 'post',
-    data: data
-  })
+    return request({
+        url: '/system/role',
+        method: 'post',
+        data: data
+    })
 }
 
 // 修改角色
 export function updateRole(data) {
-  return request({
-    url: '/system/role',
-    method: 'put',
-    data: data
-  })
+    return request({
+        url: '/system/role/edit',
+        method: 'post',
+        data: data
+    })
 }
 
 // 角色数据权限
 export function dataScope(data) {
-  return request({
-    url: '/system/role/dataScope',
-    method: 'put',
-    data: data
-  })
+    return request({
+        url: '/system/role/dataScope',
+        method: 'post',
+        data: data
+    })
 }
 
 // 角色状态修改
 export function changeRoleStatus(roleId, status) {
-  const data = {
-    roleId,
-    status
-  }
-  return request({
-    url: '/system/role/changeStatus',
-    method: 'put',
-    data: data
-  })
+    const data = {
+        roleId,
+        status
+    }
+    return request({
+        url: '/system/role/changeStatus',
+        method: 'post',
+        data: data
+    })
 }
 
 // 删除角色
 export function delRole(roleId) {
-  return request({
-    url: '/system/role/' + roleId,
-    method: 'delete'
-  })
+    return request({
+        url: '/system/role/del/' + roleId,
+        method: 'get'
+    })
 }
 
 // 查询角色已授权用户列表
 export function allocatedUserList(query) {
-  return request({
-    url: '/system/role/authUser/allocatedList',
-    method: 'get',
-    params: query
-  })
+    return request({
+        url: '/system/role/authUser/allocatedList',
+        method: 'get',
+        params: query
+    })
 }
 
 // 查询角色未授权用户列表
 export function unallocatedUserList(query) {
-  return request({
-    url: '/system/role/authUser/unallocatedList',
-    method: 'get',
-    params: query
-  })
+    return request({
+        url: '/system/role/authUser/unallocatedList',
+        method: 'get',
+        params: query
+    })
 }
 
 // 取消用户授权角色
 export function authUserCancel(data) {
-  return request({
-    url: '/system/role/authUser/cancel',
-    method: 'put',
-    data: data
-  })
+    return request({
+        url: '/system/role/authUser/cancel',
+        method: 'post',
+        data: data
+    })
 }
 
 // 批量取消用户授权角色
 export function authUserCancelAll(data) {
-  return request({
-    url: '/system/role/authUser/cancelAll',
-    method: 'put',
-    params: data
-  })
+    return request({
+        url: '/system/role/authUser/cancelAll',
+        method: 'post',
+        params: data
+    })
 }
 
 // 授权用户选择
 export function authUserSelectAll(data) {
-  return request({
-    url: '/system/role/authUser/selectAll',
-    method: 'put',
-    params: data
-  })
+    return request({
+        url: '/system/role/authUser/selectAll',
+        method: 'post',
+        params: data
+    })
 }
 
 // 根据角色ID查询部门树结构
 export function deptTreeSelect(roleId) {
-  return request({
-    url: '/system/role/deptTree/' + roleId,
-    method: 'get'
-  })
+    return request({
+        url: '/system/role/deptTree/' + roleId,
+        method: 'get'
+    })
 }

+ 10 - 10
src/api/system/user.js

@@ -30,8 +30,8 @@ export function addUser(data) {
 // 修改用户
 export function updateUser(data) {
   return request({
-    url: '/system/user',
-    method: 'put',
+    url: '/system/user/edit',
+    method: 'post',
     data: data
   })
 }
@@ -39,8 +39,8 @@ export function updateUser(data) {
 // 删除用户
 export function delUser(userId) {
   return request({
-    url: '/system/user/' + userId,
-    method: 'delete'
+    url: '/system/user/del/' + userId,
+    method: 'get'
   })
 }
 
@@ -52,7 +52,7 @@ export function resetUserPwd(userId, password) {
   }
   return request({
     url: '/system/user/resetPwd',
-    method: 'put',
+    method: 'post',
     data: data
   })
 }
@@ -65,7 +65,7 @@ export function changeUserStatus(userId, status) {
   }
   return request({
     url: '/system/user/changeStatus',
-    method: 'put',
+    method: 'post',
     data: data
   })
 }
@@ -81,8 +81,8 @@ export function getUserProfile() {
 // 修改用户个人信息
 export function updateUserProfile(data) {
   return request({
-    url: '/system/user/profile',
-    method: 'put',
+    url: '/system/user/profile/edit',
+    method: 'post',
     data: data
   })
 }
@@ -95,7 +95,7 @@ export function updateUserPwd(oldPassword, newPassword) {
   }
   return request({
     url: '/system/user/profile/updatePwd',
-    method: 'put',
+    method: 'post',
     params: data
   })
 }
@@ -121,7 +121,7 @@ export function getAuthRole(userId) {
 export function updateAuthRole(data) {
   return request({
     url: '/system/user/authRole',
-    method: 'put',
+    method: 'post',
     params: data
   })
 }

+ 4 - 4
src/api/tool/gen.js

@@ -28,8 +28,8 @@ export function getGenTable(tableId) {
 // 修改代码生成信息
 export function updateGenTable(data) {
   return request({
-    url: '/tool/gen',
-    method: 'put',
+    url: '/tool/gen/edit',
+    method: 'post',
     data: data
   })
 }
@@ -63,8 +63,8 @@ export function previewTable(tableId) {
 // 删除表数据
 export function delTable(tableId) {
   return request({
-    url: '/tool/gen/' + tableId,
-    method: 'delete'
+    url: '/tool/gen/del/' + tableId,
+    method: 'get'
   })
 }