Browse Source

remove proxy

master
zkthink 5 years ago
parent
commit
8e8033b0ac
  1. 4
      src/api/AfterSale.js
  2. 8
      src/api/Applet.js
  3. 14
      src/api/Application.js
  4. 8
      src/api/Apply.js
  5. 14
      src/api/Area.js
  6. 12
      src/api/Attachment.js
  7. 5
      src/api/AxiosApi.js
  8. 12
      src/api/Classification.js
  9. 24
      src/api/Comment.js
  10. 4
      src/api/Common.js
  11. 6
      src/api/Custom.js
  12. 2
      src/api/Dashboard.js
  13. 8
      src/api/Dictionary.js
  14. 16
      src/api/DictionaryItem.js
  15. 14
      src/api/Finance.js
  16. 16
      src/api/GlobalUser.js
  17. 18
      src/api/Goods.js
  18. 14
      src/api/Label.js
  19. 6
      src/api/Login.js
  20. 10
      src/api/LoginLog.js
  21. 6
      src/api/Management.js
  22. 26
      src/api/Marketing.js
  23. 16
      src/api/Member.js
  24. 8
      src/api/Menu.js
  25. 16
      src/api/Msgs.js
  26. 12
      src/api/OptLog.js
  27. 14
      src/api/Org.js
  28. 14
      src/api/Parameter.js
  29. 8
      src/api/Resource.js
  30. 28
      src/api/Role.js
  31. 2
      src/api/SmsSendStatus.js
  32. 16
      src/api/SmsTask.js
  33. 16
      src/api/SmsTemplate.js
  34. 14
      src/api/Station.js
  35. 14
      src/api/SystemApi.js
  36. 10
      src/api/Tenant copy.js
  37. 20
      src/api/Tenant.js
  38. 26
      src/api/User.js
  39. 7
      src/components/ImageUpload/index.vue
  40. 2
      src/components/ceres/fileUpload.vue
  41. 2
      src/components/ceres/imgUpload.vue
  42. 2
      src/views/ceres/auth/role/Index.vue
  43. 2
      src/views/ceres/base/dict/DictionaryItem.vue
  44. 2
      src/views/ceres/base/parameter/Index.vue
  45. 2
      src/views/ceres/sms/manage/Index.vue
  46. 2
      src/views/ceres/sms/template/Index.vue
  47. 2
      src/views/ceres/user/org/Index.vue
  48. 2
      src/views/ceres/user/station/Index.vue
  49. 4
      src/views/ceres/user/user/Index.vue
  50. 3
      src/views/classification/Edit.vue
  51. 3
      src/views/marketing/add/index.vue
  52. 44
      vue.config.js

4
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 {
// 售后平台介入列表

8
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) {

14
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`
}
}

8
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) {

14
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 }
})
}

12
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`
}
}

5
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
}

12
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) {

24
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 {
// 敏感词列表

4
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,

6
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) {

2
src/api/Dashboard.js

@ -1,7 +1,7 @@
import axiosApi from './AxiosApi.js'
const apiList = {
getVisitList: `/authority/dashboard/visit`
getVisitList: `/dashboard/visit`
}
export default {

8
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`
}
}

16
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`
}
}

14
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 {
// 提现审核列表

16
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`
}
}

18
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 {

14
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 {
// 标签列表

6
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 {

10
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`
}
}

6
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) {

26
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) {

16
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 {
// 客户管理列表

8
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 {
// 平台所有菜单

16
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'
})
},

12
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`
}
}

14
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`
}
}

14
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`
}
}

8
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`
}
}

28
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'
})
},

2
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'
}
}

16
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'
})
},

16
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`
}
}

14
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`
}
}

14
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`
}
}

10
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`
}
}

