From 8e8033b0acf2ac138721ea4a46ea97885e25977f Mon Sep 17 00:00:00 2001
From: zkthink <2622059983@qq.com>
Date: Tue, 21 Jul 2020 18:16:39 +0800
Subject: [PATCH] remove proxy
---
src/api/AfterSale.js | 4 +-
src/api/Applet.js | 8 ++--
src/api/Application.js | 14 +++----
src/api/Apply.js | 8 ++--
src/api/Area.js | 14 +++----
src/api/Attachment.js | 12 +++---
src/api/AxiosApi.js | 5 +--
src/api/Classification.js | 12 +++---
src/api/Comment.js | 24 +++++------
src/api/Common.js | 4 +-
src/api/Custom.js | 6 +--
src/api/Dashboard.js | 2 +-
src/api/Dictionary.js | 8 ++--
src/api/DictionaryItem.js | 16 +++----
src/api/Finance.js | 14 +++----
src/api/GlobalUser.js | 16 +++----
src/api/Goods.js | 18 ++++----
src/api/Label.js | 14 +++----
src/api/Login.js | 6 +--
src/api/LoginLog.js | 10 ++---
src/api/Management.js | 6 +--
src/api/Marketing.js | 26 ++++++------
src/api/Member.js | 16 +++----
src/api/Menu.js | 8 ++--
src/api/Msgs.js | 16 +++----
src/api/OptLog.js | 12 +++---
src/api/Org.js | 14 +++----
src/api/Parameter.js | 14 +++----
src/api/Resource.js | 8 ++--
src/api/Role.js | 28 ++++++-------
src/api/SmsSendStatus.js | 2 +-
src/api/SmsTask.js | 16 +++----
src/api/SmsTemplate.js | 16 +++----
src/api/Station.js | 14 +++----
src/api/SystemApi.js | 14 +++----
src/api/Tenant copy.js | 10 ++---
src/api/Tenant.js | 20 ++++-----
src/api/User.js | 26 ++++++------
src/components/ImageUpload/index.vue | 7 ++--
src/components/ceres/fileUpload.vue | 2 +-
src/components/ceres/imgUpload.vue | 2 +-
src/views/ceres/auth/role/Index.vue | 2 +-
src/views/ceres/base/dict/DictionaryItem.vue | 2 +-
src/views/ceres/base/parameter/Index.vue | 2 +-
src/views/ceres/sms/manage/Index.vue | 2 +-
src/views/ceres/sms/template/Index.vue | 2 +-
src/views/ceres/user/org/Index.vue | 2 +-
src/views/ceres/user/station/Index.vue | 2 +-
src/views/ceres/user/user/Index.vue | 4 +-
src/views/classification/Edit.vue | 3 +-
src/views/marketing/add/index.vue | 3 +-
vue.config.js | 44 +-------------------
52 files changed, 259 insertions(+), 301 deletions(-)
diff --git a/src/api/AfterSale.js b/src/api/AfterSale.js
index 5ac285b..df21e45 100644
--- a/src/api/AfterSale.js
+++ b/src/api/AfterSale.js
@@ -1,8 +1,8 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getList: `/authority//order/findReturnInterventionList`,
- getInfo: `/authority/order/getReturnInterventionDetail`
+ getList: `/order/findReturnInterventionList`,
+ getInfo: `/order/getReturnInterventionDetail`
}
export default {
// 售后平台介入列表
diff --git a/src/api/Applet.js b/src/api/Applet.js
index 2dcbabb..35dee5b 100644
--- a/src/api/Applet.js
+++ b/src/api/Applet.js
@@ -1,10 +1,10 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getPlatformTemplate: `/authority/cmsTemplate/getPlatformTemplate`,
- updateTemplate: '/authority/cmsTemplate/updateTemplate',
- getCmsTemplate: '/authority/cmsTemplate/',
- getStorePage: '/authority/store/findStoreListForPlatform'
+ getPlatformTemplate: `/cmsTemplate/getPlatformTemplate`,
+ updateTemplate: '/cmsTemplate/updateTemplate',
+ getCmsTemplate: '/cmsTemplate/',
+ getStorePage: '/store/findStoreListForPlatform'
}
export default {
getStorePage(data) {
diff --git a/src/api/Application.js b/src/api/Application.js
index 0e85324..1c7b9a0 100644
--- a/src/api/Application.js
+++ b/src/api/Application.js
@@ -3,31 +3,31 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/application/page`
+ url: `/application/page`
},
update: {
method: 'PUT',
- url: `/authority/application`
+ url: `/application`
},
save: {
method: 'POST',
- url: `/authority/application`
+ url: `/application`
},
delete: {
method: 'DELETE',
- url: `/authority/application`
+ url: `/application`
},
preview: {
method: 'POST',
- url: `/authority/application/preview`
+ url: `/application/preview`
},
export: {
method: 'POST',
- url: `/authority/application/export`
+ url: `/application/export`
},
import: {
method: 'POST',
- url: `/authority/application/import`
+ url: `/application/import`
}
}
diff --git a/src/api/Apply.js b/src/api/Apply.js
index 6b52c45..98eed26 100644
--- a/src/api/Apply.js
+++ b/src/api/Apply.js
@@ -1,10 +1,10 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getList: `/authority/tenantApply/page`,
- auditApply: `/authority/tenantApply/audit`,
- deleteApply: `/authority/tenantApply/remove`,
- applyInfo: `/authority/tenantApply`
+ getList: `/tenantApply/page`,
+ auditApply: `/tenantApply/audit`,
+ deleteApply: `/tenantApply/remove`,
+ applyInfo: `/tenantApply`
}
export default {
getList(data) {
diff --git a/src/api/Area.js b/src/api/Area.js
index e6acd41..9cd3d97 100644
--- a/src/api/Area.js
+++ b/src/api/Area.js
@@ -3,27 +3,27 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/area/page`
+ url: `/area/page`
},
update: {
method: 'PUT',
- url: `/authority/area`
+ url: `/area`
},
save: {
method: 'POST',
- url: `/authority/area`
+ url: `/area`
},
delete: {
method: 'DELETE',
- url: `/authority/area`
+ url: `/area`
},
query: {
method: 'POST',
- url: `/authority/area/query`
+ url: `/area/query`
},
tree: {
method: 'GET',
- url: `/authority/area/tree`
+ url: `/area/tree`
}
}
@@ -67,7 +67,7 @@ export default {
check(code, id) {
return axiosApi({
method: 'GET',
- url: `/authority/area/check/` + code,
+ url: `/area/check/` + code,
data: { id: id }
})
}
diff --git a/src/api/Attachment.js b/src/api/Attachment.js
index f0341b6..10799fa 100644
--- a/src/api/Attachment.js
+++ b/src/api/Attachment.js
@@ -3,27 +3,27 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/file/attachment/page`
+ url: `/attachment/page`
},
upload: {
method: 'POST',
- url: `/file/attachment/upload`
+ url: `/attachment/upload`
},
download: {
method: 'GET',
- url: `/file/attachment/download`
+ url: `/attachment/download`
},
downloadBiz: {
method: 'GET',
- url: `/file/attachment/download/biz`
+ url: `/attachment/download/biz`
},
downloadUrl: {
method: 'GET',
- url: `/file/attachment/download/url`
+ url: `/attachment/download/url`
},
delete: {
method: 'DELETE',
- url: `/file/attachment`
+ url: `/attachment`
}
}
diff --git a/src/api/AxiosApi.js b/src/api/AxiosApi.js
index b8dc15a..2f10800 100644
--- a/src/api/AxiosApi.js
+++ b/src/api/AxiosApi.js
@@ -92,10 +92,7 @@ const httpServer = opts => {
// 生产环境: http://IP:PORT/api // 生产环境中 代理失效, 故需要配置绝对路径
const httpDefaultOpts = {
method,
- baseURL:
- process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX +
- process.env.VUE_APP_BASE_API,
- url: opts.url,
+ url: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}${opts.url}`,
responseType: opts.responseType || '',
timeout: 20000
}
diff --git a/src/api/Classification.js b/src/api/Classification.js
index db288f6..1e7cb4a 100644
--- a/src/api/Classification.js
+++ b/src/api/Classification.js
@@ -1,12 +1,12 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- productCategory: `/authority/productCategory/findPageCategory`,
- addCategory: `/authority/productCategory/addCategory`,
- uploadCategory: `/authority/productCategory/updateCategory`,
- deletCategory: '/authority/productCategory/delCategory',
- queryOneCategory: `/authority/productCategory/queryOneCategory`,
- queryChildCategory: '/authority/productCategory/queryChildCategory'
+ productCategory: `/productCategory/findPageCategory`,
+ addCategory: `/productCategory/addCategory`,
+ uploadCategory: `/productCategory/updateCategory`,
+ deletCategory: '/productCategory/delCategory',
+ queryOneCategory: `/productCategory/queryOneCategory`,
+ queryChildCategory: '/productCategory/queryChildCategory'
}
export default {
deletCategory(data) {
diff --git a/src/api/Comment.js b/src/api/Comment.js
index 30c36a5..7049d46 100644
--- a/src/api/Comment.js
+++ b/src/api/Comment.js
@@ -1,18 +1,18 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getList: `/authority/comment/findCommentList`,
- handleComment: `/authority/comment/handleComment`,
- getSensitiveKeywordList: `/authority/comment/findSensitiveKeywordList`,
- setSensitiveKeyword: `/authority/comment/updateSensitiveKeywordSetting`,
- addSensitiveKeyword: `/authority/comment/addSensitiveKeyword`,
- editSensitiveKeyword: `/authority/comment/updateSensitiveKeyword`,
- deleteSensitiveKeyword: `/authority/comment/deleteSensitiveKeyword`,
- getCommentKeywordList: `/authority/comment/findCommentKeywordList`,
- setCommentKeywordList: `/authority/comment/updateCommentKeywordSetting`,
- addCommentKeyword: `/authority/comment/addCommentKeyword`,
- editCommentKeyword: `/authority/comment/updateCommentKeyword`,
- deleteCommentKeyword: `/authority/comment/deleteCommentKeyword`
+ getList: `/comment/findCommentList`,
+ handleComment: `/comment/handleComment`,
+ getSensitiveKeywordList: `/comment/findSensitiveKeywordList`,
+ setSensitiveKeyword: `/comment/updateSensitiveKeywordSetting`,
+ addSensitiveKeyword: `/comment/addSensitiveKeyword`,
+ editSensitiveKeyword: `/comment/updateSensitiveKeyword`,
+ deleteSensitiveKeyword: `/comment/deleteSensitiveKeyword`,
+ getCommentKeywordList: `/comment/findCommentKeywordList`,
+ setCommentKeywordList: `/comment/updateCommentKeywordSetting`,
+ addCommentKeyword: `/comment/addCommentKeyword`,
+ editCommentKeyword: `/comment/updateCommentKeyword`,
+ deleteCommentKeyword: `/comment/deleteCommentKeyword`
}
export default {
// 敏感词列表
diff --git a/src/api/Common.js b/src/api/Common.js
index 4f27adc..934ae4c 100644
--- a/src/api/Common.js
+++ b/src/api/Common.js
@@ -4,12 +4,12 @@ const apiList = {
// 获取当前系统的所有枚举
enums: {
method: 'GET',
- url: `/oauth/enums`
+ url: `/enums`
}
}
export default {
- uploadFile: `${process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX}${process.env.VUE_APP_BASE_API}/file/attachment/upload`,
+ uploadFile: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/attachment/upload`,
enums (data) {
return axiosApi({
...apiList.enums,
diff --git a/src/api/Custom.js b/src/api/Custom.js
index 26f06b5..aa216c2 100644
--- a/src/api/Custom.js
+++ b/src/api/Custom.js
@@ -1,9 +1,9 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- cmsTemplatePage: `/authority/cmsTemplate/page`,
- addTemplate: '/authority/cmsTemplate',
- deleteTemplate: '/authority/cmsTemplate'
+ cmsTemplatePage: `/cmsTemplate/page`,
+ addTemplate: '/cmsTemplate',
+ deleteTemplate: '/cmsTemplate'
}
export default {
cmsTemplatePage(data) {
diff --git a/src/api/Dashboard.js b/src/api/Dashboard.js
index b85567e..3f4942e 100644
--- a/src/api/Dashboard.js
+++ b/src/api/Dashboard.js
@@ -1,7 +1,7 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getVisitList: `/authority/dashboard/visit`
+ getVisitList: `/dashboard/visit`
}
export default {
diff --git a/src/api/Dictionary.js b/src/api/Dictionary.js
index a16b624..3c5f50a 100644
--- a/src/api/Dictionary.js
+++ b/src/api/Dictionary.js
@@ -3,19 +3,19 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/dictionary/page`
+ url: `/dictionary/page`
},
update: {
method: 'PUT',
- url: `/authority/dictionary`
+ url: `/dictionary`
},
save: {
method: 'POST',
- url: `/authority/dictionary`
+ url: `/dictionary`
},
delete: {
method: 'DELETE',
- url: `/authority/dictionary`
+ url: `/dictionary`
}
}
diff --git a/src/api/DictionaryItem.js b/src/api/DictionaryItem.js
index 74566b9..81a6af4 100644
--- a/src/api/DictionaryItem.js
+++ b/src/api/DictionaryItem.js
@@ -3,35 +3,35 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/dictionaryItem/page`
+ url: `/dictionaryItem/page`
},
update: {
method: 'PUT',
- url: `/authority/dictionaryItem`
+ url: `/dictionaryItem`
},
save: {
method: 'POST',
- url: `/authority/dictionaryItem`
+ url: `/dictionaryItem`
},
delete: {
method: 'DELETE',
- url: `/authority/dictionaryItem`
+ url: `/dictionaryItem`
},
list: {
method: 'GET',
- url: `/oauth/dictionaryItem/codes`
+ url: `/dictionaryItem/codes`
},
preview: {
method: 'POST',
- url: `/authority/dictionaryItem/preview`
+ url: `/dictionaryItem/preview`
},
export: {
method: 'POST',
- url: `/authority/dictionaryItem/export`
+ url: `/dictionaryItem/export`
},
import: {
method: 'POST',
- url: `/authority/dictionaryItem/import`
+ url: `/dictionaryItem/import`
}
}
diff --git a/src/api/Finance.js b/src/api/Finance.js
index dd6ea9e..591dd68 100644
--- a/src/api/Finance.js
+++ b/src/api/Finance.js
@@ -1,13 +1,13 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getCashList: `/authority/cashOutDetail/page/audit`,
- getDetail: '/authority/cashOutDetail/audit/',
- audiCash: '/authority/cashOutDetail/audit',
- getDepositList: `/authority/depositJournal/page`, // 保证金列表
- getDepositSum: `/authority/depositJournal/summary`, // 保证金总金额
- getDayList: `/authority/journalDetail/platform-finance-page`,
- getSummary: `/authority/journalDetail/platform-finance-summary`
+ getCashList: `/cashOutDetail/page/audit`,
+ getDetail: '/cashOutDetail/audit/',
+ audiCash: '/cashOutDetail/audit',
+ getDepositList: `/depositJournal/page`, // 保证金列表
+ getDepositSum: `/depositJournal/summary`, // 保证金总金额
+ getDayList: `/journalDetail/platform-finance-page`,
+ getSummary: `/journalDetail/platform-finance-summary`
}
export default {
// 提现审核列表
diff --git a/src/api/GlobalUser.js b/src/api/GlobalUser.js
index 4b4e8db..d9ed6c3 100644
--- a/src/api/GlobalUser.js
+++ b/src/api/GlobalUser.js
@@ -2,36 +2,36 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/authority/globalUser/page`,
+ url: `/globalUser/page`,
method: 'POST'
},
save: {
method: 'POST',
- url: `/authority/globalUser`
+ url: `/globalUser`
},
update: {
method: 'PUT',
- url: `/authority/globalUser`
+ url: `/globalUser`
},
remove: {
method: 'DELETE',
- url: `/authority/globalUser/delete`
+ url: `/globalUser/delete`
},
check: {
method: 'GET',
- url: `/authority/globalUser/check`
+ url: `/globalUser/check`
},
preview: {
method: 'POST',
- url: `/authority/globalUser/preview`
+ url: `/globalUser/preview`
},
export: {
method: 'POST',
- url: `/authority/globalUser/export`
+ url: `/globalUser/export`
},
import: {
method: 'POST',
- url: `/authority/globalUser/import`
+ url: `/globalUser/import`
}
}
diff --git a/src/api/Goods.js b/src/api/Goods.js
index 9194872..7b42fb3 100644
--- a/src/api/Goods.js
+++ b/src/api/Goods.js
@@ -1,15 +1,15 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getGroupList: `/authority/productGroup/page`,
- productGroup: `/authority/productGroup`,
- deleteGroup: `/authority/productGroup/delProductCategory`,
- getProductList: `/authority/product/findAdminProductList`,
- findCategoryList: '/authority/productCategory/findCategoryListByDepth/',
- saveProduct: '/authority/product/save',
- findAdminProductList: '/authority/platformProduct/findAdminProductList',
- findGoods: '/authority/platformProduct/findProductListByCategoryOrProductIdList',
- queryAllCategory: '/authority/productCategory/queryAllCategory'
+ getGroupList: `/productGroup/page`,
+ productGroup: `/productGroup`,
+ deleteGroup: `/productGroup/delProductCategory`,
+ getProductList: `/product/findAdminProductList`,
+ findCategoryList: '/productCategory/findCategoryListByDepth/',
+ saveProduct: '/product/save',
+ findAdminProductList: '/platformProduct/findAdminProductList',
+ findGoods: '/platformProduct/findProductListByCategoryOrProductIdList',
+ queryAllCategory: '/productCategory/queryAllCategory'
}
export default {
diff --git a/src/api/Label.js b/src/api/Label.js
index 5c5e64a..b130e9c 100644
--- a/src/api/Label.js
+++ b/src/api/Label.js
@@ -1,13 +1,13 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getLabelList: `/authority/memberTag/page`,
- addLabel: `/authority/memberTag`,
- queryTag: `/authority/memberTag/queryTag/`,
- deleteTag: `/authority/memberTag`,
- editTag: `/authority/memberTag`,
- exportTag: `/authority/memberTag/export`,
- getTagInfo: `/authority/memberTag/`
+ getLabelList: `/memberTag/page`,
+ addLabel: `/memberTag`,
+ queryTag: `/memberTag/queryTag/`,
+ deleteTag: `/memberTag`,
+ editTag: `/memberTag`,
+ exportTag: `/memberTag/export`,
+ getTagInfo: `/memberTag/`
}
export default {
// 标签列表
diff --git a/src/api/Login.js b/src/api/Login.js
index 22fc699..baff801 100644
--- a/src/api/Login.js
+++ b/src/api/Login.js
@@ -1,9 +1,9 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- captcha: `/oauth/anno/captcha`,
- login: `/oauth/anno/admin/login`,
- router: `/oauth/menu/admin/router`
+ captcha: `/anno/captcha`,
+ login: `/anno/admin/login`,
+ router: `/menu/admin/router`
}
export default {
diff --git a/src/api/LoginLog.js b/src/api/LoginLog.js
index 2e938bc..b841da2 100644
--- a/src/api/LoginLog.js
+++ b/src/api/LoginLog.js
@@ -3,23 +3,23 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/loginLog/page`
+ url: `/loginLog/page`
},
delete: {
method: 'DELETE',
- url: `/authority/loginLog`
+ url: `/loginLog`
},
clear: {
method: 'DELETE',
- url: `/authority/loginLog/clear`
+ url: `/loginLog/clear`
},
preview: {
method: 'POST',
- url: `/authority/loginLog/preview`
+ url: `/loginLog/preview`
},
export: {
method: 'POST',
- url: `/authority/loginLog/export`
+ url: `/loginLog/export`
}
}
diff --git a/src/api/Management.js b/src/api/Management.js
index ca6ce11..5b7fdce 100644
--- a/src/api/Management.js
+++ b/src/api/Management.js
@@ -1,9 +1,9 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getTenants: `/authority/tenant/page`,
- addTenant: `/authority/tenant`,
- editTenant: `/authority/tenant`
+ getTenants: `/tenant/page`,
+ addTenant: `/tenant`,
+ editTenant: `/tenant`
}
export default {
getAllTenant(data) {
diff --git a/src/api/Marketing.js b/src/api/Marketing.js
index bb02846..bfafb50 100644
--- a/src/api/Marketing.js
+++ b/src/api/Marketing.js
@@ -1,19 +1,19 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- addPromotion: `/authority/promotion/addPromotion`,
- getList: `/authority/promotion/findAdminPromotionList`,
- getDetails: `/authority/promotion/query`,
- delPromotion: `/authority/promotion/delete`,
- updatePromotion: `/authority/promotion/updatePromotion`,
- finishPromotion: `/authority/promotion/end`,
- applyShop: `/authority/promotionApplyInfo/page`, // 参入店铺
- auditLog: `/authority/promotionAuditLog/query`,
- getGoodList: `/authority/product/findAdminProductListByIds`,
- auditPromotion: `/authority/promotionApplyInfo/auditPromotion`,
- closeApplyInfo: `/authority/promotionApplyInfo/closeApplyInfo`,
- getDetail: `/authority/promotionStat/detail`,
- findTenantStatDetail: `/authority/promotionStat/findTenantStatDetail`
+ addPromotion: `/promotion/addPromotion`,
+ getList: `/promotion/findAdminPromotionList`,
+ getDetails: `/promotion/query`,
+ delPromotion: `/promotion/delete`,
+ updatePromotion: `/promotion/updatePromotion`,
+ finishPromotion: `/promotion/end`,
+ applyShop: `/promotionApplyInfo/page`, // 参入店铺
+ auditLog: `/promotionAuditLog/query`,
+ getGoodList: `/product/findAdminProductListByIds`,
+ auditPromotion: `/promotionApplyInfo/auditPromotion`,
+ closeApplyInfo: `/promotionApplyInfo/closeApplyInfo`,
+ getDetail: `/promotionStat/detail`,
+ findTenantStatDetail: `/promotionStat/findTenantStatDetail`
}
export default {
addPromotion(data) {
diff --git a/src/api/Member.js b/src/api/Member.js
index afba157..2d35b9b 100644
--- a/src/api/Member.js
+++ b/src/api/Member.js
@@ -1,14 +1,14 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getMemberList: `/authority/member/page`,
- addTag: `/authority/member/addTag`,
- forbiddenMember: `/authority/member/forbidden`,
- getMemberInfo: `/authority/member/query/`,
- getMemberAddress: `/authority/memberAddress/page`,
- getOrderList: `/authority/order/findAdminOrderList`,
- getCustomData: `/authority/order/getOrderStatisticsByMid/`,
- getCommentList: `/authority/comment/findCommentList`
+ getMemberList: `/member/page`,
+ addTag: `/member/addTag`,
+ forbiddenMember: `/member/forbidden`,
+ getMemberInfo: `/member/query/`,
+ getMemberAddress: `/memberAddress/page`,
+ getOrderList: `/order/findAdminOrderList`,
+ getCustomData: `/order/getOrderStatisticsByMid/`,
+ getCommentList: `/comment/findCommentList`
}
export default {
// 客户管理列表
diff --git a/src/api/Menu.js b/src/api/Menu.js
index 9ed3156..5980c46 100644
--- a/src/api/Menu.js
+++ b/src/api/Menu.js
@@ -1,10 +1,10 @@
import axiosApi from './AxiosApi.js'
const apiList = {
- getPlatformMenu: `/authority/menu/tree`,
- getAllMerchanMenu: `/authority/menu/getAllTenantMenu`,
- getSpecialMerchantMenu: `/authority/menu/getSpecifiedTenantMenu`,
- saveMenu: `/authority/menu/syncMenu`
+ getPlatformMenu: `/menu/tree`,
+ getAllMerchanMenu: `/menu/getAllTenantMenu`,
+ getSpecialMerchantMenu: `/menu/getSpecifiedTenantMenu`,
+ saveMenu: `/menu/syncMenu`
}
export default {
// 平台所有菜单
diff --git a/src/api/Msgs.js b/src/api/Msgs.js
index 8369396..7b972db 100644
--- a/src/api/Msgs.js
+++ b/src/api/Msgs.js
@@ -2,32 +2,32 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/msgs/msgsCenterInfo/page`,
+ url: `/msgsCenterInfo/page`,
method: 'POST'
},
mark: {
- url: `/msgs/msgsCenterInfo/mark`,
+ url: `/msgsCenterInfo/mark`,
method: 'GET'
},
save: {
- url: `/msgs/msgsCenterInfo`,
+ url: `/msgsCenterInfo`,
method: 'POST'
},
delete: {
- url: `/msgs/msgsCenterInfo`,
+ url: `/msgsCenterInfo`,
method: 'DELETE'
},
preview: {
method: 'POST',
- url: `/msgs/msgsCenterInfo/preview`
+ url: `/msgsCenterInfo/preview`
},
export: {
method: 'POST',
- url: `/msgs/msgsCenterInfo/export`
+ url: `/msgsCenterInfo/export`
},
import: {
method: 'POST',
- url: `/msgs/msgsCenterInfo/import`
+ url: `/msgsCenterInfo/import`
}
}
@@ -59,7 +59,7 @@ export default {
},
get (id) {
return axiosApi({
- url: `/msgs/msgsCenterInfo/${id}`,
+ url: `/msgsCenterInfo/${id}`,
method: 'GET'
})
},
diff --git a/src/api/OptLog.js b/src/api/OptLog.js
index fce2237..83e53ac 100644
--- a/src/api/OptLog.js
+++ b/src/api/OptLog.js
@@ -3,27 +3,27 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/optLog/page`
+ url: `/optLog/page`
},
delete: {
method: 'DELETE',
- url: `/authority/optLog`
+ url: `/optLog`
},
clear: {
method: 'DELETE',
- url: `/authority/optLog/clear`
+ url: `/optLog/clear`
},
preview: {
method: 'POST',
- url: `/authority/optLog/preview`
+ url: `/optLog/preview`
},
export: {
method: 'POST',
- url: `/authority/optLog/export`
+ url: `/optLog/export`
},
import: {
method: 'POST',
- url: `/authority/optLog/import`
+ url: `/optLog/import`
}
}
diff --git a/src/api/Org.js b/src/api/Org.js
index 3f5e975..b439a68 100644
--- a/src/api/Org.js
+++ b/src/api/Org.js
@@ -3,31 +3,31 @@ import axiosApi from './AxiosApi.js'
const apiList = {
allTree: {
method: 'GET',
- url: `/authority/org/tree`
+ url: `/org/tree`
},
save: {
method: 'POST',
- url: `/authority/org`
+ url: `/org`
},
update: {
method: 'PUT',
- url: `/authority/org`
+ url: `/org`
},
delete: {
method: 'DELETE',
- url: `/authority/org`
+ url: `/org`
},
preview: {
method: 'POST',
- url: `/authority/org/preview`
+ url: `/org/preview`
},
export: {
method: 'POST',
- url: `/authority/org/export`
+ url: `/org/export`
},
import: {
method: 'POST',
- url: `/authority/org/import`
+ url: `/org/import`
}
}
diff --git a/src/api/Parameter.js b/src/api/Parameter.js
index 37a8004..ec2af61 100644
--- a/src/api/Parameter.js
+++ b/src/api/Parameter.js
@@ -3,31 +3,31 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/parameter/page`
+ url: `/parameter/page`
},
update: {
method: 'PUT',
- url: `/authority/parameter`
+ url: `/parameter`
},
save: {
method: 'POST',
- url: `/authority/parameter`
+ url: `/parameter`
},
delete: {
method: 'DELETE',
- url: `/authority/parameter`
+ url: `/parameter`
},
preview: {
method: 'POST',
- url: `/authority/parameter/preview`
+ url: `/parameter/preview`
},
export: {
method: 'POST',
- url: `/authority/parameter/export`
+ url: `/parameter/export`
},
import: {
method: 'POST',
- url: `/authority/parameter/import`
+ url: `/parameter/import`
}
}
diff --git a/src/api/Resource.js b/src/api/Resource.js
index 2ea133d..be6650c 100644
--- a/src/api/Resource.js
+++ b/src/api/Resource.js
@@ -3,19 +3,19 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/resource/page`
+ url: `/resource/page`
},
save: {
method: 'POST',
- url: `/authority/resource`
+ url: `/resource`
},
update: {
method: 'PUT',
- url: `/authority/resource`
+ url: `/resource`
},
delete: {
method: 'DELETE',
- url: `/authority/resource`
+ url: `/resource`
}
}
diff --git a/src/api/Role.js b/src/api/Role.js
index 5baa2e4..dd0c797 100644
--- a/src/api/Role.js
+++ b/src/api/Role.js
@@ -2,40 +2,40 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/authority/role/page`,
+ url: `/role/page`,
method: 'POST'
},
save: {
- url: `/authority/role`,
+ url: `/role`,
method: 'POST'
},
update: {
- url: `/authority/role`,
+ url: `/role`,
method: 'PUT'
},
delete: {
- url: `/authority/role`,
+ url: `/role`,
method: 'DELETE'
},
saveUserRole: {
- url: `/authority/role/user`,
+ url: `/role/user`,
method: 'POST'
},
saveRoleAuthority: {
- url: `/authority/role/authority`,
+ url: `/role/authority`,
method: 'POST'
},
preview: {
method: 'POST',
- url: `/authority/user/preview`
+ url: `/user/preview`
},
export: {
method: 'POST',
- url: `/authority/user/export`
+ url: `/user/export`
},
import: {
method: 'POST',
- url: `/authority/role/import`
+ url: `/role/import`
}
}
@@ -67,19 +67,19 @@ export default {
},
get (id) {
return axiosApi({
- url: `/authority/role/${id}`,
+ url: `/role/${id}`,
method: 'GET'
})
},
getDetails (id) {
return axiosApi({
- url: `/authority/role/details/${id}`,
+ url: `/role/details/${id}`,
method: 'GET'
})
},
check (code) {
return axiosApi({
- url: `/authority/role/check/${code}`,
+ url: `/role/check/${code}`,
method: 'GET'
})
},
@@ -91,13 +91,13 @@ export default {
},
findUserIdByRoleId (roleId) {
return axiosApi({
- url: `/authority/role/user/${roleId}`,
+ url: `/role/user/${roleId}`,
method: 'GET'
})
},
findAuthorityIdByRoleId (roleId) {
return axiosApi({
- url: `/authority/role/authority/${roleId}`,
+ url: `/role/authority/${roleId}`,
method: 'GET'
})
},
diff --git a/src/api/SmsSendStatus.js b/src/api/SmsSendStatus.js
index 0b3eeaf..5c60975 100644
--- a/src/api/SmsSendStatus.js
+++ b/src/api/SmsSendStatus.js
@@ -2,7 +2,7 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/msgs/smsSendStatus/page`,
+ url: `/smsSendStatus/page`,
method: 'POST'
}
}
diff --git a/src/api/SmsTask.js b/src/api/SmsTask.js
index c08f391..9a1a31e 100644
--- a/src/api/SmsTask.js
+++ b/src/api/SmsTask.js
@@ -2,32 +2,32 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/msgs/smsTask/page`,
+ url: `/smsTask/page`,
method: 'POST'
},
save: {
- url: `/msgs/smsTask`,
+ url: `/smsTask`,
method: 'POST'
},
update: {
- url: `/msgs/smsTask`,
+ url: `/smsTask`,
method: 'PUT'
},
delete: {
- url: `/msgs/smsTask`,
+ url: `/smsTask`,
method: 'DELETE'
},
preview: {
method: 'POST',
- url: `/msgs/smsTask/preview`
+ url: `/smsTask/preview`
},
export: {
method: 'POST',
- url: `/msgs/smsTask/export`
+ url: `/smsTask/export`
},
import: {
method: 'POST',
- url: `/msgs/smsTask/import`
+ url: `/smsTask/import`
}
}
@@ -58,7 +58,7 @@ export default {
},
get (id) {
return axiosApi({
- url: `/msgs/smsTask/${id}`,
+ url: `/smsTask/${id}`,
method: 'GET'
})
},
diff --git a/src/api/SmsTemplate.js b/src/api/SmsTemplate.js
index eda5ef4..0402fff 100644
--- a/src/api/SmsTemplate.js
+++ b/src/api/SmsTemplate.js
@@ -2,36 +2,36 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/msgs/smsTemplate/page`,
+ url: `/smsTemplate/page`,
method: 'POST'
},
save: {
- url: `/msgs/smsTemplate`,
+ url: `/smsTemplate`,
method: 'POST'
},
update: {
- url: `/msgs/smsTemplate`,
+ url: `/smsTemplate`,
method: 'PUT'
},
delete: {
- url: `/msgs/smsTemplate`,
+ url: `/smsTemplate`,
method: 'DELETE'
},
check: {
- url: `/msgs/smsTemplate/check`,
+ url: `/smsTemplate/check`,
method: 'GET'
},
preview: {
method: 'POST',
- url: `/msgs/smsTemplate/preview`
+ url: `/smsTemplate/preview`
},
export: {
method: 'POST',
- url: `/msgs/smsTemplate/export`
+ url: `/smsTemplate/export`
},
import: {
method: 'POST',
- url: `/msgs/smsTemplate/import`
+ url: `/smsTemplate/import`
}
}
diff --git a/src/api/Station.js b/src/api/Station.js
index 7aecd66..a4c6179 100644
--- a/src/api/Station.js
+++ b/src/api/Station.js
@@ -2,32 +2,32 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
- url: `/authority/station/page`,
+ url: `/station/page`,
method: 'POST'
},
save: {
- url: `/authority/station`,
+ url: `/station`,
method: 'POST'
},
update: {
- url: `/authority/station`,
+ url: `/station`,
method: 'PUT'
},
delete: {
- url: `/authority/station`,
+ url: `/station`,
method: 'DELETE'
},
preview: {
method: 'POST',
- url: `/authority/station/preview`
+ url: `/station/preview`
},
export: {
method: 'POST',
- url: `/authority/station/export`
+ url: `/station/export`
},
import: {
method: 'POST',
- url: `/authority/station/import`
+ url: `/station/import`
}
}
diff --git a/src/api/SystemApi.js b/src/api/SystemApi.js
index 14614fc..4dd258c 100644
--- a/src/api/SystemApi.js
+++ b/src/api/SystemApi.js
@@ -3,31 +3,31 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/systemApi/page`
+ url: `/systemApi/page`
},
update: {
method: 'PUT',
- url: `/authority/systemApi`
+ url: `/systemApi`
},
save: {
method: 'POST',
- url: `/authority/systemApi`
+ url: `/systemApi`
},
delete: {
method: 'DELETE',
- url: `/authority/systemApi`
+ url: `/systemApi`
},
preview: {
method: 'POST',
- url: `/authority/systemApi/preview`
+ url: `/systemApi/preview`
},
export: {
method: 'POST',
- url: `/authority/systemApi/export`
+ url: `/systemApi/export`
},
import: {
method: 'POST',
- url: `/authority/systemApi/import`
+ url: `/systemApi/import`
}
}
diff --git a/src/api/Tenant copy.js b/src/api/Tenant copy.js
index bf507a2..849844b 100644
--- a/src/api/Tenant copy.js
+++ b/src/api/Tenant copy.js
@@ -3,23 +3,23 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/tenant/page`
+ url: `/tenant/page`
},
update: {
method: 'PUT',
- url: `/authority/tenant`
+ url: `/tenant`
},
save: {
method: 'POST',
- url: `/authority/tenant`
+ url: `/tenant`
},
saveInit: {
method: 'POST',
- url: `/authority/tenant/init`
+ url: `/tenant/init`
},
remove: {
method: 'DELETE',
- url: `/authority/tenant/remove`
+ url: `/tenant/remove`
}
}
diff --git a/src/api/Tenant.js b/src/api/Tenant.js
index ebef7bf..5688adc 100644
--- a/src/api/Tenant.js
+++ b/src/api/Tenant.js
@@ -3,39 +3,39 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/tenant/page`
+ url: `/tenant/page`
},
update: {
method: 'PUT',
- url: `/authority/tenant`
+ url: `/tenant`
},
save: {
method: 'POST',
- url: `/authority/tenant`
+ url: `/tenant`
},
saveInit: {
method: 'POST',
- url: `/authority/tenant/init`
+ url: `/tenant/init`
},
remove: {
method: 'DELETE',
- url: `/authority/tenant`
+ url: `/tenant`
},
list: {
method: 'POST',
- url: `/authority/tenant/query`
+ url: `/tenant/query`
},
preview: {
method: 'POST',
- url: `/authority/tenant/preview`
+ url: `/tenant/preview`
},
export: {
method: 'POST',
- url: `/authority/tenant/export`
+ url: `/tenant/export`
},
import: {
method: 'POST',
- url: `/authority/tenant/import`
+ url: `/tenant/import`
}
}
@@ -80,7 +80,7 @@ export default {
check (code) {
return axiosApi({
method: 'GET',
- url: `/authority/tenant/check/${code}`
+ url: `/tenant/check/${code}`
})
},
preview (data) {
diff --git a/src/api/User.js b/src/api/User.js
index b80c866..33c0588 100644
--- a/src/api/User.js
+++ b/src/api/User.js
@@ -3,51 +3,51 @@ import axiosApi from './AxiosApi.js'
const apiList = {
page: {
method: 'POST',
- url: `/authority/user/page`
+ url: `/user/page`
},
save: {
method: 'POST',
- url: `/authority/user`
+ url: `/user`
},
update: {
method: 'PUT',
- url: `/authority/user`
+ url: `/user`
},
updateBaseInfo: {
method: 'PUT',
- url: `/authority/user/base`
+ url: `/user/base`
},
avatar: {
method: 'PUT',
- url: `/authority/user/avatar`
+ url: `/user/avatar`
},
delete: {
method: 'DELETE',
- url: `/authority/user`
+ url: `/user`
},
reset: {
method: 'GET',
- url: `/authority/user/reset`
+ url: `/user/reset`
},
updatePassword: {
method: 'PUT',
- url: `/authority/user/password`
+ url: `/user/password`
},
reload: {
method: 'POST',
- url: `/authority/user/reload`
+ url: `/user/reload`
},
preview: {
method: 'POST',
- url: `/authority/user/preview`
+ url: `/user/preview`
},
export: {
method: 'POST',
- url: `/authority/user/export`
+ url: `/user/export`
},
import: {
method: 'POST',
- url: `/authority/user/import`
+ url: `/user/import`
}
}
@@ -91,7 +91,7 @@ export default {
get (id) {
return axiosApi({
method: 'GET',
- url: `/authority/user/${id}`
+ url: `/user/${id}`
})
},
reset (data) {
diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue
index c8a38c5..a0b903d 100644
--- a/src/components/ImageUpload/index.vue
+++ b/src/components/ImageUpload/index.vue
@@ -8,15 +8,15 @@
:file-list="item"
:on-success="handleImageSuccess"
class="upload-uploader"
- action="/api/authority/file/upload"
+ :action="action"
>
-
+