Browse Source

修改请求

ZaiZai 1 year ago
parent
commit
b266910688
78 changed files with 694 additions and 860 deletions
  1. 1 1
      package.json
  2. 1 1
      public/version.json
  3. 3 3
      src/api/modules/api.js
  4. 9 9
      src/api/modules/data-fill/division.js
  5. 19 19
      src/api/modules/data-fill/query.js
  6. 55 55
      src/api/modules/data-fill/wbs.js
  7. 13 13
      src/api/modules/gauge/bezier.js
  8. 6 6
      src/api/modules/gauge/station.js
  9. 10 10
      src/api/modules/gauge/testdata.js
  10. 3 3
      src/api/modules/ledger/construction.js
  11. 4 4
      src/api/modules/ledger/index.js
  12. 3 4
      src/api/modules/ledger/internal.js
  13. 21 21
      src/api/modules/ledger/query.js
  14. 3 3
      src/api/modules/ledger/weather.js
  15. 4 4
      src/api/modules/menu.js
  16. 4 4
      src/api/modules/oss.js
  17. 14 14
      src/api/modules/other-file/imageData.js
  18. 9 9
      src/api/modules/other-file/projectScanning.js
  19. 26 26
      src/api/modules/other.js
  20. 9 9
      src/api/modules/other/first-item.js
  21. 11 11
      src/api/modules/other/orderServe.js
  22. 11 11
      src/api/modules/patrol/patrol.js
  23. 6 6
      src/api/modules/project.js
  24. 6 6
      src/api/modules/schedule/data.js
  25. 12 12
      src/api/modules/tasks/data.js
  26. 7 7
      src/api/modules/tasks/flow.js
  27. 5 5
      src/api/modules/tasks/message.js
  28. 3 3
      src/api/modules/tasks/sign.js
  29. 5 7
      src/api/modules/tentative/collect/month.js
  30. 7 7
      src/api/modules/tentative/collect/test.js
  31. 4 4
      src/api/modules/tentative/detect/index.js
  32. 30 30
      src/api/modules/tentative/detect/test.js
  33. 5 5
      src/api/modules/tentative/detect/third.js
  34. 8 8
      src/api/modules/tentative/device/approach.js
  35. 6 6
      src/api/modules/tentative/device/employ.js
  36. 6 6
      src/api/modules/tentative/device/overhaul.js
  37. 7 7
      src/api/modules/tentative/index.js
  38. 3 3
      src/api/modules/tentative/laboratory/print.js
  39. 4 4
      src/api/modules/tentative/laboratory/user.js
  40. 9 9
      src/api/modules/tentative/material/approach.js
  41. 11 11
      src/api/modules/tentative/material/sampling.js
  42. 4 4
      src/api/modules/tentative/parameter/compactness.js
  43. 11 11
      src/api/modules/tentative/parameter/container.js
  44. 4 4
      src/api/modules/tentative/parameter/density.js
  45. 7 7
      src/api/modules/tentative/parameter/sieve.js
  46. 12 12
      src/api/modules/user.js
  47. 12 12
      src/api/modules/userInfo/index.js
  48. 0 23
      src/api/request/header.js
  49. 0 85
      src/api/request/httpApi.js
  50. 29 58
      src/api/request/index.js
  51. 2 2
      src/components/plugins/table-form/hc-form-upload.vue
  52. 2 2
      src/global/components/hc-uploads/index.vue
  53. 2 2
      src/plugins/HTableForm.js
  54. 3 9
      src/store/modules/user.js
  55. 6 21
      src/utils/tools.js
  56. 2 2
      src/views/data-fill/collapse-form/index.vue
  57. 5 5
      src/views/data-fill/components/HcUpload.vue
  58. 29 28
      src/views/data-fill/components/division/HcUpload.vue
  59. 3 3
      src/views/data-fill/wbs.vue
  60. 4 4
      src/views/gauge/bezier.vue
  61. 2 2
      src/views/gauge/station.vue
  62. 2 2
      src/views/gauge/testdata.vue
  63. 3 14
      src/views/login/index.vue
  64. 31 30
      src/views/other-file/components/HcFileUpload.vue
  65. 31 30
      src/views/other-file/components/HcFileUpload1.vue
  66. 25 23
      src/views/other/components/HcUpload.vue
  67. 4 4
      src/views/patrol/add.vue
  68. 2 2
      src/views/tentative/detect/components/FormItemUpload.vue
  69. 2 2
      src/views/tentative/detect/components/HcDragUpload.vue
  70. 2 2
      src/views/tentative/detect/components/HcUpload.vue
  71. 2 2
      src/views/tentative/detect/components/ListItem.vue
  72. 29 28
      src/views/tentative/device/components/HcDragUpload.vue
  73. 2 2
      src/views/tentative/laboratory/components/FormItemUpload.vue
  74. 2 2
      src/views/tentative/material/components/FormItemUpload.vue
  75. 4 4
      src/views/tentative/material/components/HcDragUpload.vue
  76. 25 25
      src/views/tentative/parameter/components/HcDragUpload.vue
  77. 2 2
      src/views/user/index.vue
  78. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
         "dayjs": "^1.11.10",
         "echarts": "^5.5.0",
         "element-plus": "^2.6.1",
-        "hc-vue3-ui": "^3.4.0",
+        "hc-vue3-ui": "^3.4.6",
         "js-base64": "^3.7.7",
         "js-fast-way": "0.4.6",
         "js-md5": "^0.8.3",

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240312095858"
+  "value": "20240313174411"
 }

+ 3 - 3
src/api/modules/api.js