20
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) {

26
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) {

7
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"
>
<img v-if="src" class="upload-images" :src="src">
<img v-if="src" class="upload-images" :src="src" />
<div
v-else
slot="trigger"
class="upload-btn"
>
<i class="el-icon-upload" />
<i class="el-icon-upload"></i>
<span class="upload-title">选择图片</span>
</div>
</el-upload>
@ -46,6 +46,7 @@ export default {
headers: {
Authorization: ''
},
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/file/upload`,
dataObj: {
folderId: 1
}

2
src/components/ceres/fileUpload.vue

@ -66,7 +66,7 @@ export default {
},
action: {
type: String,
default: `${process.env.VUE_APP_BASE_API}/file/attachment/upload`
default: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/attachment/upload`
},
//
acceptSize: {

2
src/components/ceres/imgUpload.vue

@ -96,7 +96,7 @@ export default {
//
isUploadError: false,
fileLength: 0,
action: `${process.env.VUE_APP_BASE_API}/file/attachment/upload`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/attachment/upload`
}
},
computed: {

2
src/views/ceres/auth/role/Index.vue

@ -301,7 +301,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/role/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/role/import`
},
userRoleDialog: {
isVisible: false

2
src/views/ceres/base/dict/DictionaryItem.vue

@ -188,7 +188,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/dictionaryItem/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/dictionaryItem/import`
},
tableKey: 0,
queryParams: initQueryParams({

2
src/views/ceres/base/parameter/Index.vue

@ -232,7 +232,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/parameter/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/parameter/import`
},
tableKey: 0,
queryParams: initQueryParams({

2
src/views/ceres/sms/manage/Index.vue

@ -224,7 +224,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/msgs/smsTask/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/smsTask/import`
},
tableKey: 0,
queryParams: initQueryParams({}),

2
src/views/ceres/sms/template/Index.vue

@ -208,7 +208,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/msgs/smsTemplate/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/smsTemplate/import`
},
tableKey: 0,
queryParams: initQueryParams({

2
src/views/ceres/user/org/Index.vue

@ -139,7 +139,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/org/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/org/import`
},
rules: {
label: [

2
src/views/ceres/user/station/Index.vue

@ -236,7 +236,7 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/station/import`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/station/import`
},
tableKey: 0,
orgList: [],

4
src/views/ceres/user/user/Index.vue

@ -368,8 +368,8 @@ export default {
fileImport: {
isVisible: false,
type: "import",
action: `${process.env.VUE_APP_BASE_API}/authority/user/import`,
exportErrorUrl: `/authority/user/exportError`
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/user/import`,
exportErrorUrl: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/user/exportError`
},
userViewVisible: false,
tableKey: 0,

3
src/views/classification/Edit.vue

@ -48,7 +48,7 @@
:file-list="data.categoryImgArray"
:on-success="handleImageSuccess"
class="upload-uploader"
action="/api/authority/file/upload"
:action="action"
>
<img
v-if="data.categoryImgArray&&data.categoryImgArray[0].url"
@ -176,6 +176,7 @@ export default {
headers: {
Authorization: ''
},
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/file/upload`,
dataObj: {
folderId: 1
}

3
src/views/marketing/add/index.vue

@ -97,7 +97,7 @@
class="avatar-uploader"
:headers="headers"
:data="dataObj"
action="/api/authority/file/upload"
:action="action"
:show-file-list="false"
:on-success="handleAvatarSuccess"
:disabled="unStart"
@ -143,6 +143,7 @@ export default {
headers: {
Authorization: ''
},
action: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}/file/upload`,
dataObj: {
folderId: 1
},

44
vue.config.js

@ -6,29 +6,8 @@ function resolve(dir) {
}
const name = settings.title // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
// For example, Mac: sudo npm run
// const port = 9527 // dev port
const targetUrl = process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX
console.log(targetUrl)
const proxyUrl = process.env.VUE_APP_BASE_API
// console.log(process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX)
// console.log(process.env.VUE_APP_BASE_API)
// console.log(process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX)
// console.log(process.env)
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
/**
* You will need to set publicPath if you plan to deploy your site under a sub path,
* for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then publicPath should be set to "/bar/".
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: './',
outputDir: process.env.VUE_APP_PROJECT_NAME,
assetsDir: 'static',
@ -41,30 +20,9 @@ module.exports = {
warnings: false,
errors: true
},
contentBase: './',
proxy: {
// change xxx-api/login => ≥mock/login
// detail: https://cli.vuejs.org/config/#devserver-proxy
[proxyUrl]: {
target: targetUrl,
changeOrigin: true,
pathRewrite: {
// SpringCloud 项目使用这段配置
['^' + proxyUrl]: proxyUrl
// SpringBoot 项目 请使用以下的配置
// ['^/api/oauth']: '/',
// ['^/api/authority']: '/',
// ['^/api/file']: '/',
// ['^/api/msgs']: '/',
// ['^/api/gate']: '/'
}
}
}
contentBase: './'
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
resolve: {
alias: {

Loading…
Cancel
Save