remove proxy
This commit is contained in:
@@ -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 {
|
||||
// 售后平台介入列表
|
||||
|
||||
+4
-4
@@ -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) {
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -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) {
|
||||
|
||||
+7
-7
@@ -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 }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-4
@@ -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
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+12
-12
@@ -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 {
|
||||
// 敏感词列表
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
+3
-3
@@ -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) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axiosApi from './AxiosApi.js'
|
||||
|
||||
const apiList = {
|
||||
getVisitList: `/authority/dashboard/visit`
|
||||
getVisitList: `/dashboard/visit`
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -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 {
|
||||
// 提现审核列表
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+9
-9
@@ -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 {
|
||||
|
||||
+7
-7
@@ -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 {
|
||||
// 标签列表
|
||||
|
||||
+3
-3
@@ -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 {
|
||||
|
||||
+5
-5
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+13
-13
@@ -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) {
|
||||
|
||||
+8
-8
@@ -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 {
|
||||
// 客户管理列表
|
||||
|
||||
+4
-4
@@ -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 {
|
||||
// 平台所有菜单
|
||||
|
||||
+8
-8
@@ -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'
|
||||
})
|
||||
},
|
||||
|
||||
+6
-6
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -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,7 +2,7 @@ import axiosApi from './AxiosApi.js'
|
||||
|
||||
const apiList = {
|
||||
page: {
|
||||
url: `/msgs/smsSendStatus/page`,
|
||||
url: `/smsSendStatus/page`,
|
||||
method: 'POST'
|
||||
}
|
||||
}
|
||||
|
||||
+8
-8
@@ -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'
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+10
-10
@@ -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) {
|
||||
|
||||
+13
-13
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({}),
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
+1
-43
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user