@@ -1,8 +1,8 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 
 export default {
     async hcPostApi(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/' + form.url,
             method: 'post',
             params: form.params,
@@ -10,7 +10,7 @@ export default {
         }, msg)
     },
     async hcGetApi(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/' + form.url,
             params: form.params,
             method: 'get',

+ 9 - 9
src/api/modules/data-fill/division.js

@@ -1,10 +1,10 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     //获取关联的合同段树
     async getContractInfoTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/tree2',
             method: 'get',
             params: form,
@@ -12,14 +12,14 @@ export default {
     },
     //获取关联的工程用途部位树
     async getengineerInfoTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/tree',
             method: 'get',
             params: form,
         }, msg)
     },
     async getengineerInfoTree1(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/trial/relation/tree',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //未识别合同段划分节点 手动关联
     async setImportRelation(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/import-relation',
             method: 'post',
             data: form,
@@ -35,7 +35,7 @@ export default {
     },
     //标记/取消隐蔽工程节点
     async concealedWorksNnode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/concealed-works-node',
             method: 'get',
             params: form,
@@ -43,7 +43,7 @@ export default {
     },
     //项目级懒加载节点树形结构-表单类型划分树
     async tabTypeLazyTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/tab-Type-lazy-tree',
             method: 'get',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //添加合同段节点树
     async addWbsContractInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/add-wbs-contract-info',
             method: 'post',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //删除合同段节点
     async removeWbsTreeContract(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/remove',
             method: 'post',
             params: form,

+ 19 - 19
src/api/modules/data-fill/query.js

@@ -1,17 +1,17 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     //获取当前合同段的划分树
     // async queryWbsTreeData(form, msg = true) {
-    //     return httpApi({
+    //     return HcApi({
     //         url: '/api/blade-business/informationWriteQuery/queryContractWbsTreeByContractIdAndType',
     //         method: 'get',
     //         params: form,
     //     }, msg)
     // },
     async queryWbsTreeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //根据合同段ID获取所有填报人
     async getFileUser(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/getFileUserByContractId',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //搜索获取树
     async getTreeNodeByQueryValueAndContractId(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/getTreeNodeByQueryValueAndContractId',
             method: 'get',
             params: form,
@@ -35,14 +35,14 @@ export default {
     },
     //获取当前合同段下所有的上报批次
     // async getReportNumber(form, msg = true) {
-    //     return httpApi({
+    //     return HcApi({
     //         url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
     //         method: 'get',
     //         params: form
     //     }, msg)
     // },
     async getReportNumber(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: 'api/blade-business/task/query-batch-list-two',
             method: 'get',
             params: form,
@@ -50,7 +50,7 @@ export default {
     },
     //获取流程状态分类和文件类型分类
     async getDictBizClassify(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/getDictBizClassifyByCode',
             method: 'get',
             params: form,
@@ -58,7 +58,7 @@ export default {
     },
     //分页数据
     async getPageData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             //url: '/api/blade-business/informationWriteQuery/page',
             url: '/api/blade-user/wbs/informationWriteQuery/page',
             method: 'post',
@@ -67,7 +67,7 @@ export default {
     },
     //批量废除
     async batchAbolish(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/batchAbolish',
             method: 'post',
             params: form,
@@ -75,7 +75,7 @@ export default {
     },
     //批量下载
     async batchDownloadFileToZip(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/batchDownloadFileToZip',
             method: 'post',
             params: form,
@@ -84,7 +84,7 @@ export default {
     },
     //批量打印
     async batchPrint(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/batchPrint',
             method: 'post',
             params: form,
@@ -92,7 +92,7 @@ export default {
     },
     //本地验签
     async localVerify(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/localVerify',
             method: 'post',
             params: form,
@@ -100,7 +100,7 @@ export default {
     },
     //在线验签
     async onlineVerify(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/onlineVerify',
             method: 'post',
             params: form,
@@ -108,7 +108,7 @@ export default {
     },
     //输入框查询合同段树
     async searchContractTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/searchContractTree',
             method: 'get',
             params: form,
@@ -116,7 +116,7 @@ export default {
     },
     //获取合同段树所有数据
     async getTreeall(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/tree-all',
             method: 'get',
             params: form,
@@ -124,7 +124,7 @@ export default {
     },
     //获取监理合同段树所有数据
     async getTreeallJl(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/tree-all-jl',
             method: 'get',
             params: form,
@@ -132,7 +132,7 @@ export default {
     },
     //获取流程状态
     async getFirstTaskStatus(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-task-type-status?typeOrStatus=first_task_status',
             method: 'get',
             params: form,
@@ -140,7 +140,7 @@ export default {
     },
     //一键重签
     async reSigningEVisa(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/reSigningEVisa',
             method: 'post',
             data: form,

+ 55 - 55
src/api/modules/data-fill/wbs.js

@@ -1,11 +1,11 @@
-import { httpApi } from '../../request/httpApi'
-import { getTokenHeader } from '~src/api/request/header'
+import { HcApi } from '../../request/index'
+import { getHeader } from 'hc-vue3-ui'
 
 export default {
 
     //新增或删除 合同段划分树首件关联
     async wbsTreeFirstSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/treeContractFirst/saveOrDelete',
             method: 'post',
             params: form,
@@ -13,7 +13,7 @@ export default {
     },
     //修改树节点
     async wbsTreeUpdateNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/updateContractNodeParameter',
             method: 'post',
             params: form,
@@ -21,14 +21,14 @@ export default {
     },
     //导图结构树节点查询
     // async queryMappingStructureTree(form, msg = true) {
-    //     return httpApi({
+    //     return HcApi({
     //         url: '/api/blade-business/informationWriteQuery/queryMappingStructureTree',
     //         method: 'get',
     //         params: form,
     //     }, msg)
     // },
     async queryMappingStructureTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
             method: 'get',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //保存或修改节点上传的图纸记录
     async saveContractTreeDrawings(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractTreeDrawings/saveContractTreeDrawings',
             method: 'post',
             params: form,
@@ -44,7 +44,7 @@ export default {
     },
     //删除节点
     async removeContractTreeNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/removeContractTreeNode',
             method: 'post',
             params: form,
@@ -52,7 +52,7 @@ export default {
     },
     //查询当前节点下所有元素表信息
     async searchNodeAllTable(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/search-node-tables',
             method: 'get',
             params: form,
@@ -60,7 +60,7 @@ export default {
     },
     //清表生成html
     async getExcelHtml(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-excel-html_buss',
             method: 'get',
             params: form,
@@ -68,7 +68,7 @@ export default {
     },
     //获取按键切换输入框的key列表
     async getHtmlBussCols(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-html-buss-cols',
             method: 'get',
             params: form,
@@ -76,7 +76,7 @@ export default {
     },
     //填报页面数据保存
     async saveExcelBussData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/save_buss_data',
             method: 'post',
             data: form,
@@ -84,14 +84,14 @@ export default {
     },
     //懒加载项目级工程划分树
     async queryWbsTreePrivateByProjectIdAndId(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryWbsTreePrivateByProjectIdAndId',
             method: 'post',
             params: form,
         }, msg)
     },
     async queryWbsTreeContractByContractIdAndId(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/add-node-tree',
             method: 'get',
             params: form,
@@ -99,7 +99,7 @@ export default {
     },
     //新增自定义节点项目全加载树
     async queryPriateTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-user/wbs/private/tree',
             method: 'get',
             params: form,
@@ -107,7 +107,7 @@ export default {
     },
     //新增节点及其子节点
     async saveContractTreeNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/saveContractTreeNode',
             method: 'post',
             data: form,
@@ -115,7 +115,7 @@ export default {
     },
     //新增自定义节点
     async saveCustomAddContractNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/customAddContractNode',
             method: 'post',
             data: form,
@@ -123,7 +123,7 @@ export default {
     },
     //复制节点
     async copyContractTreeNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/copyContractTreeNode',
             method: 'post',
             data: form,
@@ -131,7 +131,7 @@ export default {
     },
     //自定义排序
     async diySortTreeNode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/diySort',
             method: 'post',
             data: form,
@@ -139,7 +139,7 @@ export default {
     },
     //获取表单数据
     async getBussDataInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-dataInfo',
             method: 'get',
             params: form,
@@ -147,7 +147,7 @@ export default {
     },
     //查询节点状态
     async queryNodeStatus(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryNodeStatus',
             method: 'post',
             params: form,
@@ -155,7 +155,7 @@ export default {
     },
     //查询监理节点状态
     async queryNodeStatusJl(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryNodeStatus-jl',
             method: 'post',
             params: form,
@@ -163,7 +163,7 @@ export default {
     },
     //查询首件节点状态
     async queryNodeStatusSj(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryNodeStatus-sj',
             method: 'post',
             params: form,
@@ -171,7 +171,7 @@ export default {
     },
     //查询试验上报按钮状态
     async queryNodeStatusTrial(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryNodeStatus-trial',
             method: 'post',
             params: form,
@@ -179,7 +179,7 @@ export default {
     },
     //单个废除
     async abolishOne(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/abolishOne',
             method: 'post',
             params: form,
@@ -188,7 +188,7 @@ export default {
 
     //单个废除-首件
     async abolishOneSJ(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/abolishOne-sj',
             method: 'post',
             params: form,
@@ -197,7 +197,7 @@ export default {
 
     //隐藏表单
     async showBussTab(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/show-buss-tab',
             method: 'get',
             params: form,
@@ -205,7 +205,7 @@ export default {
     },
     //单表pdf预览
     async getBussPdfInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-pdfInfo',
             method: 'get',
             params: form,
@@ -213,7 +213,7 @@ export default {
     },
     //表单复制
     async copeBussTab(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/cope-buss-tab',
             method: 'get',
             params: form,
@@ -221,7 +221,7 @@ export default {
     },
     //多表预览
     async getBussPdfs(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-pdfs',
             method: 'get',
             params: form,
@@ -229,7 +229,7 @@ export default {
     },
     //获取附件列表
     async getBussFileList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/tablefile/get-buss-fileList',
             method: 'get',
             params: form,
@@ -237,7 +237,7 @@ export default {
     },
    //获取附件添加列表
     async selectTableFileListByTen(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/tablefile/selectTableFileListByTen',
             method: 'get',
             params: form,
@@ -245,14 +245,14 @@ export default {
     },
     //逻辑附件添加
     async delTabById(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/tablefile/delTabById',
             method: 'post',
             params: form,
         }, msg)
     },
     async getBussFileList1(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/file-list',
             method: 'get',
             params: form,
@@ -260,7 +260,7 @@ export default {
     },
     //逻辑删除
     async removeBussFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/tablefile/remove',
             method: 'post',
             params: form,
@@ -268,7 +268,7 @@ export default {
     },
     //删除试验文件
     async removeBussFile1(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/tablefile/remove-trial',
             method: 'post',
             params: form,
@@ -276,7 +276,7 @@ export default {
     },
     //用户端删除复制信息表
     async removeBussTabInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
             method: 'post',
             params: form,
@@ -284,7 +284,7 @@ export default {
     },
     //复制节点填报数据
     async copyContractNodeSubmitBusinessData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
             method: 'post',
             data: form,
@@ -292,7 +292,7 @@ export default {
     },
     //输入框查询合同段树
     async searchContractTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/searchContractTree',
             method: 'get',
             params: form,
@@ -300,7 +300,7 @@ export default {
     },
     //设计值计算
     async queryFormulaRange(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/formula/range',
             method: 'get',
             params: form,
@@ -308,7 +308,7 @@ export default {
     },
     //获取文件题名
     async queryDocumentTitle(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
             method: 'get',
             params: form,
@@ -316,7 +316,7 @@ export default {
     },
     //查询公式参数面板
     async queryPanel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/formula/panel',
             method: 'get',
             params: form,
@@ -325,7 +325,7 @@ export default {
     //保存公式参数
 
     async savePanel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/formula/panel-save',
             method: 'post',
             data: form,
@@ -333,7 +333,7 @@ export default {
     },
     //同步质检资料
     async syncTbadata(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
             method: 'post',
             params: form,
@@ -341,7 +341,7 @@ export default {
     },
     //获取表单详情
     async getWbsContractById(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
             method: 'post',
             params: form,
@@ -349,7 +349,7 @@ export default {
     },
     //查询当前节点下所有表的附件信息
     async tablesAndFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
             method: 'get',
             params: form,
@@ -357,7 +357,7 @@ export default {
     },
     //清除表单信息
     async rmTabdataInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/rm-tabdata-info',
             method: 'get',
             params: form,
@@ -365,7 +365,7 @@ export default {
     },
     //下载模板
     async downloadExcel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/download-excel',
             method: 'get',
             responseType: 'blob',
@@ -374,7 +374,7 @@ export default {
     },
     //导入模板
     async importExcel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsTreeContract/import-excel',
             method: 'post',
             data: form,
@@ -382,7 +382,7 @@ export default {
     },
     //计算含水率
     async calculateWater(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/mixProportion/calculateWater',
             method: 'post',
             data: form,
@@ -391,7 +391,7 @@ export default {
 
     //批量保存
     async save_nodeId(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/save_nodeId',
             method: 'post',
             params: form,
@@ -399,7 +399,7 @@ export default {
     },
     //获取图纸
     async getTreeDrawings(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractTreeDrawings/getTreeDrawings',
             method: 'get',
             params: form,
@@ -407,7 +407,7 @@ export default {
     },
     //保存用户填报历史
     async saveUserHistory(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/userHistory/saveUserHistory',
             method: 'post',
             data: form,
@@ -415,7 +415,7 @@ export default {
     },
     //回到上次填报历史
     async getUserHistory(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/userHistory/getUserHistory',
             method: 'get',
             params: form,
@@ -423,7 +423,7 @@ export default {
     },
     //评定汇总
     async evaluateTotal(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/formula/evaluate',
             method: 'get',
             params: form,

+ 13 - 13
src/api/modules/gauge/bezier.js

@@ -1,10 +1,10 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     //获取平曲线数据
     async queryListData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/list',
             method: 'get',
             params: form,
@@ -12,7 +12,7 @@ export default {
     },
     //获取片段列表
     async queryPartList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/part/list',
             method: 'get',
             params: form,
@@ -20,7 +20,7 @@ export default {
     },
     //新增片段
     async savePartAdd(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/part/add',
             method: 'post',
             data: form,
@@ -28,7 +28,7 @@ export default {
     },
     //编辑片段
     async savePartUpdate(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/part/update',
             method: 'post',
             data: form,
@@ -36,7 +36,7 @@ export default {
     },
     //删除片段
     async delPartData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/part/del',
             method: 'post',
             params: form,
@@ -44,7 +44,7 @@ export default {
     },
     //获取新增线元信息的初始数据
     async getNextMileagexy(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/getNextMileagexy',
             method: 'post',
             data: form,
@@ -52,7 +52,7 @@ export default {
     },
     //里程转换坐标
     async queryPsChange(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/pschange',
             method: 'get',
             params: form,
@@ -60,7 +60,7 @@ export default {
     },
     //新增保存线元
     async saveAddMileage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/add',
             method: 'post',
             data: form,
@@ -68,7 +68,7 @@ export default {
     },
     //编辑保存线元
     async saveUpdateMileage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/update',
             method: 'post',
             data: form,
@@ -76,7 +76,7 @@ export default {
     },
     //删除线元
     async saveDelMileage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/del',
             method: 'post',
             params: form,
@@ -84,7 +84,7 @@ export default {
     },
     //生成坐标
     async getZzList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/getZzList',
             method: 'get',
             params: form,
@@ -92,7 +92,7 @@ export default {
     },
     //导出数据
     async getExportExcel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/mileage/exportExcel',
             method: 'get',
             params: form,

+ 6 - 6
src/api/modules/gauge/station.js

@@ -1,10 +1,10 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     //获取数据
     async queryListData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/dap/list',
             method: 'get',
             params: form,
@@ -12,7 +12,7 @@ export default {
     },
     //新增
     async addSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/dap/add',
             method: 'post',
             data: form,
@@ -20,7 +20,7 @@ export default {
     },
     //编辑
     async updateSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/dap/update',
             method: 'post',
             data: form,
@@ -28,7 +28,7 @@ export default {
     },
     //删除
     async delData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/dap/del',
             method: 'post',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //导出数据
     async getExportExcel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/dap/exportExcel',
             method: 'get',
             params: form,

+ 10 - 10
src/api/modules/gauge/testdata.js

@@ -1,10 +1,10 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     //获取数据原材
     async queryListData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/rawMaterials/page',
             method: 'get',
             params: form,
@@ -12,7 +12,7 @@ export default {
     },
     //新增
     async addSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/rawMaterials/save',
             method: 'post',
             data: form,
@@ -20,7 +20,7 @@ export default {
     },
     //编辑
     async updateSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/rawMaterials/update',
             method: 'post',
             data: form,
@@ -28,7 +28,7 @@ export default {
     },
       //删除
     async delData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/rawMaterials/remove',
             method: 'get',
             params: form,
@@ -36,7 +36,7 @@ export default {
    },
   //导入
   async importRawMaterialsInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/rawMaterials/importRawMaterialsInfo',
             method: 'post',
             data: form,
@@ -44,7 +44,7 @@ export default {
   },
   //配比分页
   async queryListProp(form, msg = true) {
-    return httpApi({
+    return HcApi({
         url: '/api/blade-manager/mixProportion/page',
         method: 'get',
         params: form,
@@ -52,7 +52,7 @@ export default {
   },
       //配合比新增
   async matchaddSave(form, msg = true) {
-    return httpApi({
+    return HcApi({
         url: '/api/blade-manager/mixProportion/save',
         method: 'post',
         data: form,
@@ -60,7 +60,7 @@ export default {
 },
 //配合比编辑
 async matchupdateSave(form, msg = true) {
-    return httpApi({
+    return HcApi({
         url: '/api/blade-manager/mixProportion/update',
         method: 'post',
         data: form,
@@ -68,7 +68,7 @@ async matchupdateSave(form, msg = true) {
 },
     //配合比删除
  async matchdelData(form, msg = true) {
-    return httpApi({
+    return HcApi({
         url: '/api/blade-manager/mixProportion/remove',
         method: 'get',
         params: form,

+ 3 - 3
src/api/modules/ledger/construction.js

@@ -1,16 +1,16 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
 
     async queryConstructionPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/constructionLedger/list',
             method: 'post',
             data: form,
         }, msg)
     },
     async updateConstructionPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/constructionLedger/update',
             method: 'post',
             data: form,

+ 4 - 4
src/api/modules/ledger/index.js

@@ -1,14 +1,14 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 
-export const queryTreeList = (form, msg = true) => httpApi({
+export const queryTreeList = (form, msg = true) => HcApi({
     url: '/api/blade-business/informationWriteQuery/queryContractWbsTreeByContractIdAndType',
     method: 'get',
     params: form,
 }, msg)
 //影像资料树查询
-export const queryTreeList1 = (form, msg = true) => httpApi({
+export const queryTreeList1 = (form, msg = true) => HcApi({
     url: '/api/blade-manager/wbsTreeContract/image/lazyQueryContractWbsTree',
     method: 'get',
     params: form,
-}, msg)
+}, msg)

+ 3 - 4
src/api/modules/ledger/internal.js

@@ -1,9 +1,8 @@
-import { httpApi } from '../../request/httpApi'
-
+import { HcApi } from '../../request/index'
 
 export default {
     async queryInternalPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/neiYeController/queryCurrentNodeNeiYeLedger',
             method: 'post',
             data: form,
@@ -11,7 +10,7 @@ export default {
     },
     //获取当前合同段的上报批次
     async queryBatchList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: 'api/blade-business/task/query-batch-list-two',
             method: 'get',
             params: form,

+ 21 - 21
src/api/modules/ledger/query.js

@@ -1,10 +1,10 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 
 export default {
     //获取当前合同段下的日志类型
     async queryLogList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/queryCurrentContractLogList',
             method: 'get',
             params: form,
@@ -12,7 +12,7 @@ export default {
     },
     //获取当前日志类型的填报人
     async queryFillUser(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/queryFillUser',
             method: 'get',
             params: form,
@@ -20,7 +20,7 @@ export default {
     },
     //施工日志分页
     async constructionLogPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/constructionLogPage',
             method: 'post',
             data: form,
@@ -28,7 +28,7 @@ export default {
     },
     //批量废除
     async batchAbolish(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/batchAbolish',
             method: 'post',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //获取合同段当前日志节点下的填报日期记录
     async getSubmitLogDateList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/getSubmitLogDateList',
             method: 'post',
             params: form,
@@ -44,14 +44,14 @@ export default {
     },
     //清表生成html
     // async getExcelHtml(form, msg = true) {
-    //     return httpApi({
+    //     return HcApi({
     //         url: '/api/blade-manager/exceltab/get-excel-html',
     //         method: 'get',
     //         params: form
     //     }, msg);
     // },
     async getExcelHtml(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-excel-html-two',
             method: 'get',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //获取表单数据
     async getBussDataInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-the-log-business-data',
             method: 'get',
             params: form,
@@ -67,7 +67,7 @@ export default {
     },
     //获取表单数据
     async getTheLogBusinessData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-the-log-business-data',
             method: 'get',
             params: form,
@@ -75,7 +75,7 @@ export default {
     },
     //填报页面数据保存
     async saveExcelBussData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/save_log_first_buss_data',
             method: 'post',
             data: form,
@@ -83,7 +83,7 @@ export default {
     },
     //单表pdf预览
     async getBussPdfInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-the-log-pdfInfo',
             method: 'get',
             params: form,
@@ -91,7 +91,7 @@ export default {
     },
     //获取当前日志资料关联的工序节点信息
     async queryCurrentLogSelectProcessList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/queryCurrentLogSelectProcessList',
             method: 'post',
             params: form,
@@ -99,7 +99,7 @@ export default {
     },
     //获取当前资料的任务状态
     async checkTheLogTaskStatus(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/checkTheLogTaskStatus',
             method: 'get',
             params: form,
@@ -107,7 +107,7 @@ export default {
     },
     //预览、打印
     async theLogPreviewAndPrint(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/theLogPreviewAndPrint',
             method: 'post',
             data: form,
@@ -115,7 +115,7 @@ export default {
     },
     //废除
     async theLogOneAbolish(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/oneAbolish',
             method: 'get',
             params: form,
@@ -123,7 +123,7 @@ export default {
     },
     //删除
     async theLogRemoveByIds(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/removeByIds',
             method: 'post',
             data: form,
@@ -131,7 +131,7 @@ export default {
     },
     //获取当前合同段下本日志节点的填报资料日期树
     async queryReportLogTimeTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/queryReportLogTimeTree',
             method: 'get',
             params: form,
@@ -139,7 +139,7 @@ export default {
     },
     //获取填报记录
     async queryLogTimeTreeList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/contractLog/queryLogList',
             method: 'get',
             params: form,
@@ -147,7 +147,7 @@ export default {
     },
     //复制任意时间
     async copyTheLogBusinessData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/copy-the-log-business-data',
             method: 'get',
             params: form,
@@ -156,7 +156,7 @@ export default {
 
     //1、删除施工日志对应的表数据记录信息接口POST:/api/blade-manager/exceltab/removeLogTab
     async removeLogTab(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/removeLogTab',
             method: 'post',
             params: form,

+ 3 - 3
src/api/modules/ledger/weather.js

@@ -1,15 +1,15 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     async queryWeatherPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/weather/queryWeatherPage',
             method: 'get',
             params: form,
         }, msg)
     },
     async updateWeatherById(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/weather/updateWeatherById',
             method: 'post',
             data: form,

+ 4 - 4
src/api/modules/menu.js

@@ -1,7 +1,7 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 import website from '~src/config/index'
 
-export const getRoutes = (msg = true) => httpApi({
+export const getRoutes = (msg = true) => HcApi({
     url: '/api/blade-system/menu/routes',
     method: 'get',
     params: {
@@ -9,12 +9,12 @@ export const getRoutes = (msg = true) => httpApi({
     },
 }, msg)
 
-export const getButtons = (msg = true) => httpApi({
+export const getButtons = (msg = true) => HcApi({
     url: '/api/blade-system/menu/buttons',
     method: 'get',
 }, msg)
 
-export const getAazyList = (form, msg = true) => httpApi({
+export const getAazyList = (form, msg = true) => HcApi({
     url: '/api/blade-system/menu/lazy-list',
     method: 'get',
     params: form,

+ 4 - 4
src/api/modules/oss.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 
 export default {
     //上传文件
     async putFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-resource/oss/endpoint/put-file',
             method: 'post',
             data: form,
@@ -11,7 +11,7 @@ export default {
     },
     //移除文件
     async removeFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-resource/oss/endpoint/remove-file',
             method: 'post',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //上传文件
     async uploadFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-resource/oss/endpoint/upload-file',
             method: 'post',
             data: form,

+ 14 - 14
src/api/modules/other-file/imageData.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取类型列表(类型主页)
     async getClassIfyList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/getClassIfyList',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //获取当前项目类型的显隐配置列表
     async getClassifyShowConfigList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/getClassifyShowConfigList',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //保存客户端分类显隐记录
     async saveClassifyShowConfig(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/saveClassifyShowConfig',
             method: 'post',
             data: form,
@@ -27,7 +27,7 @@ export default {
     },
     //获取时间结构
     async getYearDateTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/getYearDateTree',
             method: 'get',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //获取当前合同段的工程划分
     async getWbsTreeList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/queryContractWbsTreeByContractIdAndType',
             method: 'get',
             params: form,
@@ -43,7 +43,7 @@ export default {
     },
     //获取分页数据
     async getPageList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/page',
             method: 'get',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //新增影音资料信息
     async addImageclassifyFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/save',
             method: 'post',
             data: form,
@@ -59,7 +59,7 @@ export default {
     },
     //修改影音资料信息
     async updateImageclassifyFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/update',
             method: 'post',
             data: form,
@@ -67,7 +67,7 @@ export default {
     },
     //详情
     async queryById(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/queryById',
             method: 'post',
             params: form,
@@ -75,7 +75,7 @@ export default {
     },
     //影音资料信息逻辑删除
     async removeImageclassifyFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/remove',
             method: 'post',
             params: form,
@@ -83,7 +83,7 @@ export default {
     },
     //影音资料览(图片)
     async imageClassificationFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/preview',
             method: 'post',
             params: form,
@@ -91,7 +91,7 @@ export default {
     },
     //下载
     async batchDownloadFileToZip(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/batchDownloadFileToZip',
             method: 'post',
             params: form,
@@ -100,7 +100,7 @@ export default {
     },
     //接口获取题名
     async getFileTitleName(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/imageClassificationFile/getFileTitleName',
             method: 'get',
             params: form,

+ 9 - 9
src/api/modules/other-file/projectScanning.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取归档划分树
     async getClassIfyList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/tree',
             method: 'post',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //分页
     async getarchiveFilePage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/page',
             method: 'post',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //批量新增
     async batchUploadSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/batchSave',
             method: 'post',
             data: form,
@@ -27,7 +27,7 @@ export default {
     },
     //逻辑删除
     async removeArchiveFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/remove',
             method: 'post',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //批量编辑
     async batchEditSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/batchEdit',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //批量废除
     async batchAbolishSave(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/batchAbolish',
             method: 'post',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //批量下载
     async batchDownloadFileToZip(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/batchDownloadFileToZip',
             method: 'post',
             params: form,
@@ -60,7 +60,7 @@ export default {
     },
     //批量认证
     async batchCertification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/archiveFile/batchCertification',
             method: 'post',
             data: form,

+ 26 - 26
src/api/modules/other.js

@@ -1,64 +1,64 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 
-export const ApprovalApi = (url, form, msg = true) => httpApi({
+export const ApprovalApi = (url, form, msg = true) => HcApi({
     url: '/api/blade-business/' + url,
     method: 'post',
     data: form,
 }, msg)
 
-export const batchApproval = (form, msg = true) => httpApi({
+export const batchApproval = (form, msg = true) => HcApi({
     url: '/api/blade-business/archiveFile/batchApproval',
     method: 'post',
     data: form,
 }, msg)
 
 //短信验证
-export const sendNotice = (form, msg = true) => httpApi({
+export const sendNotice = (form, msg = true) => HcApi({
     url: '/api/blade-business/task/send-notice',
     method: 'post',
     params: form,
 }, msg)
 
 //短信过期时间
-export const saveSmsTimeout = (form, msg = true) => httpApi({
+export const saveSmsTimeout = (form, msg = true) => HcApi({
     url: '/api/blade-business/task/save-sms-timeout',
     method: 'get',
     params: form,
 }, msg)
 
 //用户配置保存
-export const userConfigSave = (form, msg = true) => httpApi({
+export const userConfigSave = (form, msg = true) => HcApi({
     url: '/api/blade-business/defaultConfig/saveOrUpdate',
     method: 'post',
     data: form,
 }, msg)
 
 //用户配置详情
-export const userConfigInfo = (form, msg = true) => httpApi({
+export const userConfigInfo = (form, msg = true) => HcApi({
     url: '/api/blade-business/defaultConfig/detail',
     method: 'get',
     params: form,
 }, msg)
 
 //获取上报批次
-// export const getReportNumber = (form, msg = true) => httpApi({
+// export const getReportNumber = (form, msg = true) => HcApi({
 //     url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
 //     method: 'get',
 //     params: form
 // }, msg);
-export const getReportNumber = (form, msg = true) => httpApi({
+export const getReportNumber = (form, msg = true) => HcApi({
     url: 'api/blade-business/task/query-batch-list-two',
     method: 'get',
     params: form,
 }, msg)
 //获取类型
-export const getDictionary = (form, msg = true) => httpApi({
+export const getDictionary = (form, msg = true) => HcApi({
     url: '/api/blade-system/dict/dictionary',
     method: 'get',
     params: form,
 }, msg)
 //业务字典
-export const getDictionaryBiz = (form, msg = true) => httpApi({
+export const getDictionaryBiz = (form, msg = true) => HcApi({
     url: '/api/blade-system/dict-biz/dictionary',
     method: 'get',
     params: form,
@@ -66,20 +66,20 @@ export const getDictionaryBiz = (form, msg = true) => httpApi({
 
 
 //获取表单的下拉框测站点数据
-export const getDapSiteData = (form, msg = true) => httpApi({
+export const getDapSiteData = (form, msg = true) => HcApi({
     url: '/api/blade-business/dap/site',
     method: 'get',
     params: form,
 }, msg)
 
 //获取表单下的设计强度列表
-export const getDesignStrengthList = (form, msg = true) => httpApi({
+export const getDesignStrengthList = (form, msg = true) => HcApi({
     url: '/api/blade-manager/mixProportion/designStrengthList',
     method: 'get',
     params: form,
 }, msg)
 //检查当前合同段是否开启电签
-export const eVisaTaskCheck = (form, msg = true) => httpApi({
+export const eVisaTaskCheck = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/checkContractIsOpenEVisa',
     method: 'get',
     params: form,
@@ -98,7 +98,7 @@ export const eVisaTaskCheckApi = async (form) => {
 
 
 //检查当前审批人是否存在证书
-export const checkFlowUserIsExistPfxFile = (form, msg = true) => httpApi({
+export const checkFlowUserIsExistPfxFile = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/checkFlowUserIsExistPfxFile',
     method: 'get',
     params: form,
@@ -106,50 +106,50 @@ export const checkFlowUserIsExistPfxFile = (form, msg = true) => httpApi({
 
 
 //获取符合条件的预设流程(三大填报页、日志列表的批量上报、首件列表的批量上报)
-export const queryFixedFlow = (form, msg = true) => httpApi({
+export const queryFixedFlow = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow',
     method: 'post',
     data: form,
 }, msg)
 //资料查询获取任务流程
-export const queryFixedFlow1 = (form, msg = true) => httpApi({
+export const queryFixedFlow1 = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow2',
     method: 'post',
     data: form,
 }, msg)
 //日志填报获取任务流程
-export const queryFixedFlow3 = (form, msg = true) => httpApi({
+export const queryFixedFlow3 = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow3',
     method: 'post',
     data: form,
 }, msg)
 //检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
-export const checkCustomFlowUserIsEVisaPermissions = (form, msg = true) => httpApi({
+export const checkCustomFlowUserIsEVisaPermissions = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions',
     method: 'post',
     data: form,
 }, msg)
 //检查所选的流程环节处理人是否具有审批权限(日志和首件)
-export const checkCustomFlowUserIsEVisaPermissions3 = (form, msg = true) => httpApi({
+export const checkCustomFlowUserIsEVisaPermissions3 = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions3',
     method: 'post',
     data: form,
 }, msg)
 //资料查询页面
-export const checkCustomFlowUserIsEVisaPermissionsquery = (form, msg = true) => httpApi({
+export const checkCustomFlowUserIsEVisaPermissionsquery = (form, msg = true) => HcApi({
     url: '/api/blade-business/eVisaTaskCheck/batchCheckCustomFlowUserIsEVisaPermissions2',
     method: 'post',
     data: form,
 }, msg)
 //获取用户列表
-export const getContractUserList = (form, msg = true) => httpApi({
+export const getContractUserList = (form, msg = true) => HcApi({
     url: '/api/blade-manager/contractInfo/get-contract-userList',
     method: 'get',
     params: form,
 }, msg)
 
 //获取租户详情
-export const getTenantDetail = (id) => httpApi({
+export const getTenantDetail = (id) => HcApi({
     url: '/api/blade-system/tenant/detail',
     method: 'get',
     params: {
@@ -159,14 +159,14 @@ export const getTenantDetail = (id) => httpApi({
 
 
 //获取更新信息
-export const getVersionJson = () => httpApi({
+export const getVersionJson = () => HcApi({
     url: 'version.json?time=' + new Date().getTime(),
     method: 'get',
 }, false)
 
 //获取项目下的合同段信息
-export const getContractInfo = (form, msg = true) => httpApi({
+export const getContractInfo = (form, msg = true) => HcApi({
     url: '/api/blade-manager/contractInfo/get-contractInfo',
     method: 'get',
     params: form,
-}, msg)
+}, msg)

+ 9 - 9
src/api/modules/other/first-item.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取合同段划分树中被标记为首件的节点
     async queryContractWbsTreeByFirstInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             //url: '/api/blade-business/informationWriteQuery/queryContractWbsTreeByFirstInfo',
             url: '/api/blade-user/wbs/informationWriteQuery/queryContractWbsTreeByFirstInfo',
             method: 'get',
@@ -12,7 +12,7 @@ export default {
     },
     //分页数据
     async getQueryPageData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/page',
             method: 'post',
             data: form,
@@ -20,7 +20,7 @@ export default {
     },
     //首件表单获取html页面
     async getFirstExcelHtml(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/first/get-first-excel-html',
             method: 'get',
             params: form,
@@ -28,7 +28,7 @@ export default {
     },
     //首件-pdf预览
     async getFirstBussPdfInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/first/get-first-buss-pdfInfo',
             method: 'get',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //获取首件用户保存数据
     async getFirstBussDataInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/first/get-first-buss-dataInfo',
             method: 'get',
             params: form,
@@ -44,14 +44,14 @@ export default {
     },
     //填报页面数据保存
     async saveBussData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/save_log_first_buss_data',
             method: 'post',
             data: form,
         }, msg)
     },
     async queryFirstDocumentTitle(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/queryFirstDocumentTitle',
             method: 'get',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //批量打印
     async batchPrint(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/batchPrint',
             method: 'post',
             params: form,

+ 11 - 11
src/api/modules/other/orderServe.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取工单服务列表
     async queryUserOpinionPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/queryUserOpinionPage',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //获取当前用户提交的工单服务
     async queryCurrentUserOpinionList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/queryCurrentUserOpinionList',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //新增工单服务信息
     async saveUserOpinion(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/saveUserOpinion',
             method: 'post',
             data: form,
@@ -27,7 +27,7 @@ export default {
     },
     //获取当前工单的最新流程
     async queryUserFlowOpinion(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinionFlow/queryCurrentUserOpinionFlowByUserOpinionId',
             method: 'get',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //统合处理意见接口
     async disposeUserFeedback(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinionFlow/disposeUserOpinionFeedback',
             method: 'post',
             params: form,
@@ -43,14 +43,14 @@ export default {
     },
     //获取字典信息
     async queryDictBizList(msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/queryDictBizList',
             method: 'get',
         }, msg)
     },
     //获取当前工单下的所有评论
     async queryCommentsList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinionComments/queryUserOpinionCommentsByUserOpinionId',
             method: 'get',
             params: form,
@@ -58,7 +58,7 @@ export default {
     },
     //新增评论
     async saveUserComments(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinionComments/saveUserOpinionComments',
             method: 'post',
             data: form,
@@ -66,7 +66,7 @@ export default {
     },
     //点赞
     async addGoodNumber(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/addGoodNumber',
             method: 'post',
             params: form,
@@ -74,7 +74,7 @@ export default {
     },
     //取消点赞
     async cancelGood(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userOpinion/cancelGood',
             method: 'post',
             params: form,

+ 11 - 11
src/api/modules/patrol/patrol.js

@@ -1,18 +1,18 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取巡检列表分页
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/page',
             method: 'get',
             params: form,
         }, msg)
     },
- 
+
     //获取新增巡检任务
     async add(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/add',
             method: 'post',
             data: form,
@@ -20,7 +20,7 @@ export default {
     },
     //修改巡检
     async update(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/Update',
             method: 'post',
             data: form,
@@ -28,7 +28,7 @@ export default {
     },
     //删除
     async delete(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/delete',
             method: 'get',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //提交整改记录
     async submitRectify(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/submitRectify',
             method: 'post',
             data: form,
@@ -44,7 +44,7 @@ export default {
     },
     //整改记录分页
     async page2(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/page2',
             method: 'get',
             params: form,
@@ -52,7 +52,7 @@ export default {
     },
     //复核检测
     async reviewInspect(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/reviewInspect',
             method: 'get',
             params: form,
@@ -60,7 +60,7 @@ export default {
     },
     //撤回提交
     async revokeSubmit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/revokeSubmit',
             method: 'get',
             params: form,
@@ -68,7 +68,7 @@ export default {
     },
     //获取巡检详情
     async detail(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/routingInspection/detail',
             method: 'get',
             params: form,

+ 6 - 6
src/api/modules/project.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 
 export default {
     //获取项目和合同段
     async getProjectAndContract() {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userViewProjectContract/queryUserViewProjectAndContract',
             method: 'get',
             params: {},
@@ -11,7 +11,7 @@ export default {
     },
     //获取默认项目
     async getDefaultProject(form) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/defaultProject/queryUserDefault',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //获取项目详情
     async getProjectInfo(id) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/projectInfo/detail',
             method: 'get',
             params: {
@@ -29,7 +29,7 @@ export default {
     },
     //获取合同段详情
     async getContractInfo(id) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/contractInfo/detail',
             method: 'get',
             params: {
@@ -39,7 +39,7 @@ export default {
     },
     //设置默认项目
     async setDefaultProject(form) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/defaultProject/save',
             method: 'post',
             data: form,

+ 6 - 6
src/api/modules/schedule/data.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //查询内业资料进度
     async queryMaterialProgress(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/materialProgress/queryMaterialProgress',
             method: 'post',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //报表资料审批统计
     async queryMaterialProgressStatus(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/materialProgress/queryMaterialProgressStatus',
             method: 'post',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //声像媒体资料统计
     async queryImageClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/materialProgress/queryImageClassification',
             method: 'post',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //资料进度
     async queryContractTreeMaterialProgress(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/materialProgress/queryContractTreeMaterialProgress',
             method: 'post',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     // 内外业进度
     async queryNeiWaiYeProgress(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/neiWaiYeProgressController/neiWaiYeProgress',
             method: 'get',
             params: form,

+ 12 - 12
src/api/modules/tasks/data.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //获取任务类型或任务状态
     async queryTaskTypeStatus(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-task-type-status',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //获取当前合同段的上报批次
     async queryBatchList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-batch-list',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //获取当前用户待办流程
     async queryUserToDoTaskList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/user-to-do-task-list',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //审批页详情
     async queryApprovalParameter(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-approval-parameter',
             method: 'get',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //完成任务
     async saveCompleteApprovalTask(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/complete-approval-task',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //已办任务
     async queryUserDoneTaskList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-user-done-task-list',
             method: 'get',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //批量审批
     async batchCompleteApprovalTask(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/batch-complete-approval-task',
             method: 'post',
             data: form,
@@ -59,7 +59,7 @@ export default {
     },
     //获取发起
     async queryUserStartFlow(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/query-user-start-flow',
             method: 'get',
             params: form,
@@ -67,7 +67,7 @@ export default {
     },
     //批量页详情
     async queryTaskInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/batch-approval-parameter',
             method: 'get',
             params: form,
@@ -75,7 +75,7 @@ export default {
     },
     //校验电签短信验证码
     async checkSmsCode(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/check-sms-code',
             method: 'post',
             data: form,
@@ -83,7 +83,7 @@ export default {
     },
     //获取任务列表分页
     async getTaskPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/page',
             method: 'post',
             data: form,

+ 7 - 7
src/api/modules/tasks/flow.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //分页数据
     async getPageData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //获取系统所有角色划分
     async queryAllRoleList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/queryAllRoleList',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //详情
     async queryFixedFlowDetail(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/detail',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //新增
     async addFixedFlowData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/save',
             method: 'post',
             data: form,
@@ -35,7 +35,7 @@ export default {
     },
     //修改
     async updateFixedFlowData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/update',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //删除
     async removeFixedFlowData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/fixedFlow/remove',
             method: 'post',
             params: form,

+ 5 - 5
src/api/modules/tasks/message.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //分页数据
     async getPageData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/messageWarning/list',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //删除消息
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/messageWarning/remove',
             method: 'post',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //获取当前用户的消息数量
     async queryCurrentUserMessageCount(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/messageWarning/queryCurrentUserMessageCount',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //标记已读
     async setMessageWarningRead(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/messageWarning/setMessageWarningRead',
             method: 'post',
             params: form,

+ 3 - 3
src/api/modules/tasks/sign.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //任务管理-电签失败分页查询
     async eVisaFailedPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/eVisaFailedPage',
             method: 'post',
             data: form,
@@ -11,7 +11,7 @@ export default {
     },
     //一键重签
     async reSigningEVisa(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/task/reSigningEVisa',
             method: 'post',
             data: form,

+ 5 - 7
src/api/modules/tentative/collect/month.js

@@ -1,29 +1,27 @@
-import { httpApi } from '../../../request/httpApi'
-
-
+import { HcApi } from '../../../request/index'
 
 //月报汇总分页查询
-export const getMonthPage = (form, msg = true) => httpApi({
+export const getMonthPage = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/monthly/page',
     method: 'post',
     data: form,
 }, msg)
 //月报汇总编辑备注
-export const editRemark = (form, msg = true) => httpApi({
+export const editRemark = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/monthly/edit',
     method: 'post',
     data: form,
 }, msg)
 
 //月报汇总下载
-export const downloadMonth = (form, msg = true) => httpApi({
+export const downloadMonth = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/monthly/download',
     method: 'post',
     data: form,
 }, msg)
 
 //月报汇总打印
-export const printMonth = (form, msg = true) => httpApi({
+export const printMonth = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/monthly/print',
     method: 'post',
     data: form,

+ 7 - 7
src/api/modules/tentative/collect/test.js

@@ -1,41 +1,41 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 //合同段下拉框
-export const getContractList = (form, msg = true) => httpApi({
+export const getContractList = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/contract/list',
     method: 'get',
     params: form,
 }, msg)
 
 //汇总分类列表
-export const getSummaryList = (form, msg = true) => httpApi({
+export const getSummaryList = (form, msg = true) => HcApi({
     url: '/api//blade-business/trial/summary/list',
     method: 'get',
     params: form,
 }, msg)
 
 //分页查询
-export const getPage = (form, msg = true) => httpApi({
+export const getPage = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/page',
     method: 'post',
     data: form,
 }, msg)
 
 //删除
-export const removeByIds = (form, msg = true) => httpApi({
+export const removeByIds = (form, msg = true) => HcApi({
     url: '/api//blade-business/trial/summary/remove',
     method: 'post',
     params: form,
 }, msg)
 
 //新增
-export const save = (form, msg = true) => httpApi({
+export const save = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/save',
     method: 'post',
     data: form,
 }, msg)
 //下载
-export const download = (form, msg = true) => httpApi({
+export const download = (form, msg = true) => HcApi({
     url: '/api/blade-business/trial/summary/download',
     method: 'post',
     data: form,

+ 4 - 4
src/api/modules/tentative/detect/index.js

@@ -1,21 +1,21 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 //实验树
-export const getTreeAll = (form, msg = true) => httpApi({
+export const getTreeAll = (form, msg = true) => HcApi({
     url: '/api/blade-manager/trial/tree-all',
     method: 'get',
     params: form,
 }, msg)
 
 //新增或修改
-export const submitTree = (form, msg = true) => httpApi({
+export const submitTree = (form, msg = true) => HcApi({
     url: '/api/blade-manager/trial/submit',
     method: 'post',
     data: form,
 }, msg)
 
 //删除节点
-export const removeTree = (form, msg = true) => httpApi({
+export const removeTree = (form, msg = true) => HcApi({
     url: '/api/blade-manager/trial/remove',
     method: 'get',
     params: form,

+ 30 - 30
src/api/modules/tentative/detect/test.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //自检记录分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/page',
             method: 'post',
             data: form,
@@ -11,7 +11,7 @@ export default {
     },
     //自检记录附件列表
     async ancillaryDocumentsList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/ancillary-documents-list',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //试验自检记录附件删除接口:
     async removedocuments(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/remove-ancillary-documents',
             method: 'post',
             params: form,
@@ -28,7 +28,7 @@ export default {
 
     //自检记录批量复制
     async copyData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/copy',
             method: 'post',
             params: form,
@@ -36,7 +36,7 @@ export default {
     },
     //自检记录批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/remove',
             method: 'post',
             params: form,
@@ -44,7 +44,7 @@ export default {
     },
     //自检记录pdf批量打印
     async printPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/print-pdf',
             method: 'post',
             params: form,
@@ -52,7 +52,7 @@ export default {
     },
     //自检记录pdf批量废除
     async batchAbolish(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/informationWriteQuery/batchAbolish',
             method: 'post',
             params: form,
@@ -60,7 +60,7 @@ export default {
     },
     //自检记录pdf批量打印空表
     async printNullPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/print-null-pdf',
             method: 'post',
             params: form,
@@ -68,7 +68,7 @@ export default {
     },
     //自检记录样品信息列表
     async getSampleList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/sample-list',
             method: 'get',
             params: form,
@@ -76,7 +76,7 @@ export default {
     },
     //根据所属方查询节点下表单
     async searchNodeTables(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/search-node-tables',
             method: 'get',
             params: form,
@@ -84,7 +84,7 @@ export default {
     },
     //获取试验表的HTML
     async getExcelHtml(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/get-excel-html',
             method: 'get',
             params: form,
@@ -92,7 +92,7 @@ export default {
     },
     //获取试验用户保存数据
     async getBussDataInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-dataInfo-trial',
             method: 'get',
             params: form,
@@ -100,7 +100,7 @@ export default {
     },
     //自检表单复制
     async copyBussTab(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/copy-buss-tab',
             method: 'get',
             params: form,
@@ -108,7 +108,7 @@ export default {
     },
     //自检单表PDF预览
     async getBussPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/get-buss-pdf',
             method: 'get',
             params: form,
@@ -116,7 +116,7 @@ export default {
     },
     //自检多表PDF预览
     async getBussPdfs(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/get-buss-pdfs',
             method: 'get',
             params: form,
@@ -124,7 +124,7 @@ export default {
     },
     //自检隐藏表单
     async showBussTab(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/show-buss-tab',
             method: 'get',
             params: form,
@@ -132,7 +132,7 @@ export default {
     },
     //自检删除复制的表
     async removeBussTabInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/remove-buss-tab',
             method: 'post',
             params: form,
@@ -140,7 +140,7 @@ export default {
     },
     //保存表单
     async saveExcelBussData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/submit',
             method: 'post',
             data: form,
@@ -148,7 +148,7 @@ export default {
     },
     //查询关联样品信息列表
     async sampleListInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/sample/list-info',
             method: 'get',
             params: form,
@@ -156,7 +156,7 @@ export default {
     },
     //查询关联原材料检测报告列表
     async rawMaterialList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/raw-material/list',
             method: 'get',
             params: form,
@@ -164,7 +164,7 @@ export default {
     },
     //获取试验表中的data数据接口:
     async getBussddataInfotrial(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-dataInfo-trial',
             method: 'get',
             params: form,
@@ -172,7 +172,7 @@ export default {
     },
     //获取试验表中的data数据接口:
     async getBussddataInfotrialList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/exceltab/get-buss-dataInfo-list-trial',
             method: 'get',
             params: form,
@@ -180,7 +180,7 @@ export default {
     },
     //自检记录附件修改接口:
     async updateAncillaryDocument(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/update-ancillary-documents',
             method: 'post',
             data: form,
@@ -188,7 +188,7 @@ export default {
     },
     //关联原材报告保存
     async rawMaterialSubmit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/raw-material/submit',
             method: 'post',
             data: form,
@@ -196,7 +196,7 @@ export default {
     },
     //关联工程用途即部位
     async projectpositionSubmit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/project-position/submit',
             method: 'post',
             data: form,
@@ -204,7 +204,7 @@ export default {
     },
     //关联取样
     async recordsampleSubmit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/record-sample/submit',
             method: 'post',
             data: form,
@@ -212,7 +212,7 @@ export default {
     },
     //获取当前样品信息对应到表字段关系接口
     async recordsamplegetData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/record-sample/getData',
             method: 'post',
             params: form,
@@ -220,7 +220,7 @@ export default {
     },
     //关联工程部位信息获取数据接口
     async recordprojectPositiongetData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/self/record-projectPosition/getData',
             method: 'post',
             params: form,
@@ -228,7 +228,7 @@ export default {
     },
     //获取图表配置数据
     async getChartInit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/formula/chart-init',
             method: 'post',
             data: form,

+ 5 - 5
src/api/modules/tentative/detect/third.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //外委或三方数据分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/data/page',
             method: 'post',
             data: form,
@@ -11,7 +11,7 @@ export default {
     },
     //外委或三方数据新增或者修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/data/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //外委或三方数据批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/data/remove',
             method: 'post',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //外委或三方数据复制
     async copyData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/detection/data/copy',
             method: 'post',
             data: form,

+ 8 - 8
src/api/modules/tentative/device/approach.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //分类新增或修改
     async getClassSubmit(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/class-submit',
             method: 'post',
             data: form,
@@ -11,7 +11,7 @@ export default {
     },
     //分类删除
     async setClassRemove(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/class-remove',
             method: 'get',
             params: form,
@@ -19,7 +19,7 @@ export default {
     },
     //分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/mobilization/page',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/mobilization/submit',
             method: 'post',
             data: form,
@@ -35,7 +35,7 @@ export default {
     },
     //批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/mobilization/remove',
             method: 'get',
             params: form,
@@ -43,7 +43,7 @@ export default {
     },
     //批量打印Pdf
     async exportPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/mobilization/print-pdf',
             method: 'post',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //导入数据保存
     async samplingRecord(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/mobilization/import-batch',
             method: 'post',
             data: form,

+ 6 - 6
src/api/modules/tentative/device/employ.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/use/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/use/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/use/remove',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //批量打印Pdf
     async exportPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/use/print-pdf',
             method: 'post',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //导入数据保存
     async samplingRecord(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/use/import-batch',
             method: 'post',
             data: form,

+ 6 - 6
src/api/modules/tentative/device/overhaul.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/overhaul/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/overhaul/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/overhaul/remove',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //批量打印Pdf
     async exportPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/overhaul/print-pdf',
             method: 'post',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //导入数据保存
     async samplingRecord(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/device/overhaul/import-batch',
             method: 'post',
             data: form,

+ 7 - 7
src/api/modules/tentative/index.js

@@ -1,40 +1,40 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 //分类列表
-export const getClassList = (form, msg = true) => httpApi({
+export const getClassList = (form, msg = true) => HcApi({
     url: '/api/blade-business/device/class-list',
     method: 'get',
     params: form,
 }, msg)
 //初始化设备分类接口 api/blade-business/device/class-init
-export const deviceClassListInit = (form, msg = true) => httpApi({
+export const deviceClassListInit = (form, msg = true) => HcApi({
     url: '/api/blade-business/device/class-init',
     method: 'post',
     params: form,
 }, msg)
 //项目树全加载
-export const getProjectTree = (form, msg = true) => httpApi({
+export const getProjectTree = (form, msg = true) => HcApi({
     url: '/api/blade-manager/projectInfo/tree',
     method: 'get',
     params: form,
 }, msg)
 
 //使用-检修-根据设备分类id查询设备编号名称
-export const queryDeviceList = (form, msg = true) => httpApi({
+export const queryDeviceList = (form, msg = true) => HcApi({
     url: '/api/blade-business/device/use/device-list',
     method: 'get',
     params: form,
 }, msg)
 
 //使用-根据节点id查询样品编号名称
-export const querySampleList = (form, msg = true) => httpApi({
+export const querySampleList = (form, msg = true) => HcApi({
     url: '/api/blade-business/device/use/sample-list',
     method: 'get',
     params: form,
 }, msg)
 
 //获取节点关联样品信息接口:Get:/api/blade-business/device/use/submit/getSampleInfo
-export const getSampleInfo = (form, msg = true) => httpApi({
+export const getSampleInfo = (form, msg = true) => HcApi({
     url: '/api/blade-business/device/use/submit/getSampleInfo',
     method: 'get',
     params: form,

+ 3 - 3
src/api/modules/tentative/laboratory/print.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //打印空表查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/get-node-tables',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //批量打印
     async batchPrint(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/laboratory/print/null-pdf',
             method: 'post',
             params: form,

+ 4 - 4
src/api/modules/tentative/laboratory/user.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //人员档案条件分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/laboratory/user/archives/page',
             method: 'post',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //人员档案新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/laboratory/user/archives/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //人员档案批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/laboratory/user/archives/remove',
             method: 'post',
             params: form,

+ 9 - 9
src/api/modules/tentative/material/approach.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //进场材料分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //进场材料新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //进场材料批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/remove',
             method: 'post',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //校验材料编号是否唯一
     async verification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/verification',
             method: 'get',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //进场材料批量复制
     async copyData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/copy',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //批量打印进场材料Pdf
     async exportPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/export-pdf',
             method: 'post',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //材料取样记录
     async samplingRecord(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/sampling-record',
             method: 'get',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //材料进场附件附件修改接口:
     async updateMobilizationFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/mobilization/upload-file',
             method: 'post',
             params: form,

+ 11 - 11
src/api/modules/tentative/material/sampling.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //树数据
     async queryLazyTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/lazy-tree',
             method: 'get',
             params: form,
@@ -12,7 +12,7 @@ export default {
 
     // 获取试验树节点下的记录信息接口:
     async getMixRatioTestTree(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/wbsPrivate/self/trial/getMixRatioTestTree',
             method: 'post',
             params: form,
@@ -20,7 +20,7 @@ export default {
     },
     // 获取试验树节点下的记录信息接口:
     async gettrialPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             // url: '/api/blade-business/trial/data/page',
             url: '/api/blade-business/trial/data/relation/page',
             method: 'post',
@@ -29,7 +29,7 @@ export default {
     },
     //分页条件查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/page',
             method: 'get',
             params: form,
@@ -37,7 +37,7 @@ export default {
     },
     //进场材料新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/submit',
             method: 'post',
             data: form,
@@ -45,7 +45,7 @@ export default {
     },
     //进场材料批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/remove',
             method: 'post',
             params: form,
@@ -53,7 +53,7 @@ export default {
     },
     //校验样品编号是否唯一
     async verification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/verification',
             method: 'get',
             params: form,
@@ -61,7 +61,7 @@ export default {
     },
     //进场材料批量复制
     async copyData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/copy',
             method: 'post',
             data: form,
@@ -69,7 +69,7 @@ export default {
     },
     //批量打印进场材料Pdf
     async exportPdf(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/material/sample/export-pdf',
             method: 'post',
             params: form,
@@ -77,7 +77,7 @@ export default {
     },
     //关联试验文件信息提交保存接口
     async submitRelationFile(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/trial/file/submit',
             method: 'post',
             data: form,

+ 4 - 4
src/api/modules/tentative/parameter/compactness.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //压实度分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/compaction/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //压实度新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/compaction/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //压实度批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/compaction/remove',
             method: 'post',
             params: form,

+ 11 - 11
src/api/modules/tentative/parameter/container.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //查询容器分类集合
     async queryClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/classification/list',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //试验容器新增或修改
     async submitClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/classification/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //删除容器中的字段
     async removeField(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/field/remove',
             method: 'post',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //删除容器
     async removeClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/classification/remove',
             method: 'post',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //根据容器类型条件分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/page',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //容器数据新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/submit',
             method: 'post',
             data: form,
@@ -51,7 +51,7 @@ export default {
     },
     //容器数据删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/remove',
             method: 'post',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //校验容器数据编号是否唯一
     async verification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/verification-no',
             method: 'post',
             data: form,
@@ -67,7 +67,7 @@ export default {
     },
     //下载导入模板
     async downloadTemplate(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/download-template',
             method: 'post',
             responseType: 'blob',
@@ -76,7 +76,7 @@ export default {
     },
     //导入/api/blade-business/container/data/import-excel
     async importExcel(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/container/data/import-excel',
             method: 'post',
             data: form,

+ 4 - 4
src/api/modules/tentative/parameter/density.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //温度及密度分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/temperature-density/page',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //温度及密度新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/temperature-density/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //温度及密度批量删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-manager/trial/param/temperature-density/remove',
             method: 'post',
             params: form,

+ 7 - 7
src/api/modules/tentative/parameter/sieve.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../../request/httpApi'
+import { HcApi } from '../../../request/index'
 
 export default {
     //筛孔分类列表查询
     async queryClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/classification/list',
             method: 'get',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //筛孔分类新增或修改
     async submitClassification(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/classification/submit',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //筛孔分类删除
     async removeField(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/classification/remove',
             method: 'post',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //筛孔尺寸数据分页查询
     async queryPage(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/data/page',
             method: 'get',
             params: form,
@@ -35,7 +35,7 @@ export default {
     },
     //筛孔尺寸数据新增或修改
     async submitForm(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/data/submit',
             method: 'post',
             data: form,
@@ -43,7 +43,7 @@ export default {
     },
     //筛孔尺寸数据删除
     async removeData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/sieve/pore/data/remove',
             method: 'post',
             params: form,

+ 12 - 12
src/api/modules/user.js

@@ -1,8 +1,8 @@
-import { httpApi } from '../request/httpApi'
+import { HcApi } from '../request/index'
 import website from '~src/config/index'
 import md5 from 'js-md5'
 
-export const userLogin = ({ tenantId, deptId, roleId, username, password, type, key, code }, msg = true) => httpApi({
+export const userLogin = ({ tenantId, deptId, roleId, username, password, type, key, code }, msg = true) => HcApi({
     url: '/api/blade-auth/oauth/token',
     method: 'post',
     headers: {
@@ -22,7 +22,7 @@ export const userLogin = ({ tenantId, deptId, roleId, username, password, type,
     },
 }, msg)
 
-export const refreshToken = (refresh_token, tenantId, deptId, roleId, msg = true) => httpApi({
+export const refreshToken = (refresh_token, tenantId, deptId, roleId, msg = true) => HcApi({
     url: '/api/blade-auth/oauth/token',
     method: 'post',
     headers: {
@@ -38,12 +38,12 @@ export const refreshToken = (refresh_token, tenantId, deptId, roleId, msg = true
     },
 }, msg)
 
-export const logout = (msg = true) => httpApi({
+export const logout = (msg = true) => HcApi({
     url: '/api/blade-auth/oauth/logout',
     method: 'get',
 }, msg)
 
-export const registerGuest = (form, oauthId, msg = true) => httpApi({
+export const registerGuest = (form, oauthId, msg = true) => HcApi({
     url: '/api/blade-user/register-guest',
     method: 'post',
     params: {
@@ -55,40 +55,40 @@ export const registerGuest = (form, oauthId, msg = true) => httpApi({
     },
 }, msg)
 
-export const getProjectAndContract = (msg = true) => httpApi({
+export const getProjectAndContract = (msg = true) => HcApi({
     url: '/api/blade-business/userViewProjectContract/queryUserViewProjectAndContract',
     method: 'get',
 }, msg)
 
-export const getCaptcha = (msg = true) => httpApi({
+export const getCaptcha = (msg = true) => HcApi({
     url: '/api/blade-auth/oauth/captcha',
     method: 'get',
 }, msg)
 
-export const getUserInfo = (msg = true) => httpApi({
+export const getUserInfo = (msg = true) => HcApi({
     url: '/api/blade-auth/oauth/user-info',
     method: 'get',
 }, msg)
 
-export const sendLogs = (list, msg = true) => httpApi({
+export const sendLogs = (list, msg = true) => HcApi({
     url: '/api/blade-auth/oauth/logout',
     method: 'post',
     data: list,
 }, msg)
 
-export const clearCache = (msg = true) => httpApi({
+export const clearCache = (msg = true) => HcApi({
     url: '/api/blade-auth/oauth/clear-cache',
     method: 'get',
 }, msg)
 
-export const loginByToken = (form, msg = true) => httpApi({
+export const loginByToken = (form, msg = true) => HcApi({
     url: '/api/blade-user/loginByToken',
     method: 'post',
     params: form,
 }, msg)
 
 //获取租户ID
-export const getTenantID = (domain, msg = true) => httpApi({
+export const getTenantID = (domain, msg = true) => HcApi({
     url: '/api/blade-system/tenant/info',
     method: 'get',
     params: {

+ 12 - 12
src/api/modules/userInfo/index.js

@@ -1,9 +1,9 @@
-import { httpApi } from '../../request/httpApi'
+import { HcApi } from '../../request/index'
 
 export default {
     //修改密码
     async updatePassword(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-user/update-password',
             method: 'post',
             params: form,
@@ -11,7 +11,7 @@ export default {
     },
     //设置默认项目
     async setDefaultProject(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/defaultProject/save',
             method: 'post',
             data: form,
@@ -19,7 +19,7 @@ export default {
     },
     //获取默认项目
     async getDefaultProject(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/defaultProject/queryUserDefault',
             method: 'get',
             params: form,
@@ -27,7 +27,7 @@ export default {
     },
     //更新用户信息
     async updateUserInfo(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-user/update-info',
             method: 'post',
             data: form,
@@ -35,7 +35,7 @@ export default {
     },
     //获取操作日志
     async getOperationLog(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/operationLog/list',
             method: 'get',
             params: form,
@@ -43,7 +43,7 @@ export default {
     },
     //获取业务模块
     async queryBusinessModule(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/operationLog/queryBusinessModule',
             method: 'get',
             params: form,
@@ -51,7 +51,7 @@ export default {
     },
     //获取操作页面
     async queryOperationView(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/operationLog/queryOperationView',
             method: 'get',
             params: form,
@@ -59,7 +59,7 @@ export default {
     },
     //获取操作类型
     async queryOperationTypeList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/operationLog/queryOperationTypeList',
             method: 'get',
             params: form,
@@ -67,7 +67,7 @@ export default {
     },
     //获取用户信息
     async queryCurrentUserData(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/userViewProjectContract/queryCurrentUserData',
             method: 'post',
             data: form,
@@ -75,7 +75,7 @@ export default {
     },
     //回收站分页
     async queryRecycleBinList(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/recycleBin/list',
             method: 'get',
             params: form,
@@ -83,7 +83,7 @@ export default {
     },
     //回收站恢复
     async recycleBinRegain(form, msg = true) {
-        return httpApi({
+        return HcApi({
             url: '/api/blade-business/recycleBin/regain',
             method: 'post',
             data: form,

+ 0 - 23
src/api/request/header.js

@@ -1,23 +0,0 @@
-import pinia from '~src/store/init'
-import { useAppStore } from '~src/store'
-import { Base64 } from 'js-base64'
-import website from '~src/config'
-import { getToken } from '~src/api/util/auth'
-
-//初始变量
-const store = useAppStore(pinia)
-
-export function getTokenHeader(text = false) {
-    let headers = {}
-    headers['Authorization'] = `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`
-    headers['Client-Id'] = website.clientId
-    headers['Tenant-Id'] = store.tenantId
-    //让每个请求携带token
-    const token = getToken()
-    if (token) headers[website.tokenHeader] = 'bearer ' + token
-    //headers中配置text请求
-    if (text === true) {
-        headers['Content-Type'] = 'text/plain'
-    }
-    return headers
-}

+ 0 - 85
src/api/request/httpApi.js

@@ -1,85 +0,0 @@
-import request from './index'
-import pinia from '~src/store/init'
-import { useAppStore } from '~src/store'
-import { getObjValue } from 'js-fast-way'
-import website from '~src/config'
-import { apiErrorMessage, apiWarningMessage } from '~com/message/index.js'
-
-//初始变量
-const store = useAppStore(pinia)
-
-//封装的请求
-export const httpApi = async (obj, message = true) => {
-    // eslint-disable-next-line no-async-promise-executor
-    return new Promise(async (resolve) => {
-        //发起请求
-        obj.headers = obj.headers ?? {}
-        obj.headers['Client-Id'] = obj.headers['Client-Id'] ?? website.clientId
-        obj.headers['Tenant-Id'] = obj.headers['Tenant-Id'] ?? store.tenantId
-        const { code, res } = await request(obj)
-        if (code === 200) {
-            resolve(await getResData(res, false))
-        } else {
-            const msg = getMsgVal(res)
-            if (message) {
-                if (msg) window.$message?.error(msg)
-            }
-            resolve(await getResData(res, true))
-        }
-    })
-}
-
-//处理数据
-const getResData = async (response, error = false) => {
-    return new Promise((resolve) => {
-        const { headers, data, config } = response
-        const resData = getObjValue(data)
-        const httpData = {
-            response, res: data, data: resData?.data,
-            code: resData?.code, msg: resData?.msg, status: response?.status,
-            headers: headers, disposition: getDisposition(headers),
-            message: getMsgVal(response), error: error,
-        }
-        //处理延迟响应
-        if (!error) {
-            const { startTime, endTime } = config.metadata
-            if (config.isDelay) {
-                const duration = endTime - startTime
-                if (duration < 500) {
-                    setTimeout(() => {
-                        resolve(httpData)
-                    }, 1000 - duration)
-                } else {
-                    resolve(httpData)
-                }
-            } else {
-                resolve(httpData)
-            }
-        } else {
-            resolve(httpData)
-        }
-    })
-}
-
-//获取msg消息内容
-const getMsgVal = (response) => {
-    const { code, msg, error_description } = getObjValue(response.data)
-    if (code === 404) {
-        apiErrorMessage()
-        return ''
-    } else if (code === 500 || code === 503 || code === 504) {
-        apiWarningMessage()
-        return ''
-    } else {
-        return msg || error_description || '未知错误'
-    }
-}
-
-//响应头中获取content-disposition
-const getDisposition = (headers) => {
-    try {
-        return headers['content-disposition']
-    } catch {
-        return ''
-    }
-}

+ 29 - 58
src/api/request/index.js

@@ -1,63 +1,34 @@
-import axios from 'axios'
-import { Base64 } from 'js-base64'
-import website from '~src/config'
+import { httpApi } from 'hc-vue3-ui'
 import router from '~src/router/index'
-import { getToken } from '~src/api/util/auth'
-import { toSerialize } from 'js-fast-way'
-import { getStoreValue } from '~src/utils/storage'
+import pinia from '~src/store/init'
+import { useAppStore } from '~src/store'
+import website from '~src/config'
 
-//默认超时时间
-axios.defaults.timeout = 0
-//返回其他状态码
-axios.defaults.validateStatus = function (status) {
-    return status >= 200 && status <= 500
-}
-//跨域请求,允许保存cookie
-axios.defaults.withCredentials = true
+//初始变量
+const store = useAppStore(pinia)
 
-//http request拦截
-axios.interceptors.request.use(config => {
-    const meta = (config['meta'] || {})
-    const isToken = meta['isToken'] === false
-    config.headers['Authorization'] = `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`
-    //让每个请求携带token
-    const token = getToken()
-    if (token && !isToken) {
-        config.headers[website.tokenHeader] = 'bearer ' + token
-    }
-    //headers中配置text请求
-    if (config['text'] === true) {
-        config.headers['Content-Type'] = 'text/plain'
-    }
-    //headers中配置serialize为true开启序列化
-    if (config.method === 'post' && meta['isSerialize'] === true) {
-        config.data = toSerialize(config.data)
-    }
-    config.metadata = { startTime: new Date() }
-    return config
-}, (error) => {
-    return Promise.reject(error)
-})
+//封装的请求
+export const HcApi = async (obj, msg) => {
+    return new Promise((resolve) => {
+        //处理统一的请求头
+        obj.headers = obj.headers ?? {}
+        obj.headers['Client-Id'] = obj.headers['Client-Id'] ?? website.clientId
+        obj.headers['Tenant-Id'] = obj.headers['Tenant-Id'] ?? store.tenantId
+        //发起请求
+        httpApi(obj).then((response) => {
+            //console.log(response)
+            resolve(response)
+        }).catch((response) => {
+            getResData(response)
+            resolve(response)
+        })
+    })
+}
 
-//http response 拦截
-axios.interceptors.response.use(res => {
-    //响应时间
-    res.config.metadata.endTime = new Date()
-    //获取状态码
-    const status = res?.data?.code || res.status
-    //如果是401则跳转到登录页面
-    if (status === 401) {
-        const isSource = getStoreValue('isSource')
-        if (!isSource) {
-            window.$message?.error('身份失效,请重新登录!')
-            router.push({ path: '/login' }).then()
-        } else {
-            router.push({ name: 'app-auth' }).then()
-        }
+//处理数据
+const getResData = ({ code }) => {
+    if (code === 401) {
+        window.$message?.error('身份失效,请重新登录!')
+        router.push({ path: '/login' }).then()
     }
-    return { code: status, res }
-}, (error) => {
-    return { code: 0, error }
-})
-
-export default axios
+}

+ 2 - 2
src/components/plugins/table-form/hc-form-upload.vue

@@ -1,7 +1,7 @@
 <template>
     <el-upload
         v-loading="isLoading" :accept="accept" :action="action" :class="isFocus ? 'is-focus' : ''"
-        :disabled="isLoading" :headers="getTokenHeader()" :keyname="isKeyName"
+        :disabled="isLoading" :headers="getHeader()" :keyname="isKeyName"
         :on-error="formUploadError"
         :on-progress="uploadprogress" :placeholder="placeholder" :show-file-list="false"
         class="hc-upload-table-form"
@@ -22,7 +22,7 @@
 
 <script setup>
 import { ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 
 const props = defineProps({
     src: {

+ 2 - 2
src/global/components/hc-uploads/index.vue

@@ -3,7 +3,7 @@
         <el-upload
             ref="uploadRef" v-model:file-list="fileListData" :accept="accept" :action="api + action"
             :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled"
-            :headers="getTokenHeader()" :limit="limit" :multiple="limit > 1" :on-error="uploadError"
+            :headers="getHeader()" :limit="limit" :multiple="limit > 1" :on-error="uploadError"
             :on-exceed="uploadExceed" :on-preview="uploadPreview" :on-progress="uploadprogress"
             :on-remove="uploadRemove" :on-success="uploadSuccess" list-type="picture-card"
         >
@@ -18,7 +18,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { arrIndex, getObjVal, getObjValue, isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 

+ 2 - 2
src/plugins/HTableForm.js

@@ -1,5 +1,5 @@
 import { createApp } from 'vue/dist/vue.esm-bundler.js'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { isArray, toParse } from 'js-fast-way'
 
 //自定义组件或二次封装的组件
@@ -36,7 +36,7 @@ export default class HTableForm {
             components,
             data() {
                 return {
-                    getTokenHeader: getTokenHeader(),
+                    getTokenHeader: getHeader(),
                     formData: tableForm,
                 }
             },

+ 3 - 9
src/store/modules/user.js

@@ -20,18 +20,12 @@ const store = useAppStore(pinia)
 
 //登录
 export const useAppLogin = async (form) => {
-    const { error, status, res } = await userLogin(form)
-    if (!error && status === 200) {
+    const { error, code, res, msg } = await userLogin(form)
+    if (!error && code === 200) {
         const info = await setUserAppInfo(res)
         return { error: info.error, msg: info.msg }
-    } else if (status === 401) {
-        const info = await setUserAppInfo(res)
-        return { error: info.error, msg: info.msg, status:status }
-    } else if (status === 400) {
-        return { error: res.error, msg: res.msg, status:status }
     } else {
-        return Promise.reject({ error, status, res })
-    
+        return { error: true, msg: msg }
     }
 }
 

+ 6 - 21
src/utils/tools.js

@@ -10,21 +10,6 @@ export const getRowsValue = (arr, key, key2, value) => {
     }
 }
 
-//删除提醒
-export const delMessage = (cbk) => {
-    window?.$messageBox?.alert('请谨慎考虑后,确认是否需要删除?', '删除提醒', {
-        showCancelButton: true,
-        confirmButtonText: '确认删除',
-        cancelButtonText: '取消',
-        type: 'warning',
-        callback: (action) => {
-            if (action === 'confirm') {
-                cbk()
-            }
-        },
-    })
-}
-
 //日期格式化
 export const dateFormat = (date, format) => {
     format = format || 'yyyy-MM-dd hh:mm:ss'
@@ -72,26 +57,26 @@ export const isExactlyOneMonthApart = (dateStr1, dateStr2)=> {
     // 将日期字符串转换为 Date 对象
     const date1 = new Date(dateStr1)
     const date2 = new Date(dateStr2)
-    
+
     // 获取两个日期的年、月、日
     const year1 = date1.getFullYear()
     const month1 = date1.getMonth()
     const day1 = date1.getDate()
-    
+
     const year2 = date2.getFullYear()
     const month2 = date2.getMonth()
     const day2 = date2.getDate()
-    
+
     // 计算日期差值(以毫秒为单位)
     const diff = Math.abs(date2 - date1)
-    
+
     // 计算日期相差的天数
     const daysDiff = Math.ceil(diff / (1000 * 60 * 60 * 24))
-    
+
     // 判断日期相差的天数是否等于一个月的天数
     const daysInMonth1 = new Date(year1, month1 + 1, 0).getDate() // 当月的天数
     const daysInMonth2 = new Date(year2, month2 + 1, 0).getDate() // 下个月的天数
-    
+
     return daysDiff === daysInMonth1 || daysDiff === daysInMonth2
 }
 

+ 2 - 2
src/views/data-fill/collapse-form/index.vue

@@ -327,7 +327,7 @@ import {
     downloadBlob, getArrValue, getObjVal, getObjValue, isNullES, setPosRange,
 } from 'js-fast-way'
 import { delMessageV2 } from '~com/message/index.js'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { toPdfPage } from '~uti/btn-auth'
 //参数
 const props = defineProps({
@@ -1528,7 +1528,7 @@ const uploadFileClick = (item) => {
 //上传配置
 const UploadFileOptions = {
     //此处设置header
-    headers: getTokenHeader(),
+    headers: getHeader(),
     url: '/api/blade-manager/wbsTreeContract/import-excel',
 }
 

+ 5 - 5
src/views/data-fill/components/HcUpload.vue

@@ -3,7 +3,7 @@
         ref="uploadRef"
         :accept="accept" :action="action" :before-remove="delUploadData" :before-upload="beforeUpload"
         :data="uploadData"
-        :disabled="isCanuploadVal" :file-list="fileListData" :headers="getTokenHeader()" :on-error="uploadError"
+        :disabled="isCanuploadVal" :file-list="fileListData" :headers="getHeader()" :on-error="uploadError"
         :on-exceed="uploadExceed" :on-preview="uploadPreview" :on-progress="uploadprogress"
         :on-remove="uploadRemove" :on-success="uploadSuccess" class="hc-upload-border"
         drag multiple
@@ -15,7 +15,7 @@
                 <div class="el-upload__text">拖动文件到这里 或 <em>点击这里选择文件</em></div>
             </div>
         </template>
-      
+
         <template #tip>
             <div class="el-upload__tip" style="font-size: 14px;">
                 {{ acceptTip }}
@@ -31,7 +31,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import wbsApi from '~api/data-fill/wbs'
 import { isFileSize } from 'js-fast-way'
 import { toPdfPage } from '~uti/btn-auth'
@@ -194,7 +194,7 @@ const delUploadData = async (res) => {
                 return false
             }
         }
-        
+
     } else {
         if (!id || status === 'uploading') {
             uploadRef.value.abort()
@@ -214,7 +214,7 @@ const delUploadData = async (res) => {
                 return false
             }
         }
-      
+
     }
 }
 

+ 29 - 28
src/views/data-fill/components/division/HcUpload.vue

@@ -1,11 +1,13 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="action" :auto-upload="false"
-               :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()"
-               :limit="1" :on-change="uploadChange" :on-error="uploadError"
-               :on-exceed="uploadExceed" :on-progress="uploadprogress" :on-success="uploadSuccess" class="hc-division-upload">
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="action" :auto-upload="false"
+        :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()"
+        :limit="1" :on-change="uploadChange" :on-error="uploadError"
+        :on-exceed="uploadExceed" :on-progress="uploadprogress" :on-success="uploadSuccess" class="hc-division-upload"
+    >
         <template #trigger>
             <el-button :disabled="uploadDisabled" :loading="uploadDisabled" hc-btn type="primary">
-                <HcIcon name="file-add"/>
+                <HcIcon name="file-add" />
                 <span>选择文件</span>
             </el-button>
         </template>
@@ -13,44 +15,46 @@
 </template>
 
 <script setup>
-import {ref, watch, onMounted} from "vue";
-import {getTokenHeader} from '~src/api/request/header';
-import {getObjValue, isFileSize} from "js-fast-way"
-import {genFileId} from 'element-plus'
+import { onMounted, ref, watch } from 'vue'
+import { getHeader } from 'hc-vue3-ui'
+import { getObjValue, isFileSize } from 'js-fast-way'
+import { genFileId } from 'element-plus'
 
 const props = defineProps({
     contractId: {
         type: [String, Number],
-        default: ''
+        default: '',
     },
     type: {
         type: [Number, String],
-        default: 0
+        default: 0,
     },
     isSplicingNumber: {
         type: [Number, String],
-        default: 0
+        default: 0,
     },
     primaryKeyId: {
         type: [Number, String],
-        default: 0
+        default: 0,
     },
 })
 
+//事件
+const emit = defineEmits(['progress', 'finished', 'change'])
 //变量
 const uploadRef = ref(null)
 const uploadData = ref({})
 const uploadDisabled = ref(false)
 
-const action = '/api/blade-manager/wbsTreeContract/import-wbs-contract';
-const accept = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel';
+const action = '/api/blade-manager/wbsTreeContract/import-wbs-contract'
+const accept = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel'
 
 //监听
 watch(() => [
     props.contractId,
     props.type,
     props.isSplicingNumber,
-    props.primaryKeyId
+    props.primaryKeyId,
 ], ([contractId, type, isSplicingNumber, pid]) => {
     setUploadData(contractId, type, isSplicingNumber, pid)
 })
@@ -62,20 +66,17 @@ onMounted(() => {
 
 //设置附加参数
 const setUploadData = (contractId, type, isSplicingNumber, primaryKeyId) => {
-    uploadData.value = {contractId, type, isSplicingNumber, primaryKeyId}
+    uploadData.value = { contractId, type, isSplicingNumber, primaryKeyId }
 }
 
 
-//事件
-const emit = defineEmits(['progress', 'finished', 'change'])
-
 //上传前
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, 60)) {
-        return true;
+        return true
     } else {
-        window?.$message?.warning('文件大小, 不能过60M!');
-        return false;
+        window?.$message?.warning('文件大小, 不能过60M!')
+        return false
     }
 }
 
@@ -100,11 +101,11 @@ const uploadSuccess = (res) => {
         emit('progress', false)
         emit('finished', {
             type: 'success',
-            data: getObjValue(res?.data)
+            data: getObjValue(res?.data),
         })
     } else {
         emit('progress', false)
-        window?.$message?.error(res.msg);
+        window?.$message?.error(res.msg)
     }
 }
 
@@ -114,9 +115,9 @@ const uploadError = (res) => {
     emit('progress', false)
     emit('finished', {
         type: 'error',
-        data: getObjValue(res?.data)
+        data: getObjValue(res?.data),
     })
-    window?.$message?.error(res.msg);
+    window?.$message?.error(res.msg)
 }
 
 //文件改变时
@@ -135,7 +136,7 @@ const clearFiles = () => {
 // 暴露出去
 defineExpose({
     submit,
-    clearFiles
+    clearFiles,
 })
 </script>
 

+ 3 - 3
src/views/data-fill/wbs.vue

@@ -543,7 +543,7 @@ import { HcIsButton } from '~src/plugins/IsButtons'
 import CollapseForm from './collapse-form/index.vue'
 import NodeTree from './components/nodeTree/index.vue'
 import HcTreeNode from './components/HcTreeNode.vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import {
     arrDelKey,
@@ -1038,7 +1038,7 @@ const setTreeMenuDataClick = ({ key, node, data }) => {
             url: '/api/blade-resource/oss/endpoint/put-file',
             accept: 'image/png,image/jpg,image/jpeg',
             accept_tip: 'png、jpg、jpeg',
-            headers: getTokenHeader(),
+            headers: getHeader(),
             multiple: false,
         }
         uploadFileEchoParams.value = {
@@ -2049,7 +2049,7 @@ const addFilelist = async ()=>{
     getBussFileList(primaryKeyId.value)
      uploadModal.value = true
     await getFileTypeApi()
-  
+
        //上传的配置
        uploadData.value = {
                 classify:authBtnTabKey.value,

+ 4 - 4
src/views/gauge/bezier.vue

@@ -260,7 +260,7 @@
             <div class="text-center">
                 <el-upload
                     ref="uploadRef" v-model:file-list="fileList" :accept="accept" :action="action"
-                    :auto-upload="false" :data="addition" :headers="getTokenHeader()" :limit="1"
+                    :auto-upload="false" :data="addition" :headers="getHeader()" :limit="1"
                     :on-error="handleUploadError" :on-exceed="handleUploadExceed"
                     :on-progress="handleUploadProgress" :on-success="handleUploadFinish"
                 >
@@ -288,7 +288,7 @@
 import { onMounted, ref } from 'vue'
 import { useAppStore } from '~src/store'
 import bezierApi from '~api/gauge/bezier'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { deepClone, downloadBlob, formValidate, getArrValue, getObjValue, isObjNull } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 import { delMessageV2 } from '~com/message/index.js'
@@ -438,13 +438,13 @@ const addLineEleModal = () => {
     formLineEleValue.value = { type: 0 }
     saveLoading.value = false
     showLineEleModal.value = true
-    getNextMileagexy({partId:searchForm.value.partId})
+    getNextMileagexy({ partId:searchForm.value.partId })
 }
 //刷新
 const refreshable = () => {
     getNextMileagexy({
         orderNum: formLineEleValue.value['orderNum'],
-        partId:searchForm.value.partId
+        partId:searchForm.value.partId,
     })
 }
 //保存

+ 2 - 2
src/views/gauge/station.vue

@@ -114,7 +114,7 @@
                 <div class="upload-box">
                     <el-upload
                         ref="uploadRef" v-model:file-list="fileList" :accept="accept" :action="action"
-                        :auto-upload="false" :data="addition" :headers="getTokenHeader()" :limit="1"
+                        :auto-upload="false" :data="addition" :headers="getHeader()" :limit="1"
                         :on-error="handleUploadError" :on-exceed="handleUploadExceed"
                         :on-progress="handleUploadProgress" :on-success="handleUploadFinish"
                     >
@@ -151,7 +151,7 @@ import { onMounted, ref } from 'vue'
 import { useRoute, useRouter } from 'vue-router'
 import { useAppStore } from '~src/store'
 import stationApi from '~api/gauge/station'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { genFileId } from 'element-plus'
 import { downloadBlob, formValidate, getArrValue } from 'js-fast-way'
 import { delMessageV2 } from '~com/message/index.js'

+ 2 - 2
src/views/gauge/testdata.vue

@@ -183,7 +183,7 @@
                     <div class="upload-box">
                         <el-upload
                             ref="uploadRef" v-model:file-list="fileList" :accept="accept" :action="action"
-                            :auto-upload="false" :data="addition" :headers="getTokenHeader()" :limit="1"
+                            :auto-upload="false" :data="addition" :headers="getHeader()" :limit="1"
                             :on-error="handleUploadError" :on-exceed="handleUploadExceed"
                             :on-progress="handleUploadProgress" :on-success="handleUploadFinish"
                         >
@@ -216,7 +216,7 @@ import { deepClone, formValidate, getArrValue } from 'js-fast-way'
 import { delMessageV2 } from '~com/message/index.js'
 import { useAppStore } from '~src/store'
 import { genFileId } from 'element-plus'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 const useAppState = useAppStore()
 //全局变量
 const projectId = ref(useAppState.getProjectId)

+ 3 - 14
src/views/login/index.vue

@@ -150,24 +150,13 @@ const formValidateClick = async () => {
     if (!formRes) return false
     //登录请求
     loading.value = true
-    const { error, msg, status } = await useAppLogin(formValue.value)
-    if (status === 401) {
-        loading.value = false
-    }
-
-    //登录失败
-    if (error && status !== 400) {
-        loading.value = false
+    const { error, msg } = await useAppLogin(formValue.value)
+    loading.value = false
+    if (error) {
         window?.$message?.error(msg)
         return false
     }
-    if (error && status === 400) {
-        loading.value = false
-        // window?.$message?.error(msg)
-        return false
-    }
     //登录成功
-    loading.value = false
     window?.$message?.success('登录成功')
     setTimeout(() => {
         loading.value = false

+ 31 - 30
src/views/other-file/components/HcFileUpload.vue

@@ -1,40 +1,44 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="api + action" :before-upload="beforeUpload"
-               :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :on-error="uploadError" :on-exceed="uploadExceed"
-               :on-progress="uploadprogress" :on-success="uploadSuccess" :show-file-list="false"
-               class="hc-file-upload-box" multiple>
-        <slot></slot>
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="api + action" :before-upload="beforeUpload"
+        :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :on-error="uploadError" :on-exceed="uploadExceed"
+        :on-progress="uploadprogress" :on-success="uploadSuccess" :show-file-list="false"
+        class="hc-file-upload-box" multiple
+    >
+        <slot />
     </el-upload>
 </template>
 
 <script setup>
-import {ref, watch, onMounted} from "vue";
-import {getTokenHeader} from '~src/api/request/header';
-import {deepClone, getObjValue, isFileSize} from "js-fast-way"
+import { onMounted, ref, watch } from 'vue'
+import { getHeader } from 'hc-vue3-ui'
+import { deepClone, getObjValue, isFileSize } from 'js-fast-way'
 
 const props = defineProps({
     datas: {
         type: Object,
-        default: () => ({})
+        default: () => ({}),
     },
     api: {
         type: String,
-        default: "/api/blade-resource/oss/endpoint/"
+        default: '/api/blade-resource/oss/endpoint/',
     },
     action: {
         type: String,
-        default: "upload-file"
+        default: 'upload-file',
     },
     accept: {
         type: String,
-        default: "image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword"
+        default: 'image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword',
     },
     size: {
         type: Number,
-        default: 60
-    }
+        default: 60,
+    },
 })
 
+//事件
+const emit = defineEmits(['change', 'progress'])
 //变量
 const uploadRef = ref(null)
 const uploadData = ref(props.datas)
@@ -54,25 +58,22 @@ onMounted(() => {
     errorFileNum.value = 0
 })
 
-//事件
-const emit = defineEmits(['change', 'progress'])
-
 //上传前
 const beforeFileNum = ref(0)
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, props.size)) {
-        beforeFileNum.value++;
-        return true;
+        beforeFileNum.value++
+        return true
     } else {
-        beforeFileNum.value = 0;
-        window?.$message?.warning(`文件大小, 不能过${props.size}M!`);
-        return false;
+        beforeFileNum.value = 0
+        window?.$message?.warning(`文件大小, 不能过${props.size}M!`)
+        return false
     }
 }
 
 //超出限制时
 const uploadExceed = () => {
-    window?.$message?.warning(`请上传 ${props.accept} 格式的文件,文件大小不超过${props.size}M`);
+    window?.$message?.warning(`请上传 ${props.accept} 格式的文件,文件大小不超过${props.size}M`)
 }
 
 //上传中
@@ -84,11 +85,11 @@ const uploadprogress = () => {
 //上传完成
 const finishFileNum = ref(0)
 const uploadSuccess = (response, uploadFile, uploadFiles) => {
-    finishFileNum.value++;
+    finishFileNum.value++
     if (beforeFileNum.value === finishFileNum.value) {
         const fileList = getUploadFile(deepClone(uploadFiles))
         uploadClearFiles()
-        emit('change', {type: 'success', fileList})
+        emit('change', { type: 'success', fileList })
         emit('progress', false)
     }
 }
@@ -96,13 +97,13 @@ const uploadSuccess = (response, uploadFile, uploadFiles) => {
 //上传失败
 const errorFileNum = ref(0)
 const uploadError = (error, uploadFile, uploadFiles) => {
-    errorFileNum.value++;
-    window?.$message?.error('上传失败');
-    const num = finishFileNum.value + errorFileNum.value;
+    errorFileNum.value++
+    window?.$message?.error('上传失败')
+    const num = finishFileNum.value + errorFileNum.value
     if (beforeFileNum.value === num) {
         const fileList = getUploadFile(deepClone(uploadFiles))
         uploadClearFiles()
-        emit('change', {type: 'error', fileList})
+        emit('change', { type: 'error', fileList })
         emit('progress', false)
     }
 }
@@ -117,7 +118,7 @@ const uploadClearFiles = () => {
 
 //获取文件
 const getUploadFile = (fileList) => {
-    let fileArr = [];
+    let fileArr = []
     for (let i = 0; i < fileList.length; i++) {
         const item = getObjValue(fileList[i]?.response?.data)
         fileArr.push(item)

+ 31 - 30
src/views/other-file/components/HcFileUpload1.vue

@@ -1,41 +1,45 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="api + action" :before-upload="beforeUpload"
-               :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1" :on-error="uploadError"
-               :on-exceed="uploadExceed" :on-progress="uploadprogress" :on-success="uploadSuccess"
-               :show-file-list="false" class="hc-file-upload-box">
-        <slot></slot>
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="api + action" :before-upload="beforeUpload"
+        :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1" :on-error="uploadError"
+        :on-exceed="uploadExceed" :on-progress="uploadprogress" :on-success="uploadSuccess"
+        :show-file-list="false" class="hc-file-upload-box"
+    >
+        <slot />
     </el-upload>
 </template>
 
 <script setup>
-import {ref, watch, onMounted} from "vue";
-import {getTokenHeader} from '~src/api/request/header';
-import {deepClone, getObjValue, isFileSize} from "js-fast-way"
-import {genFileId} from "element-plus";
+import { onMounted, ref, watch } from 'vue'
+import { getHeader } from 'hc-vue3-ui'
+import { deepClone, getObjValue, isFileSize } from 'js-fast-way'
+import { genFileId } from 'element-plus'
 
 const props = defineProps({
     datas: {
         type: Object,
-        default: () => ({})
+        default: () => ({}),
     },
     api: {
         type: String,
-        default: "/api/blade-resource/oss/endpoint/"
+        default: '/api/blade-resource/oss/endpoint/',
     },
     action: {
         type: String,
-        default: "upload-file"
+        default: 'upload-file',
     },
     accept: {
         type: String,
-        default: "image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword"
+        default: 'image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword',
     },
     size: {
         type: Number,
-        default: 60
-    }
+        default: 60,
+    },
 })
 
+//事件
+const emit = defineEmits(['change', 'progress'])
 //变量
 const uploadRef = ref(null)
 const uploadData = ref(props.datas)
@@ -55,19 +59,16 @@ onMounted(() => {
     errorFileNum.value = 0
 })
 
-//事件
-const emit = defineEmits(['change', 'progress'])
-
 //上传前
 const beforeFileNum = ref(0)
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, props.size)) {
-        beforeFileNum.value++;
-        return true;
+        beforeFileNum.value++
+        return true
     } else {
-        beforeFileNum.value = 0;
-        window?.$message?.warning(`文件大小, 不能过${props.size}M!`);
-        return false;
+        beforeFileNum.value = 0
+        window?.$message?.warning(`文件大小, 不能过${props.size}M!`)
+        return false
     }
 }
 
@@ -88,11 +89,11 @@ const uploadprogress = () => {
 //上传完成
 const finishFileNum = ref(0)
 const uploadSuccess = (response, uploadFile, uploadFiles) => {
-    finishFileNum.value++;
+    finishFileNum.value++
     if (beforeFileNum.value === finishFileNum.value) {
         const fileList = getUploadFile(deepClone(uploadFiles))
         uploadClearFiles()
-        emit('change', {type: 'success', fileList})
+        emit('change', { type: 'success', fileList })
         emit('progress', false)
     }
 }
@@ -100,13 +101,13 @@ const uploadSuccess = (response, uploadFile, uploadFiles) => {
 //上传失败
 const errorFileNum = ref(0)
 const uploadError = (error, uploadFile, uploadFiles) => {
-    errorFileNum.value++;
-    window?.$message?.error('上传失败');
-    const num = finishFileNum.value + errorFileNum.value;
+    errorFileNum.value++
+    window?.$message?.error('上传失败')
+    const num = finishFileNum.value + errorFileNum.value
     if (beforeFileNum.value === num) {
         const fileList = getUploadFile(deepClone(uploadFiles))
         uploadClearFiles()
-        emit('change', {type: 'error', fileList})
+        emit('change', { type: 'error', fileList })
         emit('progress', false)
     }
 }
@@ -121,7 +122,7 @@ const uploadClearFiles = () => {
 
 //获取文件
 const getUploadFile = (fileList) => {
-    let fileArr = [];
+    let fileArr = []
     for (let i = 0; i < fileList.length; i++) {
         const item = getObjValue(fileList[i]?.response?.data)
         fileArr.push(item)

+ 25 - 23
src/views/other/components/HcUpload.vue

@@ -1,37 +1,42 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="action"
-               :before-remove="uploadBeforeRemove" :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :file-list="fileListData"
-               :headers="getTokenHeader()" :limit="1" :on-error="uploadError"
-               :on-exceed="uploadExceed" :on-preview="uploadPreview" :on-progress="uploadprogress" :on-success="uploadSuccess"
-               class="first-item-upload" drag>
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="action"
+        :before-remove="uploadBeforeRemove" :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :file-list="fileListData"
+        :headers="getHeader()" :limit="1" :on-error="uploadError"
+        :on-exceed="uploadExceed" :on-preview="uploadPreview" :on-progress="uploadprogress" :on-success="uploadSuccess"
+        class="first-item-upload" drag
+    >
         <div v-loading="uploadDisabled" class="hc-upload-loading" element-loading-text="上传中...">
-            <HcIcon name="backup" ui="text-5xl mt-4"/>
+            <HcIcon name="backup" ui="text-5xl mt-4" />
             <div class="el-upload__text">拖动文件到这里 或 <em>点击这里选择文件</em> 并上传</div>
         </div>
         <template #tip>
-            <div class="el-upload__tip" style="font-size: 14px;">允许格式:jpg/png/pdf/excel/word, 文件大小 小于 60MB
+            <div class="el-upload__tip" style="font-size: 14px;">
+                允许格式:jpg/png/pdf/excel/word, 文件大小 小于 60MB
             </div>
         </template>
     </el-upload>
 </template>
 
 <script setup>
-import {nextTick, ref, watch} from "vue";
-import {isFileSize} from "js-fast-way"
-import {genFileId} from "element-plus";
-import {getTokenHeader} from '~src/api/request/header';
+import { nextTick, ref, watch } from 'vue'
+import { isFileSize } from 'js-fast-way'
+import { genFileId } from 'element-plus'
+import { getHeader } from 'hc-vue3-ui'
 
 const props = defineProps({
     fileList: {
         type: Array,
-        default: () => ([])
+        default: () => ([]),
     },
     pkeyId: {
         type: [String, Number],
-        default: ''
+        default: '',
     },
 })
 
+//事件
+const emit = defineEmits(['finish', 'progress', 'preview'])
 //变量
 const uploadRef = ref(null)
 const fileListData = ref(props.fileList)
@@ -48,27 +53,24 @@ watch(() => [
 ], ([fileList, pkeyId]) => {
     fileListData.value = fileList
     uploadData.value = {
-        pkeyId: pkeyId + ''
+        pkeyId: pkeyId + '',
     }
 })
 
 //渲染完成
 nextTick(() => {
     uploadData.value = {
-        pkeyId: props.pkeyId + ''
+        pkeyId: props.pkeyId + '',
     }
 })
 
-//事件
-const emit = defineEmits(['finish', 'progress', 'preview'])
-
 //上传前
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, 60)) {
-        return true;
+        return true
     } else {
-        window?.$message?.warning('文件大小, 不能过60M!');
-        return false;
+        window?.$message?.warning('文件大小, 不能过60M!')
+        return false
     }
 }
 
@@ -89,14 +91,14 @@ const uploadprogress = () => {
 //上传完成
 const uploadSuccess = (res) => {
     uploadDisabled.value = false
-    emit('finish', {type: 'success', res})
+    emit('finish', { type: 'success', res })
     emit('progress', false)
 }
 
 //上传失败
 const uploadError = () => {
     uploadDisabled.value = false
-    emit('finish', {type: 'error'})
+    emit('finish', { type: 'error' })
     emit('progress', false)
 }
 

+ 4 - 4
src/views/patrol/add.vue

@@ -262,7 +262,7 @@ import { useAppStore } from '~src/store'
 import queryApi from '~api/data-fill/query'
 import { arrToKey, formValidate, getArrValue, getObjValue } from 'js-fast-way'
 import { useRoute, useRouter } from 'vue-router'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import patrolApi from '~api/patrol/patrol'
 import { getDictionary } from '~api/other'
 import { toPdfPage } from '~uti/btn-auth'
@@ -422,7 +422,7 @@ const clickUploadInspect = (row, index)=>{
             url: '/api/blade-resource/oss/endpoint/put-file',
             accept: 'image/png,image/jpg,image/jpeg',
             accept_tip: 'png、jpg、jpeg',
-            headers: getTokenHeader(),
+            headers: getHeader(),
             multiple: false,
     }
     HcUploadFileRef.value?.cancelUpload()
@@ -435,7 +435,7 @@ const clickRectifyPdfUrl = (row, index)=>{
             url: '/api/blade-resource/oss/endpoint/put-file',
             accept: 'image/png,image/jpg,image/jpeg',
             accept_tip: 'png、jpg、jpeg',
-            headers: getTokenHeader(),
+            headers: getHeader(),
             multiple: false,
     }
     setTimeout(() => {
@@ -451,7 +451,7 @@ const clickAttachment = (row, index)=>{
             url: '/api/blade-resource/oss/endpoint/put-file',
 
 
-            headers: getTokenHeader(),
+            headers: getHeader(),
             multiple: false,
     }
     HcUploadFileRef.value?.cancelUpload()

+ 2 - 2
src/views/tentative/detect/components/FormItemUpload.vue

@@ -10,7 +10,7 @@
         <el-upload
             ref="uploadRef" :accept="accept" :action="api + action" :auto-upload="false"
             :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled"
-            :headers="getTokenHeader()" :limit="1"
+            :headers="getHeader()" :limit="1"
             :on-change="uploadChange"
             :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
             :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
@@ -34,7 +34,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 import { toPdfPage } from '~uti/btn-auth'

+ 2 - 2
src/views/tentative/detect/components/HcDragUpload.vue

@@ -1,7 +1,7 @@
 <template>
     <el-upload
         ref="upload" :accept="accept" :action="action" :before-upload="beforeUpload" :data="uploadData"
-        :disabled="uploadDisabled" :file-list="fileListData" :headers="getTokenHeader()"
+        :disabled="uploadDisabled" :file-list="fileListData" :headers="getHeader()"
         :on-change="onChangeToolFile" :on-error="uploadError" :on-exceed="uploadExceed" :on-preview="uploadPreview"
         :on-progress="uploadprogress" :on-remove="uploadRemove"
         :on-success="uploadSuccess" class="hc-upload-border" drag
@@ -18,7 +18,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import wbsApi from '~api/data-fill/wbs'
 import { isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'

+ 2 - 2
src/views/tentative/detect/components/HcUpload.vue

@@ -1,7 +1,7 @@
 <template>
     <el-upload
         :accept="accept" :action="action" :before-remove="delUploadData" :before-upload="beforeUpload" :data="uploadData"
-        :disabled="uploadDisabled" :file-list="fileListData" :headers="getTokenHeader()" :on-error="uploadError"
+        :disabled="uploadDisabled" :file-list="fileListData" :headers="getHeader()" :on-error="uploadError"
         :on-exceed="uploadExceed" :on-preview="uploadPreview" :on-progress="uploadprogress"
         :on-remove="uploadRemove" :on-success="uploadSuccess" class="hc-upload-border"
         drag multiple
@@ -20,7 +20,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import wbsApi from '~api/data-fill/wbs'
 import { isFileSize } from 'js-fast-way'
 import { toPdfPage } from '~uti/btn-auth'

+ 2 - 2
src/views/tentative/detect/components/ListItem.vue

@@ -255,7 +255,7 @@ import {
     setPosRange,
 } from 'js-fast-way'
 import ossApi from '~api/oss'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { toPdfPage } from '~uti/btn-auth'
 
 //初始
@@ -1659,7 +1659,7 @@ const uploadFileClick = (item) => {
 //上传配置
 const UploadFileOptions = {
     //此处设置header
-    headers: getTokenHeader(),
+    headers: getHeader(),
     url: '/api/blade-manager/wbsTreeContract/import-excel',
 }
 

+ 29 - 28
src/views/tentative/device/components/HcDragUpload.vue

@@ -1,15 +1,17 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="api + action" :auto-upload="autoUpload" :before-upload="beforeUpload"
-               :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1" :on-change="uploadChange"
-               :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
-               :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag>
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="api + action" :auto-upload="autoUpload" :before-upload="beforeUpload"
+        :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1" :on-change="uploadChange"
+        :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
+        :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
+    >
         <div v-loading="uploadDisabled" class="hc-upload-loading upload-file-info" element-loading-text="上传中...">
             <template v-if="uploadFileInfo?.name">
-                <HcIcon class="upload-file-icon" name="file-text"/>
+                <HcIcon class="upload-file-icon" name="file-text" />
                 <div class="upload-file-name">{{ uploadFileInfo?.name }}</div>
             </template>
             <template v-else>
-                <HcIcon class="upload-icon" name="upload-cloud"/>
+                <HcIcon class="upload-icon" name="upload-cloud" />
                 <div class="el-upload__text">拖动文件到这里 或 <em>点击这里选择文件</em> 并上传</div>
             </template>
         </div>
@@ -21,45 +23,47 @@
 </template>
 
 <script setup>
-import {ref, watch} from "vue";
-import {getTokenHeader} from '~src/api/request/header';
-import {isFileSize} from "js-fast-way"
-import {genFileId} from "element-plus";
+import { ref, watch } from 'vue'
+import { getHeader } from 'hc-vue3-ui'
+import { isFileSize } from 'js-fast-way'
+import { genFileId } from 'element-plus'
 
 const props = defineProps({
     datas: {
         type: Object,
-        default: () => ({})
+        default: () => ({}),
     },
     action: {
         type: String,
-        default: "mobilization/read-excel"
+        default: 'mobilization/read-excel',
     },
     accept: {
         type: String,
-        default: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+        default: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
     },
     size: {
         type: Number,
-        default: 20
+        default: 20,
     },
     formatTip: {
         type: String,
-        default: "excel"
+        default: 'excel',
     },
     autoUpload: {
         type: Boolean,
-        default: true
+        default: true,
     },
 })
 
+//事件
+const emit = defineEmits(['progress', 'finished', 'change'])
 //变量
 const uploadRef = ref(null)
 const uploadData = ref(props.datas)
 const uploadFileInfo = ref({})
 const uploadDisabled = ref(false)
 
-const api = '/api/blade-business/device/';
+const api = '/api/blade-business/device/'
 
 //监听
 watch(() => [
@@ -68,16 +72,13 @@ watch(() => [
     uploadData.value = datas
 })
 
-//事件
-const emit = defineEmits(['progress', 'finished', 'change'])
-
 //上传前
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, props.size)) {
-        return true;
+        return true
     } else {
-        window?.$message?.warning('文件大小, 不能过' + props.size + 'M!');
-        return false;
+        window?.$message?.warning('文件大小, 不能过' + props.size + 'M!')
+        return false
     }
 }
 
@@ -96,15 +97,15 @@ const uploadprogress = () => {
 }
 
 //上传完成
-const uploadSuccess = ({code, data}) => {
+const uploadSuccess = ({ code, data }) => {
     uploadDisabled.value = false
     emit('progress', false)
     if (code === 200) {
-        window?.$message?.success('上传成功');
+        window?.$message?.success('上传成功')
         emit('finished', data)
         uploadRef.value?.clearFiles()
     } else {
-        window?.$message?.error('上传失败');
+        window?.$message?.error('上传失败')
     }
 }
 
@@ -112,7 +113,7 @@ const uploadSuccess = ({code, data}) => {
 const uploadError = () => {
     uploadDisabled.value = false
     emit('progress', false)
-    window?.$message?.error('上传失败');
+    window?.$message?.error('上传失败')
 }
 
 //文件改变时
@@ -132,7 +133,7 @@ const clearFiles = () => {
 // 暴露出去
 defineExpose({
     submit,
-    clearFiles
+    clearFiles,
 })
 </script>
 

+ 2 - 2
src/views/tentative/laboratory/components/FormItemUpload.vue

@@ -12,7 +12,7 @@
     >
         <el-upload
             ref="uploadRef" :accept="accept" :action="api + action" :auto-upload="false"
-            :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1"
+            :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1"
             :on-change="uploadChange"
             :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
             :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
@@ -36,7 +36,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 import { toPdfPage } from '~uti/btn-auth'

+ 2 - 2
src/views/tentative/material/components/FormItemUpload.vue

@@ -9,7 +9,7 @@
     <hc-new-dialog v-model="importModal" :loading="uploadDisabled" save-text="确认上传" title="上传文件" widths="38rem" @close="importModalClose" @save="importModalYesClick">
         <el-upload
             ref="uploadRef" :accept="accept" :action="api + action" :auto-upload="false"
-            :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1"
+            :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1"
             :on-change="uploadChange"
             :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
             :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
@@ -33,7 +33,7 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 import { toPdfPage } from '~uti/btn-auth'

+ 4 - 4
src/views/tentative/material/components/HcDragUpload.vue

@@ -1,7 +1,7 @@
 <template>
     <el-upload
         ref="uploadRef" :accept="acceptData" :action="api + actionData" :auto-upload="autoUpload"
-        :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1"
+        :before-upload="beforeUpload" :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1"
         :on-change="uploadChange"
         :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
         :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
@@ -25,7 +25,7 @@
 
 <script setup>
 import { ref, watch } from 'vue'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { isFileSize } from 'js-fast-way'
 import { genFileId } from 'element-plus'
 
@@ -58,7 +58,7 @@ const props = defineProps({
         type: String,
         default: '/api/blade-resource/oss/',
     },
-    
+
 })
 
 //事件
@@ -150,7 +150,7 @@ const clearFiles = () => {
 defineExpose({
     submit,
     clearFiles,
-  
+
 })
 </script>
 

+ 25 - 25
src/views/tentative/parameter/components/HcDragUpload.vue

@@ -1,16 +1,17 @@
 <template>
-    <el-upload ref="uploadRef" :accept="accept" :action="action" :auto-upload="false" :before-upload="beforeUpload"
-               :data="uploadData" :disabled="uploadDisabled" :headers="getTokenHeader()" :limit="1" :on-change="uploadChange"
-               :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
-               :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag>
-
+    <el-upload
+        ref="uploadRef" :accept="accept" :action="action" :auto-upload="false" :before-upload="beforeUpload"
+        :data="uploadData" :disabled="uploadDisabled" :headers="getHeader()" :limit="1" :on-change="uploadChange"
+        :on-error="uploadError" :on-exceed="uploadExceed" :on-progress="uploadprogress"
+        :on-success="uploadSuccess" :show-file-list="false" class="hc-upload-border approach" drag
+    >
         <div v-loading="uploadDisabled" class="hc-upload-loading upload-file-info" element-loading-text="上传中...">
             <template v-if="uploadFileInfo?.name">
-                <HcIcon class="upload-file-icon" name="file-text"/>
+                <HcIcon class="upload-file-icon" name="file-text" />
                 <div class="upload-file-name">{{ uploadFileInfo?.name }}</div>
             </template>
             <template v-else>
-                <HcIcon class="upload-icon" name="upload-cloud"/>
+                <HcIcon class="upload-icon" name="upload-cloud" />
                 <div class="el-upload__text">拖动文件到这里 或 <em>点击这里选择文件</em> 并上传</div>
             </template>
         </div>
@@ -22,22 +23,24 @@
 </template>
 
 <script setup>
-import {ref, watch, onMounted} from "vue";
-import {getTokenHeader} from '~src/api/request/header';
-import {getObjValue, isFileSize} from "js-fast-way"
-import {genFileId} from "element-plus";
+import { onMounted, ref, watch } from 'vue'
+import { getHeader } from 'hc-vue3-ui'
+import { getObjValue, isFileSize } from 'js-fast-way'
+import { genFileId } from 'element-plus'
 
 const props = defineProps({
     datas: {
         type: Object,
-        default: () => ({})
+        default: () => ({}),
     },
     action: {
         type: String,
-        default:'/api/blade-manager/exceltab/add-buss-file'
+        default:'/api/blade-manager/exceltab/add-buss-file',
     },
 })
 
+//事件
+const emit = defineEmits(['progress', 'finished', 'change'])
 //变量
 const uploadRef = ref(null)
 const uploadData = ref(props.datas)
@@ -45,8 +48,8 @@ const uploadFileInfo = ref({})
 const uploadDisabled = ref(false)
 
 
-const action=(props.action)
-const accept = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel';
+const action = (props.action)
+const accept = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel'
 
 //监听
 watch(() => [
@@ -56,16 +59,13 @@ watch(() => [
 })
 
 
-//事件
-const emit = defineEmits(['progress', 'finished', 'change'])
-
 //上传前
 const beforeUpload = async (file) => {
     if (isFileSize(file?.size, 60)) {
-        return true;
+        return true
     } else {
-        window?.$message?.warning('文件大小, 不能过60M!');
-        return false;
+        window?.$message?.warning('文件大小, 不能过60M!')
+        return false
     }
 }
 
@@ -89,7 +89,7 @@ const uploadSuccess = (res) => {
     emit('progress', false)
     emit('finished', {
         type: 'success',
-        data: getObjValue(res?.data)
+        data: getObjValue(res?.data),
     })
 }
 
@@ -99,10 +99,10 @@ const uploadError = (res) => {
     emit('progress', false)
     emit('finished', {
         type: 'error',
-        data: getObjValue(res?.data)
+        data: getObjValue(res?.data),
     })
     let errmsg = JSON.parse(res.message).msg
-    window?.$message?.error(errmsg);
+    window?.$message?.error(errmsg)
 }
 
 //文件改变时
@@ -123,7 +123,7 @@ const clearFiles = () => {
 // 暴露出去
 defineExpose({
     submit,
-    clearFiles
+    clearFiles,
 })
 </script>
 

+ 2 - 2
src/views/user/index.vue

@@ -7,7 +7,7 @@
                     <div class="user-avatar-upload">
                         <el-upload
                             :accept="accept" :action="action" :before-upload="beforeUpload" :data="upData"
-                            :headers="getTokenHeader()" :on-error="uploadError" :on-success="uploadFinish"
+                            :headers="getHeader()" :on-error="uploadError" :on-success="uploadFinish"
                             :show-file-list="false" class="upload-dom"
                         >
                             <HcIcon fill name="camera" />
@@ -261,7 +261,7 @@ import { useAppStore } from '~src/store'
 import userApi from '~api/userInfo/index'
 import { useRoute, useRouter } from 'vue-router'
 import avatarPng from '~src/assets/images/avatar.png'
-import { getTokenHeader } from '~src/api/request/header'
+import { getHeader } from 'hc-vue3-ui'
 import { arrIndex, formValidate, getArrValue, isPhone } from 'js-fast-way'
 import { getContractUserList } from '~api/other'
 import md5 from 'js-md5'

+ 4 - 4
yarn.lock

@@ -1366,10 +1366,10 @@ hasown@^2.0.0:
   dependencies:
     function-bind "^1.1.2"
 
-hc-vue3-ui@^3.4.0:
-  version "3.4.0"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.4.0.tgz#ed86cc070ca775486815453e96d7f90ff7be06c2"
-  integrity sha512-PugGUa7UMd+ufKzWURJLNzl2d79WwLGGEqWYLX+eUajKanN++ZrXGjxxdxNN1MTZz7BumBePWjXH5/L+PoXHmA==
+hc-vue3-ui@^3.4.6:
+  version "3.4.6"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.4.6.tgz#d590df95852ece36a94553a08c7290ef3dc19145"
+  integrity sha512-usCu5o5AIkSVoSvQdMt7Eu8lzbNlu4xi9toDUVjLmgU5Hdqo1ACfOWiXoupRaepAM4usavXWqhX4JCPFYa3F6Q==
   dependencies:
     axios "^1.6.7"
     dayjs "^1.11.10"