From abfd448247b03b07ac70b0ec97481c4862f381b5 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 25 Mar 2024 14:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4+=E4=BC=98=E5=8C=96=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 4 +- src/api/bpm/activity.js | 9 - src/api/bpm/definition.js | 24 - src/api/bpm/form.js | 52 - src/api/bpm/leave.js | 27 - src/api/bpm/model.js | 58 - src/api/bpm/processInstance.js | 35 - src/api/bpm/task.js | 63 - src/api/bpm/taskAssignRule.js | 25 - src/api/bpm/userGroup.js | 52 - src/api/infra/apiAccessLog.js | 20 - src/api/infra/apiErrorLog.js | 28 - src/api/infra/codegen.js | 90 -- src/api/infra/config.js | 62 - src/api/infra/dataSourceConfig.js | 43 - src/api/infra/dbDoc.js | 26 - src/api/infra/file.js | 18 - src/api/infra/fileConfig.js | 59 - src/api/infra/job.js | 82 -- src/api/infra/jobLog.js | 28 - src/api/infra/redis.js | 9 - src/api/infra/testDemo.js | 54 - src/api/mall/market/banner.js | 54 - src/api/mall/product/brand.js | 63 - src/api/mall/product/category.js | 44 - src/api/mall/product/property.js | 113 -- src/api/mall/product/sku.js | 9 - src/api/mall/product/spu.js | 52 - src/api/mall/promotion/coupon.js | 18 - src/api/mall/promotion/couponTemplate.js | 67 -- src/api/mall/promotion/discountActivity.js | 52 - src/api/mall/promotion/rewardActivity.js | 52 - src/api/mall/promotion/seckillActivity.js | 52 - src/api/mall/promotion/seckillTime.js | 62 - src/api/mall/trade/afterSale.js | 18 - src/api/mall/trade/order.js | 18 - src/api/mp/account.js | 68 -- src/api/mp/autoReply.js | 44 - src/api/mp/draft.js | 38 - src/api/mp/freePublish.js | 26 - src/api/mp/material.js | 18 - src/api/mp/menu.js | 29 - src/api/mp/message.js | 19 - src/api/mp/mpuser.js | 35 - src/api/mp/statistics.js | 37 - src/api/mp/tag.js | 60 - src/api/pay/app.js | 78 -- src/api/pay/channel.js | 71 -- src/api/pay/demo.js | 35 - src/api/pay/merchant.js | 77 -- src/api/pay/order.js | 53 - src/api/pay/refund.js | 54 - src/main.js | 43 +- src/router/index.js | 399 +++---- .../check => styles}/iconfont/demo.css | 0 .../check => styles}/iconfont/iconfont.css | 0 .../check => styles}/iconfont/iconfont.eot | Bin .../check => styles}/iconfont/iconfont.js | 0 .../check => styles}/iconfont/iconfont.json | 0 .../check => styles}/iconfont/iconfont.svg | 0 .../check => styles}/iconfont/iconfont.ttf | Bin .../check => styles}/iconfont/iconfont.woff | Bin .../check => styles}/iconfont/iconfont.woff2 | Bin src/views/bpm/definition/index.vue | 174 --- src/views/bpm/form/formEditor.vue | 567 --------- src/views/bpm/form/index.vue | 161 --- src/views/bpm/group/index.vue | 246 ---- src/views/bpm/model/index.vue | 548 --------- src/views/bpm/model/modelEditor.vue | 170 --- src/views/bpm/oa/leave/create.vue | 75 -- src/views/bpm/oa/leave/detail.vue | 59 - src/views/bpm/oa/leave/index.vue | 173 --- src/views/bpm/processInstance/create.vue | 168 --- src/views/bpm/processInstance/detail.vue | 400 ------- src/views/bpm/processInstance/index.vue | 182 --- src/views/bpm/task/done/index.vue | 120 -- src/views/bpm/task/todo/index.vue | 107 -- .../taskAssignRule/taskAssignRuleDialog.vue | 337 ------ src/views/infra/apiAccessLog/index.vue | 210 ---- src/views/infra/apiErrorLog/index.vue | 228 ---- src/views/infra/build/App.vue | 22 - src/views/infra/build/CodeTypeDialog.vue | 110 -- src/views/infra/build/DraggableItem.vue | 120 -- src/views/infra/build/FormDrawer.vue | 331 ------ src/views/infra/build/IconsDialog.vue | 123 -- src/views/infra/build/JsonDrawer.vue | 144 --- src/views/infra/build/README.md | 0 src/views/infra/build/ResourceDialog.vue | 116 -- src/views/infra/build/RightPanel.vue | 1050 ----------------- src/views/infra/build/TreeNodeDialog.vue | 158 --- src/views/infra/build/index.vue | 470 -------- src/views/infra/build/main.js | 19 - src/views/infra/codegen/basicInfoForm.vue | 67 -- src/views/infra/codegen/editTable.vue | 235 ---- src/views/infra/codegen/genInfoForm.vue | 339 ------ src/views/infra/codegen/importTable.vue | 114 -- src/views/infra/codegen/index.vue | 317 ----- src/views/infra/config/index.vue | 262 ---- src/views/infra/dataSourceConfig/index.vue | 166 --- src/views/infra/dbDoc/index.vue | 70 -- src/views/infra/druid/index.vue | 32 - src/views/infra/file/index.vue | 216 ---- src/views/infra/fileConfig/index.vue | 305 ----- src/views/infra/job/index.vue | 378 ------ src/views/infra/job/log.vue | 181 --- src/views/infra/redis/index.vue | 157 --- src/views/infra/server/index.vue | 30 - src/views/infra/skywalking/index.vue | 30 - src/views/infra/swagger/index.vue | 31 - src/views/infra/testDemo/index.vue | 257 ---- src/views/infra/webSocket/index.vue | 92 -- src/views/mall/market/banner/index.vue | 261 ---- src/views/mall/product/brand/index.vue | 247 ---- src/views/mall/product/category/index.vue | 270 ----- src/views/mall/product/property/index.vue | 207 ---- src/views/mall/product/property/value.vue | 240 ---- src/views/mall/product/spu/index.vue | 392 ------ src/views/mall/product/spu/save.vue | 580 --------- src/views/mall/promotion/coupon/index.vue | 164 --- .../mall/promotion/couponTemplate/index.vue | 404 ------- .../mall/promotion/discountActivity/index.vue | 383 ------ .../mall/promotion/rewardActivity/index.vue | 306 ----- .../seckill/seckillActivity/index.vue | 491 -------- .../promotion/seckill/seckillTime/index.vue | 198 ---- src/views/mall/trade/afterSale/index.vue | 229 ---- src/views/mall/trade/order/detail.vue | 279 ----- src/views/mall/trade/order/index.vue | 281 ----- src/views/mp/account/index.vue | 290 ----- src/views/mp/autoReply/index.vue | 384 ------ .../mp/components/wx-editor/WxEditor.vue | 230 ---- src/views/mp/components/wx-location/main.vue | 36 - .../mp/components/wx-material-select/main.vue | 247 ---- src/views/mp/components/wx-msg/card.scss | 101 -- src/views/mp/components/wx-msg/comment.scss | 88 -- src/views/mp/components/wx-msg/main.vue | 294 ----- src/views/mp/components/wx-music/main.vue | 52 - src/views/mp/components/wx-news/main.vue | 104 -- src/views/mp/components/wx-reply/main.vue | 547 --------- .../mp/components/wx-video-play/main.vue | 91 -- .../mp/components/wx-voice-play/main.vue | 98 -- src/views/mp/draft/index.vue | 700 ----------- src/views/mp/freePublish/index.vue | 395 ------- src/views/mp/material/index.vue | 440 ------- src/views/mp/menu/assets/demo.png | Bin 38335 -> 0 bytes src/views/mp/menu/assets/iphone_backImg.png | Bin 34272 -> 0 bytes src/views/mp/menu/assets/logo.png | Bin 6849 -> 0 bytes src/views/mp/menu/assets/menu_foot.png | Bin 1348 -> 0 bytes src/views/mp/menu/assets/menu_head.png | Bin 12673 -> 0 bytes src/views/mp/menu/index.vue | 714 ----------- src/views/mp/message/index.vue | 238 ---- src/views/mp/statistics/index.vue | 364 ------ src/views/mp/tag/index.vue | 243 ---- src/views/mp/user/index.vue | 236 ---- .../pay/app/components/aliPayChannelForm.vue | 358 ------ .../pay/app/components/wechatChannelForm.vue | 299 ----- src/views/pay/app/index.vue | 484 -------- src/views/pay/demo/index.vue | 214 ---- src/views/pay/merchant/index.vue | 282 ----- src/views/pay/order/index.vue | 439 ------- src/views/pay/order/submit.vue | 397 ------- src/views/pay/refund/index.vue | 486 -------- .../specialEquipment/basic/FireFighthing.vue | 61 +- .../check/CheckOrderListTable.vue | 2 +- .../specialEquipment/check/Content-edit.vue | 30 +- src/views/specialEquipment/check/Content.vue | 4 +- .../maintain/WaitingListPlanned--edit.vue | 95 +- .../maintain/WaitingListTable.vue | 62 +- .../WaitingListUnplanned--add_detail.vue | 22 +- .../maintain/iconfont/demo.css | 539 --------- .../maintain/iconfont/iconfont.css | 38 - .../maintain/iconfont/iconfont.eot | Bin 2664 -> 0 bytes .../maintain/iconfont/iconfont.js | 1 - .../maintain/iconfont/iconfont.json | 44 - .../maintain/iconfont/iconfont.svg | 29 - .../maintain/iconfont/iconfont.ttf | Bin 2496 -> 0 bytes .../maintain/iconfont/iconfont.woff | Bin 1544 -> 0 bytes .../maintain/iconfont/iconfont.woff2 | Bin 1120 -> 0 bytes 177 files changed, 289 insertions(+), 27014 deletions(-) delete mode 100644 src/api/bpm/activity.js delete mode 100644 src/api/bpm/definition.js delete mode 100644 src/api/bpm/form.js delete mode 100644 src/api/bpm/leave.js delete mode 100644 src/api/bpm/model.js delete mode 100644 src/api/bpm/processInstance.js delete mode 100644 src/api/bpm/task.js delete mode 100644 src/api/bpm/taskAssignRule.js delete mode 100644 src/api/bpm/userGroup.js delete mode 100644 src/api/infra/apiAccessLog.js delete mode 100644 src/api/infra/apiErrorLog.js delete mode 100644 src/api/infra/codegen.js delete mode 100644 src/api/infra/config.js delete mode 100644 src/api/infra/dataSourceConfig.js delete mode 100644 src/api/infra/dbDoc.js delete mode 100644 src/api/infra/file.js delete mode 100644 src/api/infra/fileConfig.js delete mode 100644 src/api/infra/job.js delete mode 100644 src/api/infra/jobLog.js delete mode 100644 src/api/infra/redis.js delete mode 100644 src/api/infra/testDemo.js delete mode 100644 src/api/mall/market/banner.js delete mode 100644 src/api/mall/product/brand.js delete mode 100644 src/api/mall/product/category.js delete mode 100644 src/api/mall/product/property.js delete mode 100644 src/api/mall/product/sku.js delete mode 100644 src/api/mall/product/spu.js delete mode 100644 src/api/mall/promotion/coupon.js delete mode 100644 src/api/mall/promotion/couponTemplate.js delete mode 100644 src/api/mall/promotion/discountActivity.js delete mode 100644 src/api/mall/promotion/rewardActivity.js delete mode 100644 src/api/mall/promotion/seckillActivity.js delete mode 100644 src/api/mall/promotion/seckillTime.js delete mode 100644 src/api/mall/trade/afterSale.js delete mode 100644 src/api/mall/trade/order.js delete mode 100644 src/api/mp/account.js delete mode 100644 src/api/mp/autoReply.js delete mode 100644 src/api/mp/draft.js delete mode 100644 src/api/mp/freePublish.js delete mode 100644 src/api/mp/material.js delete mode 100644 src/api/mp/menu.js delete mode 100644 src/api/mp/message.js delete mode 100644 src/api/mp/mpuser.js delete mode 100644 src/api/mp/statistics.js delete mode 100644 src/api/mp/tag.js delete mode 100644 src/api/pay/app.js delete mode 100644 src/api/pay/channel.js delete mode 100644 src/api/pay/demo.js delete mode 100644 src/api/pay/merchant.js delete mode 100644 src/api/pay/order.js delete mode 100644 src/api/pay/refund.js rename src/{views/specialEquipment/check => styles}/iconfont/demo.css (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.css (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.eot (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.js (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.json (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.svg (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.ttf (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.woff (100%) rename src/{views/specialEquipment/check => styles}/iconfont/iconfont.woff2 (100%) delete mode 100644 src/views/bpm/definition/index.vue delete mode 100644 src/views/bpm/form/formEditor.vue delete mode 100644 src/views/bpm/form/index.vue delete mode 100644 src/views/bpm/group/index.vue delete mode 100644 src/views/bpm/model/index.vue delete mode 100644 src/views/bpm/model/modelEditor.vue delete mode 100644 src/views/bpm/oa/leave/create.vue delete mode 100644 src/views/bpm/oa/leave/detail.vue delete mode 100644 src/views/bpm/oa/leave/index.vue delete mode 100644 src/views/bpm/processInstance/create.vue delete mode 100644 src/views/bpm/processInstance/detail.vue delete mode 100644 src/views/bpm/processInstance/index.vue delete mode 100644 src/views/bpm/task/done/index.vue delete mode 100644 src/views/bpm/task/todo/index.vue delete mode 100644 src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue delete mode 100644 src/views/infra/apiAccessLog/index.vue delete mode 100644 src/views/infra/apiErrorLog/index.vue delete mode 100644 src/views/infra/build/App.vue delete mode 100644 src/views/infra/build/CodeTypeDialog.vue delete mode 100644 src/views/infra/build/DraggableItem.vue delete mode 100644 src/views/infra/build/FormDrawer.vue delete mode 100644 src/views/infra/build/IconsDialog.vue delete mode 100644 src/views/infra/build/JsonDrawer.vue delete mode 100644 src/views/infra/build/README.md delete mode 100644 src/views/infra/build/ResourceDialog.vue delete mode 100644 src/views/infra/build/RightPanel.vue delete mode 100644 src/views/infra/build/TreeNodeDialog.vue delete mode 100644 src/views/infra/build/index.vue delete mode 100644 src/views/infra/build/main.js delete mode 100644 src/views/infra/codegen/basicInfoForm.vue delete mode 100644 src/views/infra/codegen/editTable.vue delete mode 100644 src/views/infra/codegen/genInfoForm.vue delete mode 100644 src/views/infra/codegen/importTable.vue delete mode 100644 src/views/infra/codegen/index.vue delete mode 100644 src/views/infra/config/index.vue delete mode 100644 src/views/infra/dataSourceConfig/index.vue delete mode 100644 src/views/infra/dbDoc/index.vue delete mode 100644 src/views/infra/druid/index.vue delete mode 100644 src/views/infra/file/index.vue delete mode 100644 src/views/infra/fileConfig/index.vue delete mode 100644 src/views/infra/job/index.vue delete mode 100644 src/views/infra/job/log.vue delete mode 100644 src/views/infra/redis/index.vue delete mode 100644 src/views/infra/server/index.vue delete mode 100644 src/views/infra/skywalking/index.vue delete mode 100644 src/views/infra/swagger/index.vue delete mode 100644 src/views/infra/testDemo/index.vue delete mode 100644 src/views/infra/webSocket/index.vue delete mode 100644 src/views/mall/market/banner/index.vue delete mode 100644 src/views/mall/product/brand/index.vue delete mode 100644 src/views/mall/product/category/index.vue delete mode 100644 src/views/mall/product/property/index.vue delete mode 100644 src/views/mall/product/property/value.vue delete mode 100644 src/views/mall/product/spu/index.vue delete mode 100644 src/views/mall/product/spu/save.vue delete mode 100644 src/views/mall/promotion/coupon/index.vue delete mode 100644 src/views/mall/promotion/couponTemplate/index.vue delete mode 100644 src/views/mall/promotion/discountActivity/index.vue delete mode 100644 src/views/mall/promotion/rewardActivity/index.vue delete mode 100644 src/views/mall/promotion/seckill/seckillActivity/index.vue delete mode 100644 src/views/mall/promotion/seckill/seckillTime/index.vue delete mode 100644 src/views/mall/trade/afterSale/index.vue delete mode 100644 src/views/mall/trade/order/detail.vue delete mode 100644 src/views/mall/trade/order/index.vue delete mode 100644 src/views/mp/account/index.vue delete mode 100644 src/views/mp/autoReply/index.vue delete mode 100644 src/views/mp/components/wx-editor/WxEditor.vue delete mode 100644 src/views/mp/components/wx-location/main.vue delete mode 100644 src/views/mp/components/wx-material-select/main.vue delete mode 100644 src/views/mp/components/wx-msg/card.scss delete mode 100644 src/views/mp/components/wx-msg/comment.scss delete mode 100644 src/views/mp/components/wx-msg/main.vue delete mode 100644 src/views/mp/components/wx-music/main.vue delete mode 100644 src/views/mp/components/wx-news/main.vue delete mode 100644 src/views/mp/components/wx-reply/main.vue delete mode 100644 src/views/mp/components/wx-video-play/main.vue delete mode 100644 src/views/mp/components/wx-voice-play/main.vue delete mode 100644 src/views/mp/draft/index.vue delete mode 100644 src/views/mp/freePublish/index.vue delete mode 100644 src/views/mp/material/index.vue delete mode 100644 src/views/mp/menu/assets/demo.png delete mode 100644 src/views/mp/menu/assets/iphone_backImg.png delete mode 100644 src/views/mp/menu/assets/logo.png delete mode 100644 src/views/mp/menu/assets/menu_foot.png delete mode 100644 src/views/mp/menu/assets/menu_head.png delete mode 100644 src/views/mp/menu/index.vue delete mode 100644 src/views/mp/message/index.vue delete mode 100644 src/views/mp/statistics/index.vue delete mode 100644 src/views/mp/tag/index.vue delete mode 100644 src/views/mp/user/index.vue delete mode 100644 src/views/pay/app/components/aliPayChannelForm.vue delete mode 100644 src/views/pay/app/components/wechatChannelForm.vue delete mode 100644 src/views/pay/app/index.vue delete mode 100644 src/views/pay/demo/index.vue delete mode 100644 src/views/pay/merchant/index.vue delete mode 100644 src/views/pay/order/index.vue delete mode 100644 src/views/pay/order/submit.vue delete mode 100644 src/views/pay/refund/index.vue delete mode 100644 src/views/specialEquipment/maintain/iconfont/demo.css delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.css delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.eot delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.js delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.json delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.svg delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.ttf delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.woff delete mode 100644 src/views/specialEquipment/maintain/iconfont/iconfont.woff2 diff --git a/.prettierrc b/.prettierrc index 98d5a108..64d8eebe 100644 --- a/.prettierrc +++ b/.prettierrc @@ -7,5 +7,7 @@ "vueIndentScriptAndStyle": false, "semi": true, "singleQuote": true, - "trailingComma": "es5" + "trailingComma": "es5", + "jsxBracketSameLine": true, + "singleAttributePerLine": true } diff --git a/src/api/bpm/activity.js b/src/api/bpm/activity.js deleted file mode 100644 index 8f1241ed..00000000 --- a/src/api/bpm/activity.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request' - -export function getActivityList(query) { - return request({ - url: '/bpm/activity/list', - method: 'get', - params: query - }) -} diff --git a/src/api/bpm/definition.js b/src/api/bpm/definition.js deleted file mode 100644 index b1d9b979..00000000 --- a/src/api/bpm/definition.js +++ /dev/null @@ -1,24 +0,0 @@ -import request from '@/utils/request' - -export function getProcessDefinitionPage(query) { - return request({ - url: '/bpm/process-definition/page', - method: 'get', - params: query - }) -} - -export function getProcessDefinitionList(query) { - return request({ - url: '/bpm/process-definition/list', - method: 'get', - params: query - }) -} - -export function getProcessDefinitionBpmnXML(id) { - return request({ - url: '/bpm/process-definition/get-bpmn-xml?id=' + id, - method: 'get' - }) -} diff --git a/src/api/bpm/form.js b/src/api/bpm/form.js deleted file mode 100644 index 1a5b3c6e..00000000 --- a/src/api/bpm/form.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建工作流的表单定义 -export function createForm(data) { - return request({ - url: '/bpm/form/create', - method: 'post', - data: data - }) -} - -// 更新工作流的表单定义 -export function updateForm(data) { - return request({ - url: '/bpm/form/update', - method: 'put', - data: data - }) -} - -// 删除工作流的表单定义 -export function deleteForm(id) { - return request({ - url: '/bpm/form/delete?id=' + id, - method: 'delete' - }) -} - -// 获得工作流的表单定义 -export function getForm(id) { - return request({ - url: '/bpm/form/get?id=' + id, - method: 'get' - }) -} - -// 获得工作流的表单定义分页 -export function getFormPage(query) { - return request({ - url: '/bpm/form/page', - method: 'get', - params: query - }) -} - -// 获得动态表单的精简列表 -export function getSimpleForms() { - return request({ - url: '/bpm/form/list-all-simple', - method: 'get' - }) -} diff --git a/src/api/bpm/leave.js b/src/api/bpm/leave.js deleted file mode 100644 index 758389c8..00000000 --- a/src/api/bpm/leave.js +++ /dev/null @@ -1,27 +0,0 @@ -import request from '@/utils/request' - -// 创建请假申请 -export function createLeave(data) { - return request({ - url: '/bpm/oa/leave/create', - method: 'post', - data: data - }) -} - -// 获得请假申请 -export function getLeave(id) { - return request({ - url: '/bpm/oa/leave/get?id=' + id, - method: 'get' - }) -} - -// 获得请假申请分页 -export function getLeavePage(query) { - return request({ - url: '/bpm/oa/leave/page', - method: 'get', - params: query - }) -} diff --git a/src/api/bpm/model.js b/src/api/bpm/model.js deleted file mode 100644 index 83dca300..00000000 --- a/src/api/bpm/model.js +++ /dev/null @@ -1,58 +0,0 @@ -import request from '@/utils/request' - -export function getModelPage(query) { - return request({ - url: '/bpm/model/page', - method: 'get', - params: query - }) -} - -export function getModel(id) { - return request({ - url: '/bpm/model/get?id=' + id, - method: 'get' - }) -} - -export function updateModel(data) { - return request({ - url: '/bpm/model/update', - method: 'PUT', - data: data - }) -} - -// 任务状态修改 -export function updateModelState(id, state) { - return request({ - url: '/bpm/model/update-state', - method: 'put', - data: { - id, - state - } - }) -} - -export function createModel(data) { - return request({ - url: '/bpm/model/create', - method: 'POST', - data: data - }) -} - -export function deleteModel(id) { - return request({ - url: '/bpm/model/delete?id=' + id, - method: 'DELETE' - }) -} - -export function deployModel(id) { - return request({ - url: '/bpm/model/deploy?id=' + id, - method: 'POST' - }) -} diff --git a/src/api/bpm/processInstance.js b/src/api/bpm/processInstance.js deleted file mode 100644 index 58c456f7..00000000 --- a/src/api/bpm/processInstance.js +++ /dev/null @@ -1,35 +0,0 @@ -import request from '@/utils/request' - -export function getMyProcessInstancePage(query) { - return request({ - url: '/bpm/process-instance/my-page', - method: 'get', - params: query - }) -} - -export function createProcessInstance(data) { - return request({ - url: '/bpm/process-instance/create', - method: 'POST', - data: data - }) -} - -export function cancelProcessInstance(id, reason) { - return request({ - url: '/bpm/process-instance/cancel', - method: 'DELETE', - data: { - id, - reason - } - }) -} - -export function getProcessInstance(id) { - return request({ - url: '/bpm/process-instance/get?id=' + id, - method: 'get', - }) -} diff --git a/src/api/bpm/task.js b/src/api/bpm/task.js deleted file mode 100644 index aa32263f..00000000 --- a/src/api/bpm/task.js +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request' - -export function getTodoTaskPage(query) { - return request({ - url: '/bpm/task/todo-page', - method: 'get', - params: query - }) -} - -export function getDoneTaskPage(query) { - return request({ - url: '/bpm/task/done-page', - method: 'get', - params: query - }) -} - -export function completeTask(data) { - return request({ - url: '/bpm/task/complete', - method: 'PUT', - data: data - }) -} - -export function approveTask(data) { - return request({ - url: '/bpm/task/approve', - method: 'PUT', - data: data - }) -} - -export function rejectTask(data) { - return request({ - url: '/bpm/task/reject', - method: 'PUT', - data: data - }) -} -export function backTask(data) { - return request({ - url: '/bpm/task/back', - method: 'PUT', - data: data - }) -} - -export function updateTaskAssignee(data) { - return request({ - url: '/bpm/task/update-assignee', - method: 'PUT', - data: data - }) -} - -export function getTaskListByProcessInstanceId(processInstanceId) { - return request({ - url: '/bpm/task/list-by-process-instance-id?processInstanceId=' + processInstanceId, - method: 'get', - }) -} diff --git a/src/api/bpm/taskAssignRule.js b/src/api/bpm/taskAssignRule.js deleted file mode 100644 index a3e60663..00000000 --- a/src/api/bpm/taskAssignRule.js +++ /dev/null @@ -1,25 +0,0 @@ -import request from '@/utils/request' - -export function getTaskAssignRuleList(query) { - return request({ - url: '/bpm/task-assign-rule/list', - method: 'get', - params: query - }) -} - -export function createTaskAssignRule(data) { - return request({ - url: '/bpm/task-assign-rule/create', - method: 'post', - data: data - }) -} - -export function updateTaskAssignRule(data) { - return request({ - url: '/bpm/task-assign-rule/update', - method: 'put', - data: data - }) -} diff --git a/src/api/bpm/userGroup.js b/src/api/bpm/userGroup.js deleted file mode 100644 index 251baff0..00000000 --- a/src/api/bpm/userGroup.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建用户组 -export function createUserGroup(data) { - return request({ - url: '/bpm/user-group/create', - method: 'post', - data: data - }) -} - -// 更新用户组 -export function updateUserGroup(data) { - return request({ - url: '/bpm/user-group/update', - method: 'put', - data: data - }) -} - -// 删除用户组 -export function deleteUserGroup(id) { - return request({ - url: '/bpm/user-group/delete?id=' + id, - method: 'delete' - }) -} - -// 获得用户组 -export function getUserGroup(id) { - return request({ - url: '/bpm/user-group/get?id=' + id, - method: 'get' - }) -} - -// 获得用户组分页 -export function getUserGroupPage(query) { - return request({ - url: '/bpm/user-group/page', - method: 'get', - params: query - }) -} - -// 获取用户组精简信息列表 -export function listSimpleUserGroups() { - return request({ - url: '/bpm/user-group/list-all-simple', - method: 'get' - }) -} diff --git a/src/api/infra/apiAccessLog.js b/src/api/infra/apiAccessLog.js deleted file mode 100644 index 6456a508..00000000 --- a/src/api/infra/apiAccessLog.js +++ /dev/null @@ -1,20 +0,0 @@ -import request from '@/utils/request' - -// 获得API 访问日志分页 -export function getApiAccessLogPage(query) { - return request({ - url: '/infra/api-access-log/page', - method: 'get', - params: query - }) -} - -// 导出API 访问日志 Excel -export function exportApiAccessLogExcel(query) { - return request({ - url: '/infra/api-access-log/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/infra/apiErrorLog.js b/src/api/infra/apiErrorLog.js deleted file mode 100644 index 65942d13..00000000 --- a/src/api/infra/apiErrorLog.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from '@/utils/request' - -// 更新 API 错误日志的处理状态 -export function updateApiErrorLogProcess(id, processStatus) { - return request({ - url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus, - method: 'put', - }) -} - -// 获得API 错误日志分页 -export function getApiErrorLogPage(query) { - return request({ - url: '/infra/api-error-log/page', - method: 'get', - params: query - }) -} - -// 导出API 错误日志 Excel -export function exportApiErrorLogExcel(query) { - return request({ - url: '/infra/api-error-log/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/infra/codegen.js b/src/api/infra/codegen.js deleted file mode 100644 index ffb3e043..00000000 --- a/src/api/infra/codegen.js +++ /dev/null @@ -1,90 +0,0 @@ -import request from '@/utils/request' - -// 获得表定义分页 -export function getCodegenTablePage(query) { - return request({ - url: '/infra/codegen/table/page', - method: 'get', - params: query - }) -} - -// 获得表和字段的明细 -export function getCodegenDetail(tableId) { - return request({ - url: '/infra/codegen/detail?tableId=' + tableId, - method: 'get', - }) -} - -// 修改代码生成信息 -export function updateCodegen(data) { - return request({ - url: '/infra/codegen/update', - method: 'put', - data: data - }) -} - -// 基于数据库的表结构,同步数据库的表和字段定义 -export function syncCodegenFromDB(tableId) { - return request({ - url: '/infra/codegen/sync-from-db?tableId=' + tableId, - method: 'put' - }) -} - -// 基于 SQL 建表语句,同步数据库的表和字段定义 -export function syncCodegenFromSQL(tableId, sql) { - return request({ - url: '/infra/codegen/sync-from-sql?tableId=' + tableId, - method: 'put', - headers:{ - 'Content-type': 'application/x-www-form-urlencoded' - }, - data: 'tableId=' + tableId + "&sql=" + sql, - }) -} - -// 预览生成代码 -export function previewCodegen(tableId) { - return request({ - url: '/infra/codegen/preview?tableId=' + tableId, - method: 'get', - }) -} - -// 下载生成代码 -export function downloadCodegen(tableId) { - return request({ - url: '/infra/codegen/download?tableId=' + tableId, - method: 'get', - responseType: 'blob' - }) -} - -// 获得表定义分页 -export function getSchemaTableList(query) { - return request({ - url: '/infra/codegen/db/table/list', - method: 'get', - params: query - }) -} - -// 基于数据库的表结构,创建代码生成器的表定义 -export function createCodegenList(data) { - return request({ - url: '/infra/codegen/create-list', - method: 'post', - data: data - }) -} - -// 删除数据库的表和字段定义 -export function deleteCodegen(tableId) { - return request({ - url: '/infra/codegen/delete?tableId=' + tableId, - method: 'delete' - }) -} diff --git a/src/api/infra/config.js b/src/api/infra/config.js deleted file mode 100644 index eec15177..00000000 --- a/src/api/infra/config.js +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request' - -// 查询参数列表 -export function listConfig(query) { - return request({ - url: '/infra/config/page', - method: 'get', - params: query - }) -} - -// 查询参数详细 -export function getConfig(configId) { - return request({ - url: '/infra/config/get?id=' + configId, - method: 'get' - }) -} - -// 根据参数键名查询参数值 -export function getConfigKey(configKey) { - return request({ - url: '/infra/config/get-value-by-key?key=' + configKey, - method: 'get' - }) -} - -// 新增参数配置 -export function addConfig(data) { - return request({ - url: '/infra/config/create', - method: 'post', - data: data - }) -} - -// 修改参数配置 -export function updateConfig(data) { - return request({ - url: '/infra/config/update', - method: 'put', - data: data - }) -} - -// 删除参数配置 -export function delConfig(configId) { - return request({ - url: '/infra/config/delete?id=' + configId, - method: 'delete' - }) -} - -// 导出参数 -export function exportConfig(query) { - return request({ - url: '/infra/config/export', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/infra/dataSourceConfig.js b/src/api/infra/dataSourceConfig.js deleted file mode 100644 index 2d96b49c..00000000 --- a/src/api/infra/dataSourceConfig.js +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/utils/request' - -// 创建数据源配置 -export function createDataSourceConfig(data) { - return request({ - url: '/infra/data-source-config/create', - method: 'post', - data: data - }) -} - -// 更新数据源配置 -export function updateDataSourceConfig(data) { - return request({ - url: '/infra/data-source-config/update', - method: 'put', - data: data - }) -} - -// 删除数据源配置 -export function deleteDataSourceConfig(id) { - return request({ - url: '/infra/data-source-config/delete?id=' + id, - method: 'delete' - }) -} - -// 获得数据源配置 -export function getDataSourceConfig(id) { - return request({ - url: '/infra/data-source-config/get?id=' + id, - method: 'get' - }) -} - -// 获得数据源配置列表 -export function getDataSourceConfigList() { - return request({ - url: '/infra/data-source-config/list', - method: 'get', - }) -} diff --git a/src/api/infra/dbDoc.js b/src/api/infra/dbDoc.js deleted file mode 100644 index 015c6d71..00000000 --- a/src/api/infra/dbDoc.js +++ /dev/null @@ -1,26 +0,0 @@ -// 导出参数 -import request from "@/utils/request"; - -export function exportHtml() { - return request({ - url: '/infra/db-doc/export-html', - method: 'get', - responseType: 'blob' - }) -} - -export function exportWord() { - return request({ - url: '/infra/db-doc/export-word', - method: 'get', - responseType: 'blob' - }) -} - -export function exportMarkdown() { - return request({ - url: '/infra/db-doc/export-markdown', - method: 'get', - responseType: 'blob' - }) -} diff --git a/src/api/infra/file.js b/src/api/infra/file.js deleted file mode 100644 index 2aeda2e9..00000000 --- a/src/api/infra/file.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 删除文件 -export function deleteFile(id) { - return request({ - url: '/infra/file/delete?id=' + id, - method: 'delete' - }) -} - -// 获得文件分页 -export function getFilePage(query) { - return request({ - url: '/infra/file/page', - method: 'get', - params: query - }) -} diff --git a/src/api/infra/fileConfig.js b/src/api/infra/fileConfig.js deleted file mode 100644 index 4b75773b..00000000 --- a/src/api/infra/fileConfig.js +++ /dev/null @@ -1,59 +0,0 @@ -import request from '@/utils/request' - -// 创建文件配置 -export function createFileConfig(data) { - return request({ - url: '/infra/file-config/create', - method: 'post', - data: data - }) -} - -// 更新文件配置 -export function updateFileConfig(data) { - return request({ - url: '/infra/file-config/update', - method: 'put', - data: data - }) -} - -// 更新文件配置为主配置 -export function updateFileConfigMaster(id) { - return request({ - url: '/infra/file-config/update-master?id=' + id, - method: 'put' - }) -} - -// 删除文件配置 -export function deleteFileConfig(id) { - return request({ - url: '/infra/file-config/delete?id=' + id, - method: 'delete' - }) -} - -// 获得文件配置 -export function getFileConfig(id) { - return request({ - url: '/infra/file-config/get?id=' + id, - method: 'get' - }) -} - -// 获得文件配置分页 -export function getFileConfigPage(query) { - return request({ - url: '/infra/file-config/page', - method: 'get', - params: query - }) -} - -export function testFileConfig(id) { - return request({ - url: '/infra/file-config/test?id=' + id, - method: 'get' - }) -} diff --git a/src/api/infra/job.js b/src/api/infra/job.js deleted file mode 100644 index c2237c51..00000000 --- a/src/api/infra/job.js +++ /dev/null @@ -1,82 +0,0 @@ -import request from '@/utils/request' - -// 查询定时任务调度列表 -export function listJob(query) { - return request({ - url: '/infra/job/page', - method: 'get', - params: query - }) -} - -// 查询定时任务调度详细 -export function getJob(jobId) { - return request({ - url: '/infra/job/get?id=' + jobId, - method: 'get' - }) -} - -// 新增定时任务调度 -export function addJob(data) { - return request({ - url: '/infra/job/create', - method: 'post', - data: data - }) -} - -// 修改定时任务调度 -export function updateJob(data) { - return request({ - url: '/infra/job/update', - method: 'put', - data: data - }) -} - -// 删除定时任务调度 -export function delJob(jobId) { - return request({ - url: '/infra/job/delete?id=' + jobId, - method: 'delete' - }) -} - -// 导出定时任务调度 -export function exportJob(query) { - return request({ - url: '/infra/job/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} - -// 任务状态修改 -export function updateJobStatus(jobId, status) { - return request({ - url: '/infra/job/update-status', - method: 'put', - headers:{ - 'Content-type': 'application/x-www-form-urlencoded' - }, - data: 'id=' + jobId + "&status=" + status, - }) -} - -// 定时任务立即执行一次 -export function runJob(jobId) { - return request({ - url: '/infra/job/trigger?id=' + jobId, - method: 'put' - }) -} - -// 获得定时任务的下 n 次执行时间 -export function getJobNextTimes(jobId) { - return request({ - url: '/infra/job/get_next_times?id=' + jobId, - method: 'get' - }) -} diff --git a/src/api/infra/jobLog.js b/src/api/infra/jobLog.js deleted file mode 100644 index 348f2ed9..00000000 --- a/src/api/infra/jobLog.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from '@/utils/request' - -// 获得定时任务 -export function getJobLog(id) { - return request({ - url: '/infra/job-log/get?id=' + id, - method: 'get' - }) -} - -// 获得定时任务分页 -export function getJobLogPage(query) { - return request({ - url: '/infra/job-log/page', - method: 'get', - params: query - }) -} - -// 导出定时任务 Excel -export function exportJobLogExcel(query) { - return request({ - url: '/infra/job-log/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/infra/redis.js b/src/api/infra/redis.js deleted file mode 100644 index fce18747..00000000 --- a/src/api/infra/redis.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request' - -// 查询缓存详细 -export function getCache() { - return request({ - url: '/infra/redis/get-monitor-info', - method: 'get' - }) -} diff --git a/src/api/infra/testDemo.js b/src/api/infra/testDemo.js deleted file mode 100644 index cec5742b..00000000 --- a/src/api/infra/testDemo.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建字典类型 -export function createTestDemo(data) { - return request({ - url: '/infra/test-demo/create', - method: 'post', - data: data - }) -} - -// 更新字典类型 -export function updateTestDemo(data) { - return request({ - url: '/infra/test-demo/update', - method: 'put', - data: data - }) -} - -// 删除字典类型 -export function deleteTestDemo(id) { - return request({ - url: '/infra/test-demo/delete?id=' + id, - method: 'delete' - }) -} - -// 获得字典类型 -export function getTestDemo(id) { - return request({ - url: '/infra/test-demo/get?id=' + id, - method: 'get' - }) -} - -// 获得字典类型分页 -export function getTestDemoPage(query) { - return request({ - url: '/infra/test-demo/page', - method: 'get', - params: query - }) -} - -// 导出字典类型 Excel -export function exportTestDemoExcel(query) { - return request({ - url: '/infra/test-demo/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/mall/market/banner.js b/src/api/mall/market/banner.js deleted file mode 100644 index 57c55def..00000000 --- a/src/api/mall/market/banner.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建Banner -export function createBanner(data) { - return request({ - url: '/market/banner/create', - method: 'post', - data: data - }) -} - -// 更新Banner -export function updateBanner(data) { - return request({ - url: '/market/banner/update', - method: 'put', - data: data - }) -} - -// 删除Banner -export function deleteBanner(id) { - return request({ - url: '/market/banner/delete?id=' + id, - method: 'delete' - }) -} - -// 获得Banner -export function getBanner(id) { - return request({ - url: '/market/banner/get?id=' + id, - method: 'get' - }) -} - -// 获得Banner分页 -export function getBannerPage(query) { - return request({ - url: '/market/banner/page', - method: 'get', - params: query - }) -} - -// 导出Banner Excel -export function exportBannerExcel(query) { - return request({ - url: '/market/banner/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/mall/product/brand.js b/src/api/mall/product/brand.js deleted file mode 100644 index 2218f42c..00000000 --- a/src/api/mall/product/brand.js +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request' - -// 创建品牌 -export function createBrand(data) { - return request({ - url: '/product/brand/create', - method: 'post', - data: data - }) -} - -// 更新品牌 -export function updateBrand(data) { - return request({ - url: '/product/brand/update', - method: 'put', - data: data - }) -} - -// 删除品牌 -export function deleteBrand(id) { - return request({ - url: '/product/brand/delete?id=' + id, - method: 'delete' - }) -} - -// 获得品牌 -export function getBrand(id) { - return request({ - url: '/product/brand/get?id=' + id, - method: 'get' - }) -} - -// 获得品牌list -export function getBrandList() { - return request({ - url: '/product/brand/list', - method: 'get' - }) -} - - -// 获得品牌分页 -export function getBrandPage(query) { - return request({ - url: '/product/brand/page', - method: 'get', - params: query - }) -} - -// 导出品牌 Excel -export function exportBrandExcel(query) { - return request({ - url: '/product/brand/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/mall/product/category.js b/src/api/mall/product/category.js deleted file mode 100644 index 4b8754b5..00000000 --- a/src/api/mall/product/category.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 创建商品分类 -export function createProductCategory(data) { - return request({ - url: '/product/category/create', - method: 'post', - data: data - }) -} - -// 更新商品分类 -export function updateProductCategory(data) { - return request({ - url: '/product/category/update', - method: 'put', - data: data - }) -} - -// 删除商品分类 -export function deleteProductCategory(id) { - return request({ - url: '/product/category/delete?id=' + id, - method: 'delete' - }) -} - -// 获得商品分类 -export function getProductCategory(id) { - return request({ - url: '/product/category/get?id=' + id, - method: 'get' - }) -} - -// 获得商品分类列表 -export function getProductCategoryList(query) { - return request({ - url: '/product/category/list', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/product/property.js b/src/api/mall/product/property.js deleted file mode 100644 index f0172fb1..00000000 --- a/src/api/mall/product/property.js +++ /dev/null @@ -1,113 +0,0 @@ -import request from '@/utils/request' - -// ------------------------ 属性项 ------------------- - -// 创建属性项 -export function createProperty(data) { - return request({ - url: '/product/property/create', - method: 'post', - data: data - }) -} - -// 更新属性项 -export function updateProperty(data) { - return request({ - url: '/product/property/update', - method: 'put', - data: data - }) -} - -// 删除属性项 -export function deleteProperty(id) { - return request({ - url: '/product/property/delete?id=' + id, - method: 'delete' - }) -} - -// 获得属性项 -export function getProperty(id) { - return request({ - url: '/product/property/get?id=' + id, - method: 'get' - }) -} - -// 获得属性项分页 -export function getPropertyPage(query) { - return request({ - url: '/product/property/page', - method: 'get', - params: query - }) -} - -// 获得属性项列表 -export function getPropertyList(query) { - return request({ - url: '/product/property/list', - method: 'get', - params: query - }) -} - -// 获得属性项列表 -export function getPropertyListAndValue(query) { - return request({ - url: '/product/property/get-value-list', - method: 'get', - params: query - }) -} - -// ------------------------ 属性值 ------------------- - -// 获得属性值分页 -export function getPropertyValuePage(query) { - return request({ - url: '/product/property/value/page', - method: 'get', - params: query - }) -} - -// 获得属性值 -export function getPropertyValue(id) { - return request({ - url: '/product/property/value/get?id=' + id, - method: 'get' - }) -} - - -// 创建属性值 -export function createPropertyValue(data) { - return request({ - url: '/product/property/value/create', - method: 'post', - data: data - }) -} - -// 更新属性值 -export function updatePropertyValue(data) { - return request({ - url: '/product/property/value/update', - method: 'put', - data: data - }) -} - -// 删除属性值 -export function deletePropertyValue(id) { - return request({ - url: '/product/property/value/delete?id=' + id, - method: 'delete' - }) -} - -export class exportPropertyExcel { -} diff --git a/src/api/mall/product/sku.js b/src/api/mall/product/sku.js deleted file mode 100644 index 72b40107..00000000 --- a/src/api/mall/product/sku.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request' - -// 获得商品 SKU 选项的列表 -export function getSkuOptionList() { - return request({ - url: '/product/sku/get-option-list', - method: 'get', - }) -} diff --git a/src/api/mall/product/spu.js b/src/api/mall/product/spu.js deleted file mode 100644 index a6d33123..00000000 --- a/src/api/mall/product/spu.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建商品 SPU -export function createSpu(data) { - return request({ - url: '/product/spu/create', - method: 'post', - data: data - }) -} - -// 更新商品 SPU -export function updateSpu(data) { - return request({ - url: '/product/spu/update', - method: 'put', - data: data - }) -} - -// 删除商品 SPU -export function deleteSpu(id) { - return request({ - url: '/product/spu/delete?id=' + id, - method: 'delete' - }) -} - -// 获得商品 SPU 详情 -export function getSpuDetail(id) { - return request({ - url: '/product/spu/get-detail?id=' + id, - method: 'get' - }) -} - -// 获得商品 SPU 分页 -export function getSpuPage(query) { - return request({ - url: '/product/spu/page', - method: 'get', - params: query - }) -} - -// 获得商品 SPU 精简列表 -export function getSpuSimpleList() { - return request({ - url: '/product/spu/get-simple-list', - method: 'get', - }) -} diff --git a/src/api/mall/promotion/coupon.js b/src/api/mall/promotion/coupon.js deleted file mode 100644 index d5a113b8..00000000 --- a/src/api/mall/promotion/coupon.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 删除优惠劵 -export function deleteCoupon(id) { - return request({ - url: '/promotion/coupon/delete?id=' + id, - method: 'delete' - }) -} - -// 获得优惠劵分页 -export function getCouponPage(query) { - return request({ - url: '/promotion/coupon/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/promotion/couponTemplate.js b/src/api/mall/promotion/couponTemplate.js deleted file mode 100644 index 29f81a19..00000000 --- a/src/api/mall/promotion/couponTemplate.js +++ /dev/null @@ -1,67 +0,0 @@ -import request from '@/utils/request' - -// 创建优惠劵模板 -export function createCouponTemplate(data) { - return request({ - url: '/promotion/coupon-template/create', - method: 'post', - data: data - }) -} - -// 更新优惠劵模板 -export function updateCouponTemplate(data) { - return request({ - url: '/promotion/coupon-template/update', - method: 'put', - data: data - }) -} - -// 更新优惠劵模板的状态 -export function updateCouponTemplateStatus(id, status) { - const data = { - id, - status - } - return request({ - url: '/promotion/coupon-template/update-status', - method: 'put', - data: data - }) -} - -// 删除优惠劵模板 -export function deleteCouponTemplate(id) { - return request({ - url: '/promotion/coupon-template/delete?id=' + id, - method: 'delete' - }) -} - -// 获得优惠劵模板 -export function getCouponTemplate(id) { - return request({ - url: '/promotion/coupon-template/get?id=' + id, - method: 'get' - }) -} - -// 获得优惠劵模板分页 -export function getCouponTemplatePage(query) { - return request({ - url: '/promotion/coupon-template/page', - method: 'get', - params: query - }) -} - -// 导出优惠劵模板 Excel -export function exportCouponTemplateExcel(query) { - return request({ - url: '/promotion/coupon-template/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/mall/promotion/discountActivity.js b/src/api/mall/promotion/discountActivity.js deleted file mode 100644 index fd32597e..00000000 --- a/src/api/mall/promotion/discountActivity.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建限时折扣活动 -export function createDiscountActivity(data) { - return request({ - url: '/promotion/discount-activity/create', - method: 'post', - data: data - }) -} - -// 更新限时折扣活动 -export function updateDiscountActivity(data) { - return request({ - url: '/promotion/discount-activity/update', - method: 'put', - data: data - }) -} - -// 关闭限时折扣活动 -export function closeDiscountActivity(id) { - return request({ - url: '/promotion/discount-activity/close?id=' + id, - method: 'put' - }) -} - -// 删除限时折扣活动 -export function deleteDiscountActivity(id) { - return request({ - url: '/promotion/discount-activity/delete?id=' + id, - method: 'delete' - }) -} - -// 获得限时折扣活动 -export function getDiscountActivity(id) { - return request({ - url: '/promotion/discount-activity/get?id=' + id, - method: 'get' - }) -} - -// 获得限时折扣活动分页 -export function getDiscountActivityPage(query) { - return request({ - url: '/promotion/discount-activity/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/promotion/rewardActivity.js b/src/api/mall/promotion/rewardActivity.js deleted file mode 100644 index b792f903..00000000 --- a/src/api/mall/promotion/rewardActivity.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建满减送活动 -export function createRewardActivity(data) { - return request({ - url: '/promotion/reward-activity/create', - method: 'post', - data: data - }) -} - -// 更新满减送活动 -export function updateRewardActivity(data) { - return request({ - url: '/promotion/reward-activity/update', - method: 'put', - data: data - }) -} - -// 关闭满减送活动 -export function closeRewardActivity(id) { - return request({ - url: '/promotion/reward-activity/close?id=' + id, - method: 'put' - }) -} - -// 删除满减送活动 -export function deleteRewardActivity(id) { - return request({ - url: '/promotion/reward-activity/delete?id=' + id, - method: 'delete' - }) -} - -// 获得满减送活动 -export function getRewardActivity(id) { - return request({ - url: '/promotion/reward-activity/get?id=' + id, - method: 'get' - }) -} - -// 获得满减送活动分页 -export function getRewardActivityPage(query) { - return request({ - url: '/promotion/reward-activity/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/promotion/seckillActivity.js b/src/api/mall/promotion/seckillActivity.js deleted file mode 100644 index fa67a739..00000000 --- a/src/api/mall/promotion/seckillActivity.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 创建秒杀活动 -export function createSeckillActivity(data) { - return request({ - url: '/promotion/seckill-activity/create', - method: 'post', - data: data - }) -} - -// 更新秒杀活动 -export function updateSeckillActivity(data) { - return request({ - url: '/promotion/seckill-activity/update', - method: 'put', - data: data - }) -} - -// 关闭限时折扣活动 -export function closeSeckillActivity(id) { - return request({ - url: '/promotion/seckill-activity/close?id=' + id, - method: 'put' - }) -} - -// 删除秒杀活动 -export function deleteSeckillActivity(id) { - return request({ - url: '/promotion/seckill-activity/delete?id=' + id, - method: 'delete' - }) -} - -// 获得秒杀活动 -export function getSeckillActivity(id) { - return request({ - url: '/promotion/seckill-activity/get?id=' + id, - method: 'get' - }) -} - -// 获得秒杀活动分页 -export function getSeckillActivityPage(query) { - return request({ - url: '/promotion/seckill-activity/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/promotion/seckillTime.js b/src/api/mall/promotion/seckillTime.js deleted file mode 100644 index ae3c8a8c..00000000 --- a/src/api/mall/promotion/seckillTime.js +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request' - -// 创建秒杀时段 -export function createSeckillTime(data) { - return request({ - url: '/promotion/seckill-time/create', - method: 'post', - data: data - }) -} - -// 更新秒杀时段 -export function updateSeckillTime(data) { - return request({ - url: '/promotion/seckill-time/update', - method: 'put', - data: data - }) -} - -// 删除秒杀时段 -export function deleteSeckillTime(id) { - return request({ - url: '/promotion/seckill-time/delete?id=' + id, - method: 'delete' - }) -} - -// 获得秒杀时段 -export function getSeckillTime(id) { - return request({ - url: '/promotion/seckill-time/get?id=' + id, - method: 'get' - }) -} - -// 获得秒杀时段分页 -export function getSeckillTimePage(query) { - return request({ - url: '/promotion/seckill-time/page', - method: 'get', - params: query - }) -} - -// 获取所有的秒杀时段 -export function getSeckillTimeList() { - return request({ - url: '/promotion/seckill-time/list', - method: 'get' - }) -} - -// 导出秒杀时段 Excel -export function exportSeckillTimeExcel(query) { - return request({ - url: '/promotion/seckill-time/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/mall/trade/afterSale.js b/src/api/mall/trade/afterSale.js deleted file mode 100644 index 3d71fdc2..00000000 --- a/src/api/mall/trade/afterSale.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 获得交易售后 -export function getAfterSale(id) { - return request({ - url: '/trade/after-sale/get?id=' + id, - method: 'get' - }) -} - -// 获得交易售后分页 -export function getAfterSalePage(query) { - return request({ - url: '/trade/after-sale/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mall/trade/order.js b/src/api/mall/trade/order.js deleted file mode 100644 index 2251aa43..00000000 --- a/src/api/mall/trade/order.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 获得交易订单分页 -export function getOrderPage(query) { - return request({ - url: '/trade/order/page', - method: 'get', - params: query - }) -} - -// 获得交易订单详情 -export function getOrderDetail(id) { - return request({ - url: '/trade/order/get-detail?id=' + id, - method: 'get', - }) -} diff --git a/src/api/mp/account.js b/src/api/mp/account.js deleted file mode 100644 index d4ff6d94..00000000 --- a/src/api/mp/account.js +++ /dev/null @@ -1,68 +0,0 @@ -import request from '@/utils/request' - -// 创建公众号账号 -export function createAccount(data) { - return request({ - url: '/mp/account/create', - method: 'post', - data: data - }) -} - -// 更新公众号账号 -export function updateAccount(data) { - return request({ - url: '/mp/account/update', - method: 'put', - data: data - }) -} - -// 删除公众号账号 -export function deleteAccount(id) { - return request({ - url: '/mp/account/delete?id=' + id, - method: 'delete' - }) -} - -// 获得公众号账号 -export function getAccount(id) { - return request({ - url: '/mp/account/get?id=' + id, - method: 'get' - }) -} - -// 获得公众号账号分页 -export function getAccountPage(query) { - return request({ - url: '/mp/account/page', - method: 'get', - params: query - }) -} - -// 获取公众号账号精简信息列表 -export function getSimpleAccounts() { - return request({ - url: '/mp/account/list-all-simple', - method: 'get', - }) -} - -// 生成公众号二维码 -export function generateAccountQrCode(id) { - return request({ - url: '/mp/account/generate-qr-code?id=' + id, - method: 'put' - }) -} - -// 清空公众号 API 配额 -export function clearAccountQuota(id) { - return request({ - url: '/mp/account/clear-quota?id=' + id, - method: 'put' - }) -} diff --git a/src/api/mp/autoReply.js b/src/api/mp/autoReply.js deleted file mode 100644 index 092773d2..00000000 --- a/src/api/mp/autoReply.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 创建公众号的自动回复 -export function createAutoReply(data) { - return request({ - url: '/mp/auto-reply/create', - method: 'post', - data: data - }) -} - -// 更新公众号的自动回复 -export function updateAutoReply(data) { - return request({ - url: '/mp/auto-reply/update', - method: 'put', - data: data - }) -} - -// 删除公众号的自动回复 -export function deleteAutoReply(id) { - return request({ - url: '/mp/auto-reply/delete?id=' + id, - method: 'delete' - }) -} - -// 获得公众号的自动回复 -export function getAutoReply(id) { - return request({ - url: '/mp/auto-reply/get?id=' + id, - method: 'get' - }) -} - -// 获得公众号的自动回复分页 -export function getAutoReplyPage(query) { - return request({ - url: '/mp/auto-reply/page', - method: 'get', - params: query - }) -} diff --git a/src/api/mp/draft.js b/src/api/mp/draft.js deleted file mode 100644 index 1fa3d5ba..00000000 --- a/src/api/mp/draft.js +++ /dev/null @@ -1,38 +0,0 @@ -import request from '@/utils/request' - -// 获得公众号草稿分页 -export function getDraftPage(query) { - return request({ - url: '/mp/draft/page', - method: 'get', - params: query - }) -} - -// 创建公众号草稿 -export function createDraft(accountId, articles) { - return request({ - url: '/mp/draft/create?accountId=' + accountId, - method: 'post', - data: { - articles - } - }) -} - -// 更新公众号草稿 -export function updateDraft(accountId, mediaId, articles) { - return request({ - url: '/mp/draft/update?accountId=' + accountId + '&mediaId=' + mediaId, - method: 'put', - data: articles - }) -} - -// 删除公众号草稿 -export function deleteDraft(accountId, mediaId) { - return request({ - url: '/mp/draft/delete?accountId=' + accountId + '&mediaId=' + mediaId, - method: 'delete', - }) -} diff --git a/src/api/mp/freePublish.js b/src/api/mp/freePublish.js deleted file mode 100644 index 211a66a6..00000000 --- a/src/api/mp/freePublish.js +++ /dev/null @@ -1,26 +0,0 @@ -import request from '@/utils/request' - -// 获得公众号素材分页 -export function getFreePublishPage(query) { - return request({ - url: '/mp/free-publish/page', - method: 'get', - params: query - }) -} - -// 删除公众号素材 -export function deleteFreePublish(accountId, articleId) { - return request({ - url: '/mp/free-publish/delete?accountId=' + accountId + '&articleId=' + articleId, - method: 'delete' - }) -} - -// 发布公众号素材 -export function submitFreePublish(accountId, mediaId) { - return request({ - url: '/mp/free-publish/submit?accountId=' + accountId + '&mediaId=' + mediaId, - method: 'post' - }) -} diff --git a/src/api/mp/material.js b/src/api/mp/material.js deleted file mode 100644 index 7bdcc31d..00000000 --- a/src/api/mp/material.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 获得公众号素材分页 -export function getMaterialPage(query) { - return request({ - url: '/mp/material/page', - method: 'get', - params: query - }) -} - -// 删除公众号永久素材 -export function deletePermanentMaterial(id) { - return request({ - url: '/mp/material/delete-permanent?id=' + id, - method: 'delete' - }) -} diff --git a/src/api/mp/menu.js b/src/api/mp/menu.js deleted file mode 100644 index dc17e8a8..00000000 --- a/src/api/mp/menu.js +++ /dev/null @@ -1,29 +0,0 @@ -import request from '@/utils/request' - -// 获得公众号菜单列表 -export function getMenuList(accountId) { - return request({ - url: '/mp/menu/list?accountId=' + accountId, - method: 'get', - }) -} - -// 保存公众号菜单 -export function saveMenu(accountId, menus) { - return request({ - url: '/mp/menu/save', - method: 'post', - data: { - accountId, - menus - } - }) -} - -// 删除公众号菜单 -export function deleteMenu(accountId) { - return request({ - url: '/mp/menu/delete?accountId=' + accountId, - method: 'delete', - }) -} diff --git a/src/api/mp/message.js b/src/api/mp/message.js deleted file mode 100644 index cea916be..00000000 --- a/src/api/mp/message.js +++ /dev/null @@ -1,19 +0,0 @@ -import request from '@/utils/request' - -// 获得公众号消息分页 -export function getMessagePage(query) { - return request({ - url: '/mp/message/page', - method: 'get', - params: query - }) -} - -// 给粉丝发送消息 -export function sendMessage(data) { - return request({ - url: '/mp/message/send', - method: 'post', - data: data - }) -} diff --git a/src/api/mp/mpuser.js b/src/api/mp/mpuser.js deleted file mode 100644 index 200d1905..00000000 --- a/src/api/mp/mpuser.js +++ /dev/null @@ -1,35 +0,0 @@ -import request from '@/utils/request' - -// 更新公众号粉丝 -export function updateUser(data) { - return request({ - url: '/mp/user/update', - method: 'put', - data: data - }) -} - -// 获得公众号粉丝 -export function getUser(id) { - return request({ - url: '/mp/user/get?id=' + id, - method: 'get' - }) -} - -// 获得公众号粉丝分页 -export function getUserPage(query) { - return request({ - url: '/mp/user/page', - method: 'get', - params: query - }) -} - -// 同步公众号粉丝 -export function syncUser(accountId) { - return request({ - url: '/mp/user/sync?accountId=' + accountId, - method: 'post' - }) -} diff --git a/src/api/mp/statistics.js b/src/api/mp/statistics.js deleted file mode 100644 index 0a3497b4..00000000 --- a/src/api/mp/statistics.js +++ /dev/null @@ -1,37 +0,0 @@ -import request from '@/utils/request' - -// 获取消息发送概况数据 -export function getUpstreamMessage(query) { - return request({ - url: '/mp/statistics/upstream-message', - method: 'get', - params: query - }) -} - -// 用户增减数据 -export function getUserSummary(query) { - return request({ - url: '/mp/statistics/user-summary', - method: 'get', - params: query - }) -} - -// 获得用户累计数据 -export function getUserCumulate(query) { - return request({ - url: '/mp/statistics/user-cumulate', - method: 'get', - params: query - }) -} - -// 获得接口分析数据 -export function getInterfaceSummary(query) { - return request({ - url: '/mp/statistics/interface-summary', - method: 'get', - params: query - }) -} diff --git a/src/api/mp/tag.js b/src/api/mp/tag.js deleted file mode 100644 index 18972886..00000000 --- a/src/api/mp/tag.js +++ /dev/null @@ -1,60 +0,0 @@ -import request from '@/utils/request' - -// 创建公众号标签 -export function createTag(data) { - return request({ - url: '/mp/tag/create', - method: 'post', - data: data - }) -} - -// 更新公众号标签 -export function updateTag(data) { - return request({ - url: '/mp/tag/update', - method: 'put', - data: data - }) -} - -// 删除公众号标签 -export function deleteTag(id) { - return request({ - url: '/mp/tag/delete?id=' + id, - method: 'delete' - }) -} - -// 获得公众号标签 -export function getTag(id) { - return request({ - url: '/mp/tag/get?id=' + id, - method: 'get' - }) -} - -// 获得公众号标签分页 -export function getTagPage(query) { - return request({ - url: '/mp/tag/page', - method: 'get', - params: query - }) -} - -// 获取公众号标签精简信息列表 -export function getSimpleTags() { - return request({ - url: '/mp/tag/list-all-simple', - method: 'get', - }) -} - -// 同步公众号标签 -export function syncTag(accountId) { - return request({ - url: '/mp/tag/sync?accountId=' + accountId, - method: 'post' - }) -} diff --git a/src/api/pay/app.js b/src/api/pay/app.js deleted file mode 100644 index b8deeb1a..00000000 --- a/src/api/pay/app.js +++ /dev/null @@ -1,78 +0,0 @@ -import request from '@/utils/request' - -// 创建支付应用信息 -export function createApp(data) { - return request({ - url: '/pay/app/create', - method: 'post', - data: data - }) -} - -// 更新支付应用信息 -export function updateApp(data) { - return request({ - url: '/pay/app/update', - method: 'put', - data: data - }) -} - -// 支付应用信息状态修改 -export function changeAppStatus(id, status) { - const data = { - id, - status - } - return request({ - url: '/pay/app/update-status', - method: 'put', - data: data - }) -} - -// 删除支付应用信息 -export function deleteApp(id) { - return request({ - url: '/pay/app/delete?id=' + id, - method: 'delete' - }) -} - -// 获得支付应用信息 -export function getApp(id) { - return request({ - url: '/pay/app/get?id=' + id, - method: 'get' - }) -} - -// 获得支付应用信息分页 -export function getAppPage(query) { - return request({ - url: '/pay/app/page', - method: 'get', - params: query - }) -} - -// 导出支付应用信息 Excel -export function exportAppExcel(query) { - return request({ - url: '/pay/app/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} - -// 根据商ID称搜索应用列表 -export function getAppListByMerchantId(merchantId) { - return request({ - url: '/pay/app/list-merchant-id', - params:{ - merchantId:merchantId - }, - method: 'get' - }) -} diff --git a/src/api/pay/channel.js b/src/api/pay/channel.js deleted file mode 100644 index de66770b..00000000 --- a/src/api/pay/channel.js +++ /dev/null @@ -1,71 +0,0 @@ -import request from '@/utils/request' - -// 创建支付渠道 -export function createChannel(data) { - return request({ - url: '/pay/channel/create', - method: 'post', - data: data - }) -} - - -// 更新支付渠道 -export function updateChannel(data) { - return request({ - url: '/pay/channel/update', - method: 'put', - data: data - }) -} - -// 删除支付渠道 -export function deleteChannel(id) { - return request({ - url: '/pay/channel/delete?id=' + id, - method: 'delete' - }) -} - -// 获得支付渠道 -// export function getChannel(id) { -// return request({ -// url: '/pay/channel/get?id=' + id, -// method: 'get' -// }) -// } - - - -// 获得支付渠道分页 -export function getChannelPage(query) { - return request({ - url: '/pay/channel/page', - method: 'get', - params: query - }) -} - -// 导出支付渠道Excel -export function exportChannelExcel(query) { - return request({ - url: '/pay/channel/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} - -// 获得支付渠道 -export function getChannel(merchantId,appId,code) { - return request({ - url: '/pay/channel/get-channel', - params:{ - merchantId:merchantId, - appId:appId, - code:code - }, - method: 'get' - }) -} - diff --git a/src/api/pay/demo.js b/src/api/pay/demo.js deleted file mode 100644 index 53afc646..00000000 --- a/src/api/pay/demo.js +++ /dev/null @@ -1,35 +0,0 @@ -import request from '@/utils/request' - -// 创建示例订单 -export function createDemoOrder(data) { - return request({ - url: '/pay/demo-order/create', - method: 'post', - data: data - }) -} - -// 获得示例订单 -export function getDemoOrder(id) { - return request({ - url: '/pay/demo-order/get?id=' + id, - method: 'get' - }) -} - -// 获得示例订单分页 -export function getDemoOrderPage(query) { - return request({ - url: '/pay/demo-order/page', - method: 'get', - params: query - }) -} - -// 退款示例订单 -export function refundDemoOrder(id) { - return request({ - url: '/pay/demo-order/refund?id=' + id, - method: 'put' - }) -} diff --git a/src/api/pay/merchant.js b/src/api/pay/merchant.js deleted file mode 100644 index 51b604ee..00000000 --- a/src/api/pay/merchant.js +++ /dev/null @@ -1,77 +0,0 @@ -import request from '@/utils/request' - -// 创建支付商户信息 -export function createMerchant(data) { - return request({ - url: '/pay/merchant/create', - method: 'post', - data: data - }) -} - -// 更新支付商户信息 -export function updateMerchant(data) { - return request({ - url: '/pay/merchant/update', - method: 'put', - data: data - }) -} - -// 支付商户状态修改 -export function changeMerchantStatus(id, status) { - const data = { - id, - status - } - return request({ - url: '/pay/merchant/update-status', - method: 'put', - data: data - }) -} - -// 删除支付商户信息 -export function deleteMerchant(id) { - return request({ - url: '/pay/merchant/delete?id=' + id, - method: 'delete' - }) -} - -// 获得支付商户信息 -export function getMerchant(id) { - return request({ - url: '/pay/merchant/get?id=' + id, - method: 'get' - }) -} -// 根据商户名称搜索商户列表 -export function getMerchantListByName(name) { - return request({ - url: '/pay/merchant/list-by-name', - params:{ - name:name - }, - method: 'get' - }) -} - -// 获得支付商户信息分页 -export function getMerchantPage(query) { - return request({ - url: '/pay/merchant/page', - method: 'get', - params: query - }) -} - -// 导出支付商户信息 Excel -export function exportMerchantExcel(query) { - return request({ - url: '/pay/merchant/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/pay/order.js b/src/api/pay/order.js deleted file mode 100644 index ab4e02d5..00000000 --- a/src/api/pay/order.js +++ /dev/null @@ -1,53 +0,0 @@ -import request from '@/utils/request' - -// 删除支付订单 -export function deleteOrder(id) { - return request({ - url: '/pay/order/delete?id=' + id, - method: 'delete' - }) -} - -// 获得支付订单 -export function getOrder(id) { - return request({ - url: '/pay/order/get?id=' + id, - method: 'get' - }) -} - -// 获得支付订单的明细 -export function getOrderDetail(id) { - return request({ - url: '/pay/order/get-detail?id=' + id, - method: 'get' - }) -} - -// 提交支付订单 -export function submitOrder(data) { - return request({ - url: '/pay/order/submit', - method: 'post', - data: data - }) -} - -// 获得支付订单分页 -export function getOrderPage(query) { - return request({ - url: '/pay/order/page', - method: 'get', - params: query - }) -} - -// 导出支付订单 Excel -export function exportOrderExcel(query) { - return request({ - url: '/pay/order/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/pay/refund.js b/src/api/pay/refund.js deleted file mode 100644 index 09b64d5e..00000000 --- a/src/api/pay/refund.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建退款订单 -export function createRefund(data) { - return request({ - url: '/pay/refund/create', - method: 'post', - data: data - }) -} - -// 更新退款订单 -export function updateRefund(data) { - return request({ - url: '/pay/refund/update', - method: 'put', - data: data - }) -} - -// 删除退款订单 -export function deleteRefund(id) { - return request({ - url: '/pay/refund/delete?id=' + id, - method: 'delete' - }) -} - -// 获得退款订单 -export function getRefund(id) { - return request({ - url: '/pay/refund/get?id=' + id, - method: 'get' - }) -} - -// 获得退款订单分页 -export function getRefundPage(query) { - return request({ - url: '/pay/refund/page', - method: 'get', - params: query - }) -} - -// 导出退款订单 Excel -export function exportRefundExcel(query) { - return request({ - url: '/pay/refund/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/main.js b/src/main.js index 82128eca..b03065bf 100644 --- a/src/main.js +++ b/src/main.js @@ -9,13 +9,12 @@ import store from './store'; import router from './router'; import directive from './directive'; // directive import plugins from './plugins'; // plugins -import { scrollBoard } from '@jiaminghi/data-view' +import { scrollBoard } from '@jiaminghi/data-view'; import './assets/icons'; // icon import './permission'; // permission control // import './tongji' // 百度统计 import { getDicts } from '@/api/system/dict/data'; -import { getConfigKey } from '@/api/infra/config'; import { parseTime, resetForm, @@ -40,7 +39,6 @@ import './theme/index.css'; // 自定义主题包 - code-brick-zj // 全局方法挂载 Vue.prototype.getDicts = getDicts; -Vue.prototype.getConfigKey = getConfigKey; Vue.prototype.parseTime = parseTime; Vue.prototype.resetForm = resetForm; Vue.prototype.getDictDatas = getDictDatas; @@ -50,16 +48,19 @@ Vue.prototype.DICT_TYPE = DICT_TYPE; Vue.prototype.handleTree = handleTree; Vue.prototype.addBeginAndEndTime = addBeginAndEndTime; Vue.prototype.divide = divide; -Vue.prototype.tableHeight = function(n) { - return window.innerHeight - n -} -Vue.prototype.searchBarWidth = function(name, num) { - if (document.getElementById(name) && document.getElementById(name).offsetWidth < num) { - return true +Vue.prototype.tableHeight = function (n) { + return window.innerHeight - n; +}; +Vue.prototype.searchBarWidth = function (name, num) { + if ( + document.getElementById(name) && + document.getElementById(name).offsetWidth < num + ) { + return true; } else { - return false + return false; } -} +}; // 全局组件挂载 Vue.component('DictTag', DictTag); @@ -72,25 +73,17 @@ import DocAlert from '@/components/DocAlert'; // 头部标签插件 import VueMeta from 'vue-meta'; import CodeBrickZj from 'code-brick-zj'; -import { hiPrintPlugin,disAutoConnect } from 'vue-plugin-hiprint' +import { hiPrintPlugin, disAutoConnect } from 'vue-plugin-hiprint'; disAutoConnect(); -Vue.use(hiPrintPlugin) -Vue.use(CodeBrickZj) +Vue.use(hiPrintPlugin); +Vue.use(CodeBrickZj); Vue.use(directive); Vue.use(plugins); Vue.use(VueMeta); -Vue.use(scrollBoard) +Vue.use(scrollBoard); // Vue.use(hljs.vuePlugin); -import scroll from 'vue-seamless-scroll' -Vue.use(scroll) -// bpmnProcessDesigner 需要引入 -import MyPD from '@/components/bpmnProcessDesigner/package/index.js'; -Vue.use(MyPD); -import '@/components/bpmnProcessDesigner/package/theme/index.scss'; -import 'bpmn-js/dist/assets/diagram-js.css'; -import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'; -import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'; -import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'; +import scroll from 'vue-seamless-scroll'; +Vue.use(scroll); // Form Generator 组件需要使用到 tinymce import Tinymce from '@/components/tinymce/index.vue'; diff --git a/src/router/index.js b/src/router/index.js index 40189532..5d060c2f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,9 +1,9 @@ -import Vue from 'vue' -import Router from 'vue-router' +import Vue from 'vue'; +import Router from 'vue-router'; /* Layout */ -import Layout from '@/layout' +import Layout from '@/layout'; -Vue.use(Router) +Vue.use(Router); /** * Note: 路由配置项 @@ -28,263 +28,146 @@ Vue.use(Router) // 公共路由 export const constantRoutes = [ - { - path: '/redirect', - component: Layout, - hidden: true, - children: [ - { - path: '/redirect/:path(.*)', - component: (resolve) => require(['@/views/redirect'], resolve) - } - ] - }, - { - path: '/login', - component: (resolve) => require(['@/views/login'], resolve), - hidden: true - }, - { - path: '/sso', - component: (resolve) => require(['@/views/sso'], resolve), - hidden: true - }, - { - path: '/social-login', - component: (resolve) => require(['@/views/socialLogin'], resolve), - hidden: true - }, - { - path: '/404', - component: (resolve) => require(['@/views/error/404'], resolve), - hidden: true - }, - { - path: '/401', - component: (resolve) => require(['@/views/error/401'], resolve), - hidden: true - }, - { - path: '/print-design', - component: (resolve) => require(['@/views/print/design'], resolve), - hidden: true - }, - { - path: '/', - component: () => import('@/views/choicePart'), - hidden: true, - meta: { requireToken: true } - }, - // { - // path: '/', - // component: Layout, - // // redirect: 'core/base/factory', - // // children: [{ - // // path: 'index', - // // redirect: 'core/base/factory', - // // component: (resolve) => require(['@/views/index'], resolve), - // // name: '首页', - // // meta: { title: '首页', icon: 'dashboard', affix: true } - // // } - // // ] - // }, - { - path: '/AGVBoard', - name: 'AGVBoard', - // component: Layout, - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/AGVBoard.vue') - }, - { - path: '/coldBoard', - name: 'coldBoard', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/coldBoard.vue') - }, - { - path: '/processingBoard', - name: 'processingBoard', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/processingBoard.vue') - }, - { - path: '/user', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [{ - path: 'profile', - component: (resolve) => require(['@/views/system/user/profile/index'], resolve), - name: 'Profile', - meta: { title: '个人中心', icon: 'user' } - }, { - path: 'notify-message', - component: (resolve) => require(['@/views/system/notify/my/index'], resolve), - name: 'MyNotifyMessage', - meta: { title: '我的站内信', icon: 'message' }, - }] - }, - { - path: '/dict', - component: Layout, - hidden: true, - children: [{ - path: 'type/data/:dictId(\\d+)', - component: (resolve) => require(['@/views/system/dict/data'], resolve), - name: 'SystemDictData', - meta: { title: '字典数据', icon: '', activeMenu: '/system/dict' } - } - ] - }, - { - path: '/job', - component: Layout, - hidden: true, - children: [{ - path: 'log', - component: (resolve) => require(['@/views/infra/job/log'], resolve), - name: 'InfraJobLog', - meta: { title: '调度日志', activeMenu: '/infra/job' } - } - ] - }, { - path: '/codegen', - component: Layout, - hidden: true, - children: [{ - path: 'edit/:tableId(\\d+)', - component: (resolve) => require(['@/views/infra/codegen/editTable'], resolve), - name: 'InfraCodegenEditTable', - meta: { title: '修改生成配置', activeMenu: '/infra/codegen' } - } - ] - }, - { - path: '/bpm', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [{ - path: 'oa/leave/create', - component: (resolve) => require(['@/views/bpm/oa/leave/create'], resolve), - name: 'BpmOALeaveCreate', - meta: { title: '发起 OA 请假', icon: 'form', activeMenu: '/bpm/oa/leave' } - }, { - path: 'oa/leave/detail', - component: (resolve) => require(['@/views/bpm/oa/leave/detail'], resolve), - name: 'BpmOALeaveDetail', - meta: { title: '查看 OA 请假', icon: 'view', activeMenu: '/bpm/oa/leave' } - } - ] - }, - { - path: '/bpm', - component: Layout, - hidden: true, - children: [{ - path: 'manager/form/edit', - component: (resolve) => require(['@/views/bpm/form/formEditor'], resolve), - name: 'BpmFormEditor', - meta: { title: '流程表单-编辑', activeMenu: '/bpm/manager/form' } - }, { - path: 'manager/definition', - component: (resolve) => require(['@/views/bpm/definition/index'], resolve), - name: 'BpmProcessDefinition', - meta: { title: '流程定义', activeMenu: '/bpm/manager/model' } - }, { - path: 'manager/model/design', - component: (resolve) => require(['@/views/bpm/model/modelEditor'], resolve), - name: 'BpmModelEditor', - meta: { title: '设计流程', activeMenu: '/bpm/manager/model' } - }, { - path: 'process-instance/create', - component: (resolve) => require(['@/views/bpm/processInstance/create'], resolve), - name: 'BpmProcessInstanceCreate', - meta: { title: '发起流程', activeMenu: '/bpm/task/my' } - }, { - path: 'process-instance/detail', - component: (resolve) => require(['@/views/bpm/processInstance/detail'], resolve), - name: 'BpmProcessInstanceDetail', - meta: { title: '流程详情', activeMenu: '/bpm/task/my' } - } - ] - }, - { - path: '/property', - component: Layout, - hidden: true, - children: [{ - path: 'value/:propertyId(\\d+)', - component: (resolve) => require(['@/views/mall/product/property/value'], resolve), - name: 'ProductPropertyValue', - meta: { title: '商品属性值', icon: '', activeMenu: '/product/property' } - } - ] - }, - { - path: '/spu', - component: Layout, - hidden: true, - children: [{ - path: 'edit/:spuId(\\d+)', - component: (resolve) => require(['@/views/mall/product/spu/save'], resolve), - name: 'ProductSpuUpdate', - meta: { title: '修改商品', activeMenu: '/product/spu' } - }, - { - path: 'add', - component: (resolve) => require(['@/views/mall/product/spu/save'], resolve), - name: 'ProductSpuCreate', - meta: { title: '添加商品', activeMenu: '/product/spu' } - } - ] - }, - { - path: '/trade/order', - component: Layout, - hidden: true, - children: [ - { - path: 'detail', - name: 'TradeOrderDetail', - hidden: true, - meta: { title: '订单详情' }, - component: (resolve) => require(['@/views/mall/trade/order/detail'], resolve) - } - ] - }, - { - path: '/pay', - component: Layout, - hidden: true, - children: [{ - path: 'order/submit', - name: 'PayOrderSubmit', - hidden: true, - meta: { - title: '收银台', - noCache: true - }, - component: (resolve) => require(['@/views/pay/order/submit'], resolve) - }] - } -] + { + path: '/redirect', + component: Layout, + hidden: true, + children: [ + { + path: '/redirect/:path(.*)', + component: (resolve) => require(['@/views/redirect'], resolve), + }, + ], + }, + { + path: '/login', + component: (resolve) => require(['@/views/login'], resolve), + hidden: true, + }, + { + path: '/sso', + component: (resolve) => require(['@/views/sso'], resolve), + hidden: true, + }, + { + path: '/social-login', + component: (resolve) => require(['@/views/socialLogin'], resolve), + hidden: true, + }, + { + path: '/404', + component: (resolve) => require(['@/views/error/404'], resolve), + hidden: true, + }, + { + path: '/401', + component: (resolve) => require(['@/views/error/401'], resolve), + hidden: true, + }, + { + path: '/print-design', + component: (resolve) => require(['@/views/print/design'], resolve), + hidden: true, + }, + { + path: '/', + component: () => import('@/views/choicePart'), + hidden: true, + meta: { requireToken: true }, + }, + // { + // path: '/', + // component: Layout, + // // redirect: 'core/base/factory', + // // children: [{ + // // path: 'index', + // // redirect: 'core/base/factory', + // // component: (resolve) => require(['@/views/index'], resolve), + // // name: '首页', + // // meta: { title: '首页', icon: 'dashboard', affix: true } + // // } + // // ] + // }, + { + path: '/AGVBoard', + name: 'AGVBoard', + // component: Layout, + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => + import( + /* webpackChunkName: "about" */ '@/views/OperationalOverview/AGVBoard.vue' + ), + }, + { + path: '/coldBoard', + name: 'coldBoard', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => + import( + /* webpackChunkName: "about" */ '@/views/OperationalOverview/coldBoard.vue' + ), + }, + { + path: '/processingBoard', + name: 'processingBoard', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => + import( + /* webpackChunkName: "about" */ '@/views/OperationalOverview/processingBoard.vue' + ), + }, + { + path: '/user', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'profile', + component: (resolve) => + require(['@/views/system/user/profile/index'], resolve), + name: 'Profile', + meta: { title: '个人中心', icon: 'user' }, + }, + { + path: 'notify-message', + component: (resolve) => + require(['@/views/system/notify/my/index'], resolve), + name: 'MyNotifyMessage', + meta: { title: '我的站内信', icon: 'message' }, + }, + ], + }, + { + path: '/dict', + component: Layout, + hidden: true, + children: [ + { + path: 'type/data/:dictId(\\d+)', + component: (resolve) => require(['@/views/system/dict/data'], resolve), + name: 'SystemDictData', + meta: { title: '字典数据', icon: '', activeMenu: '/system/dict' }, + }, + ], + }, +]; // 防止连续点击多次路由报错 let routerPush = Router.prototype.push; Router.prototype.push = function push(location) { - return routerPush.call(this, location).catch(err => err) -} + return routerPush.call(this, location).catch((err) => err); +}; export default new Router({ - base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : "/", - mode: 'hash', // 去掉url中的# - scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes -}) + base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : '/', + mode: 'hash', // 去掉url中的# + scrollBehavior: () => ({ y: 0 }), + routes: constantRoutes, +}); diff --git a/src/views/specialEquipment/check/iconfont/demo.css b/src/styles/iconfont/demo.css similarity index 100% rename from src/views/specialEquipment/check/iconfont/demo.css rename to src/styles/iconfont/demo.css diff --git a/src/views/specialEquipment/check/iconfont/iconfont.css b/src/styles/iconfont/iconfont.css similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.css rename to src/styles/iconfont/iconfont.css diff --git a/src/views/specialEquipment/check/iconfont/iconfont.eot b/src/styles/iconfont/iconfont.eot similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.eot rename to src/styles/iconfont/iconfont.eot diff --git a/src/views/specialEquipment/check/iconfont/iconfont.js b/src/styles/iconfont/iconfont.js similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.js rename to src/styles/iconfont/iconfont.js diff --git a/src/views/specialEquipment/check/iconfont/iconfont.json b/src/styles/iconfont/iconfont.json similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.json rename to src/styles/iconfont/iconfont.json diff --git a/src/views/specialEquipment/check/iconfont/iconfont.svg b/src/styles/iconfont/iconfont.svg similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.svg rename to src/styles/iconfont/iconfont.svg diff --git a/src/views/specialEquipment/check/iconfont/iconfont.ttf b/src/styles/iconfont/iconfont.ttf similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.ttf rename to src/styles/iconfont/iconfont.ttf diff --git a/src/views/specialEquipment/check/iconfont/iconfont.woff b/src/styles/iconfont/iconfont.woff similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.woff rename to src/styles/iconfont/iconfont.woff diff --git a/src/views/specialEquipment/check/iconfont/iconfont.woff2 b/src/styles/iconfont/iconfont.woff2 similarity index 100% rename from src/views/specialEquipment/check/iconfont/iconfont.woff2 rename to src/styles/iconfont/iconfont.woff2 diff --git a/src/views/bpm/definition/index.vue b/src/views/bpm/definition/index.vue deleted file mode 100644 index dc992545..00000000 --- a/src/views/bpm/definition/index.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - diff --git a/src/views/bpm/form/formEditor.vue b/src/views/bpm/form/formEditor.vue deleted file mode 100644 index c387ca3d..00000000 --- a/src/views/bpm/form/formEditor.vue +++ /dev/null @@ -1,567 +0,0 @@ - - - - - diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue deleted file mode 100644 index f9bcb726..00000000 --- a/src/views/bpm/form/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/src/views/bpm/group/index.vue b/src/views/bpm/group/index.vue deleted file mode 100644 index 6c23a947..00000000 --- a/src/views/bpm/group/index.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue deleted file mode 100644 index e80b9642..00000000 --- a/src/views/bpm/model/index.vue +++ /dev/null @@ -1,548 +0,0 @@ - - - - - diff --git a/src/views/bpm/model/modelEditor.vue b/src/views/bpm/model/modelEditor.vue deleted file mode 100644 index 78e78d31..00000000 --- a/src/views/bpm/model/modelEditor.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue deleted file mode 100644 index 3ac54173..00000000 --- a/src/views/bpm/oa/leave/create.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue deleted file mode 100644 index 00890a5c..00000000 --- a/src/views/bpm/oa/leave/detail.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue deleted file mode 100644 index 49d5d21f..00000000 --- a/src/views/bpm/oa/leave/index.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - diff --git a/src/views/bpm/processInstance/create.vue b/src/views/bpm/processInstance/create.vue deleted file mode 100644 index bf565f63..00000000 --- a/src/views/bpm/processInstance/create.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - - diff --git a/src/views/bpm/processInstance/detail.vue b/src/views/bpm/processInstance/detail.vue deleted file mode 100644 index b8a843a1..00000000 --- a/src/views/bpm/processInstance/detail.vue +++ /dev/null @@ -1,400 +0,0 @@ - - - - - diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue deleted file mode 100644 index 4e681ac2..00000000 --- a/src/views/bpm/processInstance/index.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue deleted file mode 100644 index 9d522bec..00000000 --- a/src/views/bpm/task/done/index.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue deleted file mode 100644 index a14dc564..00000000 --- a/src/views/bpm/task/todo/index.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - diff --git a/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue b/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue deleted file mode 100644 index c0d922be..00000000 --- a/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue +++ /dev/null @@ -1,337 +0,0 @@ - - - diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue deleted file mode 100644 index 345adf63..00000000 --- a/src/views/infra/apiAccessLog/index.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue deleted file mode 100644 index f076bc72..00000000 --- a/src/views/infra/apiErrorLog/index.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - diff --git a/src/views/infra/build/App.vue b/src/views/infra/build/App.vue deleted file mode 100644 index b25f0b56..00000000 --- a/src/views/infra/build/App.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/src/views/infra/build/CodeTypeDialog.vue b/src/views/infra/build/CodeTypeDialog.vue deleted file mode 100644 index 6f0c0d19..00000000 --- a/src/views/infra/build/CodeTypeDialog.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - diff --git a/src/views/infra/build/DraggableItem.vue b/src/views/infra/build/DraggableItem.vue deleted file mode 100644 index 4cccea6b..00000000 --- a/src/views/infra/build/DraggableItem.vue +++ /dev/null @@ -1,120 +0,0 @@ - diff --git a/src/views/infra/build/FormDrawer.vue b/src/views/infra/build/FormDrawer.vue deleted file mode 100644 index 8c3c3059..00000000 --- a/src/views/infra/build/FormDrawer.vue +++ /dev/null @@ -1,331 +0,0 @@ -