소스 검색

全局请求路由

master
zhaoy 9 달 전
부모
커밋
baab018215
19개의 변경된 파일201개의 추가작업 그리고 195개의 파일을 삭제
  1. +3
    -0
      src/global_data.js
  2. +11
    -11
      src/pages/company/account/service.js
  3. +13
    -13
      src/pages/database/basic/batching/service.js
  4. +31
    -31
      src/pages/database/goods/goodsInfo/service.js
  5. +8
    -8
      src/pages/database/goods/goodsattribute/service.js
  6. +14
    -14
      src/pages/database/goods/goodstypemanage/service.js
  7. +25
    -25
      src/pages/device/deviceInfo/services.js
  8. +8
    -8
      src/pages/device/deviceVesion/services.js
  9. +6
    -6
      src/pages/device/product/services.js
  10. +14
    -14
      src/pages/device/productmanage/services.js
  11. +8
    -8
      src/pages/org/orgamange/service.js
  12. +5
    -5
      src/pages/org/roles/components/service.js
  13. +10
    -9
      src/pages/org/roles/service.js
  14. +3
    -3
      src/pages/org/users/components/service.js
  15. +15
    -15
      src/pages/org/users/service.js
  16. +6
    -5
      src/pages/sys/dictionary/dictdata/service.js
  17. +5
    -5
      src/pages/sys/dictionary/dicttype/service.js
  18. +9
    -9
      src/pages/sys/menus/service.js
  19. +7
    -6
      src/services/api.js

+ 3
- 0
src/global_data.js 파일 보기

@@ -5,3 +5,6 @@ export function getApiUrl() {
return 'http://localhost:7002/';
}
}
export function getDataBaseUrl() {
return '/saasbase';
}

+ 11
- 11
src/pages/company/account/service.js 파일 보기

@@ -1,67 +1,67 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
export default {
/** 查询企业信息*/
companyPage(data) {
return request(`/saasbase/api/company/companypage`, {
return request(getDataBaseUrl()+`/api/company/companypage`, {
method: 'POST',
data: data,
});
},
/** 添加企业信息*/
addCompany(data) {
return request(`/saasbase/api/company/add`, {
return request(getDataBaseUrl()+`/api/company/add`, {
method: 'POST',
data: data,
});
},
/** 修改企业信息*/
updateCompany(data) {
return request(`/saasbase/api/company/update`, {
return request(getDataBaseUrl()+`/api/company/update`, {
method: 'POST',
data: data,
});
},
/** 删除企业信息*/
removeCompany(data) {
return request(`/saasbase/api/company/delete`, {
return request(getDataBaseUrl()+`/api/company/delete`, {
method: 'POST',
data: data,
});
},
/** 企业信息停用*/
Enable(Id) {
return request(`/saasbase/api/company/enable/?Id=${Id}`, {
return request(getDataBaseUrl()+`/api/company/enable/?Id=${Id}`, {
method: 'Get',
});
},
/** 企业信息启用*/
Disable(Id) {
return request(`/saasbase/api/company/disable/?Id=${Id}`, {
return request(getDataBaseUrl()+`/api/company/disable/?Id=${Id}`, {
method: 'Get',
});
},
/** 添加角色菜单信息*/
addRoleMenu(data){
return request(`/saasbase/api/roles/addorupdatemenurole`,{
return request(getDataBaseUrl()+`/api/roles/addorupdatemenurole`,{
method: 'POST',
data: data,
});
},
/** 查询功能菜单*/
GetMenu(params) {
return request(`​/saasbase/api/menu/menuparmytrees?getType=${params.getType}&&type=${params.type}`,
return request(getDataBaseUrl()+`​/api/menu/menuparmytrees?getType=${params.getType}&&type=${params.type}`,
{
method: 'Get',
});
},
/** 获取角色菜单*/
GetRoleMenu(params) {
return request(`/saasbase/api/roles/getmenurole/?RoleId=${params}`);
return request(getDataBaseUrl()+`/api/roles/getmenurole/?RoleId=${params}`);
},
/** 授权菜单功能获取数据*/
menutreepage(params) {
return request('/saasbase/api​/menu/getmenutreepage', {
return request(getDataBaseUrl()+'/api​/menu/getmenutreepage', {
method: 'post',
data: params,
});


+ 13
- 13
src/pages/database/basic/batching/service.js 파일 보기

@@ -1,9 +1,9 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
export default {
/**获取物料类型 */
getTypeList(params, options) {
return request('/saasbase/api/batching/getbatchingtypelist', {
return request(getDataBaseUrl()+'/api/batching/getbatchingtypelist', {
method: 'GET',
params: {
...params,
@@ -12,13 +12,13 @@ export default {
},
GetDicList(TypeCode) {
// http://localhost:7002
return request(`/saasbase/api/dictdata/getdiclist?typeCode=`+TypeCode, {
return request(getDataBaseUrl()+`/api/dictdata/getdiclist?typeCode=`+TypeCode, {
method: 'Get',
});
},
/**获取物料单位 */
getUintList(params, options) {
return request('/saasbase/api/batching/getbatchinguintList', {
return request(getDataBaseUrl()+'/api/batching/getbatchinguintList', {
method: 'GET',
params: {
...params,
@@ -27,7 +27,7 @@ export default {
},
/**添加物料单位 */
addbatchinguint(params, options) {
return request('/saasbase/api/batching/addbatchinguint', {
return request(getDataBaseUrl()+'/api/batching/addbatchinguint', {
method: 'POST',
data: {
...params,
@@ -36,7 +36,7 @@ export default {
},
/**添加物料类型 */
addbatchingtype(params, options) {
return request('/saasbase/api/batching/addbatchingtype', {
return request(getDataBaseUrl()+'/api/batching/addbatchingtype', {
method: 'POST',
data: {
...params,
@@ -44,7 +44,7 @@ export default {
});
},
add(params, options) {
return request('/saasbase/api/batching/add', {
return request(getDataBaseUrl()+'/api/batching/add', {
method: 'POST',
data: {
...params,
@@ -53,14 +53,14 @@ export default {
},
/**修改物料 */
update(params, options) {
return request('/saasbase/api/batching/update', {
return request(getDataBaseUrl()+'/api/batching/update', {
method: 'Post',
data: params,
});
},
/** 批量删除物料信息*/
removeProduct(data) {
return request(`/saasbase/api/batching/delete`, {
return request(getDataBaseUrl()+`/api/batching/delete`, {
method: 'Post',
data: data,
// ...(options || {}),
@@ -68,20 +68,20 @@ export default {
},
/**获取物料基础信息 */
getpage(params, options) {
return request('/saasbase/api/batching/getpage', {
return request(getDataBaseUrl()+'/api/batching/getpage', {
method: 'Post',
data: params,
});
},
getproductdetailed(params, options) {
return request('/saasbase/api/product-code-server/product-list', {
return request(getDataBaseUrl()+'/api/product-code-server/product-list', {
method: 'Post',
data: params,
});
},
/** 物料状态启用或禁用*/
updateStatus(data) {
return request(`/saasbase/api/batching/updatebatchingstatus`, {
return request(getDataBaseUrl()+`/api/batching/updatebatchingstatus`, {
method: 'Post',
data: data,
// params: { ...params },
@@ -90,7 +90,7 @@ export default {
},
//根据物料编号查询多包装信息
BatchList(data) {
return request(`/saasbase/api/product/product-code/${data}`, {
return request(getDataBaseUrl()+`/api/product/product-code/${data}`, {
method: 'get',
});
}


+ 31
- 31
src/pages/database/goods/goodsInfo/service.js 파일 보기

@@ -1,28 +1,28 @@

import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
export async function GetGoodsBom(data) {
return request(`/saasbase/api/goods/getgoodsbompage`, {
return request(getDataBaseUrl()+`/api/goods/getgoodsbompage`, {
method: 'Post',
data: data,
});
}
export async function getbompage (data) {
return request(`/saasbase/api/bom/getpage`, {
return request(getDataBaseUrl()+`/api/bom/getpage`, {
method: 'Post',
data: data,
});
}

export async function GetCosRequestURL(data) {
return request(`/saasbase/api/systemconfig/GetCosRequestSignURL`, {
return request(getDataBaseUrl()+`/api/systemconfig/GetCosRequestSignURL`, {
method: 'POST',
data: data,
});
}

export async function AddBomApi (data) {
return request(`/saasbase/api/GoodsBom/AddBom`, {
return request(getDataBaseUrl()+`/api/GoodsBom/AddBom`, {
method: 'Post',
data: data,
// params: { ...params },
@@ -30,14 +30,14 @@ export async function AddBomApi (data) {
});
}
export async function GetbomTypelist (data) {
return request(`/saasbase/api/bom/getbomtypelist`, {
return request(getDataBaseUrl()+`/api/bom/getbomtypelist`, {
method: 'Get',
// params: { ...params },
// ...(options || {}),
});
}
export async function AddBomType (data) {
return request(`/saasbase/api/bom/addbomtype`, {
return request(getDataBaseUrl()+`/api/bom/addbomtype`, {
method: 'Post',
data: data,
// params: { ...params },
@@ -45,13 +45,13 @@ export async function AddBomType (data) {
});
}
export async function DelGoodsBom (data) {
return request(`/saasbase/api/goods/delgoodsbom?Ids=${data}`, {
return request(getDataBaseUrl()+`/api/goods/delgoodsbom?Ids=${data}`, {
method: 'GET',
//data: data,
});
}
export async function gettree(params) {
return request('​/saasbase/api​/goodstype/tree', {
return request(getDataBaseUrl()+'​/api​/goodstype/tree', {
method: 'GET',
data: {
...params,
@@ -60,125 +60,125 @@ export async function gettree(params) {
}

export async function unitList() {
return request(`/saasbase/api/goods/getgoodsuintlist`, {
return request(getDataBaseUrl()+`/api/goods/getgoodsuintlist`, {
method: 'Get',
});
}
export async function addunit(data) {
return request(`/saasbase/api/goods/addgoodsuint`, {
return request(getDataBaseUrl()+`/api/goods/addgoodsuint`, {
method: 'Post',
data: data,
});
}
export async function getbygoodsidattribute (data) {
return request(`/saasbase/api/goodsattribute/getbygoodsidattribute?id=`+data, {
return request(getDataBaseUrl()+`/api/goodsattribute/getbygoodsidattribute?id=`+data, {
method: 'Get',
// params: { ...params },
// ...(options || {}),
});
}export async function getbomlist() {
return request('/saasbase/api/bom/getbomlist', {
return request(getDataBaseUrl()+'/api/bom/getbomlist', {
method: 'Get',
});
}
export async function getproductpage(params) {
return request('/saasbase/api/batching/getbatchingselectlist', {
return request(getDataBaseUrl()+'/api/batching/getbatchingselectlist', {
method: 'Get',
});
}
export async function getbomtypepage(data) {
return request(`/saasbase/api/bom/getbomtypepage`, {
return request(getDataBaseUrl()+`/api/bom/getbomtypepage`, {
method: 'Post',
data: data,
});
}
export async function addgoodsbomattribute(data) {
return request(`/saasbase/api/goods/addgoodsbomattribute`, {
return request(getDataBaseUrl()+`/api/goods/addgoodsbomattribute`, {
method: 'Post',
data: data,
});
}
export async function addgoodsbom(data) {
return request(`/saasbase/api/goods/addgoodsbom`, {
return request(getDataBaseUrl()+`/api/goods/addgoodsbom`, {
method: 'Post',
data: data,
});
}
export async function getbyidgoods (data) {
return request(`/saasbase/api/goods/getbyidgoods?id=`+data, {
return request(getDataBaseUrl()+`/api/goods/getbyidgoods?id=`+data, {
method: 'Get'
// params: { ...params },
// ...(options || {}),
});
}
export async function GetGoodsTechnology(data) {
return request(`/saasbase/api/goodstechnology/GetGoodsTechnology`, {
return request(getDataBaseUrl()+`/api/goodstechnology/GetGoodsTechnology`, {
method: 'Post',
data: data,
});
}
export async function GetTechnologyactionList(data) {
return request(`/saasbase/api/productfunction/getproductfunctionaction?productFunctionId=`+data, {
return request(getDataBaseUrl()+`/api/productfunction/getproductfunctionaction?productFunctionId=`+data, {
method: 'Get',
});
}
export async function GetTechnologyActionListAll() {
return request(`/saasbase/api/productfunction/getproductfunctionactionlist`, {
return request(getDataBaseUrl()+`/api/productfunction/getproductfunctionactionlist`, {
method: 'Get',
});
}
export async function AddGoodsTechnologyAction(data) {
return request(`/saasbase/api/goodstechnology/addgoodstechnologyaction`, {
return request(getDataBaseUrl()+`/api/goodstechnology/addgoodstechnologyaction`, {
method: 'Post',
data: data,
});
}
export async function UpdateGoodsTechnologyAction(data) {
return request(`/saasbase/api/goodstechnology/updategoodstechnologyaction`, {
return request(getDataBaseUrl()+`/api/goodstechnology/updategoodstechnologyaction`, {
method: 'Post',
data: data,
});
}
export async function GetGoodsTechnologyAction(data) {
return request(`/saasbase/api/goodstechnology/getGoodstechnologyaction?goodsId=`+data, {
return request(getDataBaseUrl()+`/api/goodstechnology/getGoodstechnologyaction?goodsId=`+data, {
method: 'Get',
});
}
export async function DeleteGoodsTechnologyAction(data) {
return request(`/saasbase/api/goodstechnology/deletegoodstechnologyaction?id=`+data, {
return request(getDataBaseUrl()+`/api/goodstechnology/deletegoodstechnologyaction?id=`+data, {
method: 'Get',
});
}
export async function deletebydevidegoodstechnologyaction(data) {
return request(`/saasbase/api/goodstechnology/deletebydevidegoodstechnologyaction`, {
return request(getDataBaseUrl()+`/api/goodstechnology/deletebydevidegoodstechnologyaction`, {
method: 'Post',
data: data,
});
}
export async function GetDeviceTechnology() {
return request(`/saasbase/api/goodstechnology/getdevicetechnology`, {
return request(getDataBaseUrl()+`/api/goodstechnology/getdevicetechnology`, {
method: 'Get',
});
}
export async function GetByTypebatching() {
return request(`/saasbase/api/batching/getbytypebatching`, {
return request(getDataBaseUrl()+`/api/batching/getbytypebatching`, {
method: 'Get',
});
}
export async function GetByidBomList(data) {
return request(`/saasbase/api/bom/getbyidbomlist?bomId=`+data, {
return request(getDataBaseUrl()+`/api/bom/getbyidbomlist?bomId=`+data, {
method: 'Get',
});
}

export async function UpdateBomInfo(data) {
return request(`/saasbase/api/bom/update`, {
return request(getDataBaseUrl()+`/api/bom/update`, {
method: 'Post',
data: data,
});
}
export async function UpdateBomBatcing(data) {
return request(`/saasbase/api/bom/updatebombatcing`, {
return request(getDataBaseUrl()+`/api/bom/updatebombatcing`, {
method: 'Post',
data: data,
});

+ 8
- 8
src/pages/database/goods/goodsattribute/service.js 파일 보기

@@ -1,8 +1,8 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
/** 获取商品属性列表 sdsa GET /kitchen/api/rule */
export async function getgoodsattributepage(data) {
return request(`/saasbase/api/goodsattribute/getgoodsattributepage`, {
return request(getDataBaseUrl()+`/api/goodsattribute/getgoodsattributepage`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -10,7 +10,7 @@ export async function getgoodsattributepage(data) {
});
}
export async function addgoodsattribute(data) {
return request(`/saasbase/api/goodsattribute/addgoodsattribute`, {
return request(getDataBaseUrl()+`/api/goodsattribute/addgoodsattribute`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -18,7 +18,7 @@ export async function addgoodsattribute(data) {
});
}
export async function deletegoodsattribute(data) {
return request(`/saasbase/api/goodsattribute/deletegoodsattribute`, {
return request(getDataBaseUrl()+`/api/goodsattribute/deletegoodsattribute`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -26,14 +26,14 @@ export async function addgoodsattribute(data) {
});
}
export async function getgoodsattributevalue(data) {
return request(`/saasbase/api/goodsattribute/getgoodsattributevalue?goodsAttributeId=`+data, {
return request(getDataBaseUrl()+`/api/goodsattribute/getgoodsattributevalue?goodsAttributeId=`+data, {
method: 'GET',
// params: { ...params },
// ...(options || {}),
});
}
export async function addgoodsattributevalue(data) {
return request(`/saasbase/api/goodsattribute/addgoodsattributevalue`, {
return request(getDataBaseUrl()+`/api/goodsattribute/addgoodsattributevalue`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -41,7 +41,7 @@ export async function addgoodsattribute(data) {
});
}
export async function deletegoodsattributevalue(data) {
return request(`/saasbase/api/goodsattribute/deletegoodsattributevalue?id=`+data, {
return request(getDataBaseUrl()+`/api/goodsattribute/deletegoodsattributevalue?id=`+data, {
method: 'GET',
// params: { ...params },
// ...(options || {}),
@@ -49,7 +49,7 @@ export async function addgoodsattribute(data) {
}

export async function gettree(params) {
return request('​/saasbase/api​/goodstype/tree', {
return request(getDataBaseUrl()+'​/api​/goodstype/tree', {
method: 'GET',
data: {
...params,


+ 14
- 14
src/pages/database/goods/goodstypemanage/service.js 파일 보기

@@ -2,10 +2,10 @@

/* eslint-disable */
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
/** 获取商品类型 sdsa GET /kitchen/api/rule */
export async function goodsType(data) {
return request(`/saasbase/api/goodstype/page`, {
return request(getDataBaseUrl()+`/api/goodstype/page`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -14,14 +14,14 @@ export async function goodsType(data) {
}
/** 新建商品类型 POST /kitchen/api/rule */
export async function GetDicList(TypeCode) {
return request(`/saasbase/api/dict-data/dic-list/${TypeCode}`, {
return request(getDataBaseUrl()+`/api/dict-data/dic-list/${TypeCode}`, {
method: 'Get',
});
}

export async function addGoodsType(data) {
// http://localhost:5001
return request('/saasbase/api/goodstype/add', {
return request(getDataBaseUrl()+'/api/goodstype/add', {
method: 'POST',
// type:'json',
data: data,
@@ -32,7 +32,7 @@ export async function addGoodsType(data) {
/** 更新商品类型 PUT /kitchen/api/rule */

export async function updateGoodsType(data) {
return request('/saasbase/api/goodstype/update', {
return request(getDataBaseUrl()+'/api/goodstype/update', {
method: 'POST',
data: data,
// ...(options || {}),
@@ -42,25 +42,25 @@ export async function updateGoodsType(data) {
/** 删除商品类型 DELETE /kitchen/api/rule */

export async function removeGoodsTypes(data) {
return request(`/saasbase/api/goodstype/delete`, {
return request(getDataBaseUrl()+`/api/goodstype/delete`, {
method: 'GET',
data: data,
// ...(options || {}),
});
}
export async function DeleteGoodsType(data) {
return request(`/saasbase/api/goodstype/delete?id=${data}`, {
return request(getDataBaseUrl()+`/api/goodstype/delete?id=${data}`, {
method: 'Get'
});
}
export async function DeleteGoodsTypes(data) {
return request(`/saasbase/api/goodstype/deletebyids`, {
return request(getDataBaseUrl()+`/api/goodstype/deletebyids`, {
method: 'post',
data: data,
});
}
export async function gettree(params) {
return request('​/saasbase/api​/goodstype/tree', {
return request(getDataBaseUrl()+'/api​/goodstype/tree', {
method: 'GET',
data: {
...params,
@@ -68,7 +68,7 @@ export async function gettree(params) {
});
}
export async function getgoodsattributepage(data) {
return request(`/saasbase/api/goodsattribute/getgoodsattributepage`, {
return request(getDataBaseUrl()+`/api/goodsattribute/getgoodsattributepage`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -76,7 +76,7 @@ export async function getgoodsattributepage(data) {
});
}
export async function addgoodsattribute(data) {
return request(`/saasbase/api/goodsattribute/addgoodsattribute`, {
return request(getDataBaseUrl()+`/api/goodsattribute/addgoodsattribute`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -84,7 +84,7 @@ export async function addgoodsattribute(data) {
});
}
export async function deletegoodsattribute(data) {
return request(`/saasbase/api/goodsattribute/deletegoodsattribute`, {
return request(getDataBaseUrl()+`/api/goodsattribute/deletegoodsattribute`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -92,7 +92,7 @@ export async function deletegoodsattribute(data) {
});
}
export async function addgoodsattributevalue(data) {
return request(`/saasbase/api/goodsattribute/addgoodsattributevalue`, {
return request(getDataBaseUrl()+`/api/goodsattribute/addgoodsattributevalue`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -100,7 +100,7 @@ export async function addgoodsattributevalue(data) {
});
}
export async function deletegoodsattributevalue(data) {
return request(`/saasbase/api/goodsattribute/deletegoodsattributevalue?id=`+data, {
return request(getDataBaseUrl()+`/api/goodsattribute/deletegoodsattributevalue?id=`+data, {
method: 'GET',
// params: { ...params },
// ...(options || {}),


+ 25
- 25
src/pages/device/deviceInfo/services.js 파일 보기

@@ -1,54 +1,54 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
/** 获取设备列表 */
export async function GetDeviceInfoPage(data) {
return request(`/saasbase/api/device/page`, {
return request(getDataBaseUrl()+`/api/device/page`, {
method: 'POST',
data: data,
});
}
/**获取产品 */
export async function GetProductList() {
return request(`/saasbase/api/product/list`, {
return request(getDataBaseUrl()+`/api/product/list`, {
method: 'Get',
});
}
/** 添加设备 */
export async function AddDeviceInfo(data) {
return request(`/saasbase/api/device/add`, {
return request(getDataBaseUrl()+`/api/device/add`, {
method: 'POST',
data: data,
});
}
export async function PushDeviceGoods(data) {
return request(`/saasbase/api/device/PushDeviceGoods?DeviceId=`+data, {
return request(getDataBaseUrl()+`/api/device/PushDeviceGoods?DeviceId=`+data, {
method: 'Get',
});
}
/** 修改 */
export async function UpdateDeviceInfo(data) {
return request(`/saasbase/api/device/update`, {
return request(getDataBaseUrl()+`/api/device/update`, {
method: 'POST',
data: data,
});
}
/** 修改 */
export async function CopyDevice(data) {
return request(`/saasbase/api/device/CopyDevice`, {
return request(getDataBaseUrl()+`/api/device/CopyDevice`, {
method: 'POST',
data: data,
});
}
/** 删除 */
export async function DelDeviceInfo(data) {
return request(`​​/saasbase/api/device/delete`, {
return request(getDataBaseUrl()+`​​/api/device/delete`, {
method: 'POST',
data: data,
});
}
/** 获取所有设备标签 */
export async function GetDeviceType() {
return request(`​/saasbase/api/device/getdevicetypelist`, {
return request(getDataBaseUrl()+`​/api/device/getdevicetypelist`, {
method: 'GET',
});
}
@@ -61,7 +61,7 @@ export async function AddDeviceType(data) {
}
/** 获取所有设备版本 */
export async function GetDeviceVersions() {
return request(`​/saasbase/api/devicevesion/getdevicevesionlist`, {
return request(getDataBaseUrl()+`​/api/devicevesion/getdevicevesionlist`, {
method: 'GET',
});
}
@@ -73,7 +73,7 @@ export async function GetDeviceVersions() {
* @returns
*/
export async function GetDeviceGoods(params, options) {
return request('/saasbase/api/device/GetDeviceGoods', {
return request(getDataBaseUrl()+'/api/device/GetDeviceGoods', {
method: 'POST',
data: {
...params,
@@ -87,7 +87,7 @@ export async function GetDeviceGoods(params, options) {
* @returns
*/
export async function AddDeviceGood(params) {
return request('/saasbase/api/device/AddDeviceGood', {
return request(getDataBaseUrl()+'/api/device/AddDeviceGood', {
method: 'POST',
data: {
...params,
@@ -101,7 +101,7 @@ export async function AddDeviceGood(params) {
* @returns
*/
export async function GetGoods(params) {
return request('/saasbase/​api/device/GetGoods', {
return request(getDataBaseUrl()+'/​api/device/GetGoods', {
method: 'POST',
data: {
...params,
@@ -115,7 +115,7 @@ export async function GetGoods(params) {
* @returns
*/
export async function GetByDeviceGoods(params) {
return request('/saasbase/​api/device/GetByDeviceGoods', {
return request(getDataBaseUrl()+'/​api/device/GetByDeviceGoods', {
method: 'POST',
data: {
...params,
@@ -125,7 +125,7 @@ export async function GetByDeviceGoods(params) {

/** 获取商品物料库存 */
export async function GetDeviceStorePage(data) {
return request(`/saasbase/api/device/GetDeviceStorePage`, {
return request(getDataBaseUrl()+`/api/device/GetDeviceStorePage`, {
method: 'POST',
data: data,
});
@@ -137,7 +137,7 @@ export async function GetDeviceStorePage(data) {
* @returns
*/
export async function removeSingleStockAdjust(data) {
return request(`/saasbase/api/device/DelStockAdjust?Id=${data}`, {
return request(getDataBaseUrl()+`/api/device/DelStockAdjust?Id=${data}`, {
method: 'DELETE',
// data: data,
// ...(options || {}),
@@ -146,7 +146,7 @@ export async function removeSingleStockAdjust(data) {

/** 添加商品物料库存 */
export async function AddStoreBatchingStocAsync(data) {
return request(`/saasbase/api/device/AddUpdateDeviceStocAsync`, {
return request(getDataBaseUrl()+`/api/device/AddUpdateDeviceStocAsync`, {
method: 'POST',
data: data,
});
@@ -154,7 +154,7 @@ export async function AddStoreBatchingStocAsync(data) {

/** 修改商品物料库存 */
export async function UpdateStoreBatchingStocAsync(data) {
return request(`/saasbase/api/device/AddUpdateDeviceStocAsync`, {
return request(getDataBaseUrl()+`/api/device/AddUpdateDeviceStocAsync`, {
method: 'put',
data: data,
});
@@ -162,14 +162,14 @@ export async function UpdateStoreBatchingStocAsync(data) {

/**获取位置配置 */
export async function getloc(data) {
return request(`/saasbase/api/deviceconfig/getlocs?Code=${data}`, {
return request(getDataBaseUrl()+`/api/deviceconfig/getlocs?Code=${data}`, {
method: 'GET',
});
}

/** 获取原料 */
export async function GetBatchingAsync(data) {
return request(`/saasbase/api/device/GetProductList`, {
return request(getDataBaseUrl()+`/api/device/GetProductList`, {
method: 'post',
data: data,
});
@@ -181,7 +181,7 @@ export async function GetBatchingAsync(data) {
* @returns
*/
export async function getFoodMenuList(params) {
return request('/saasbase/​api/FoodMenu/tree', {
return request(getDataBaseUrl()+'/​api/FoodMenu/tree', {
data: {
...params,
},
@@ -190,25 +190,25 @@ export async function getFoodMenuList(params) {

/** 同步库存 */
export async function PushStockAsync(data) {
return request(`/saasbase/api/device/PushDevice?DeviceId=${data}`, {
return request(getDataBaseUrl()+`/api/device/PushDevice?DeviceId=${data}`, {
method: 'post',
});
}

/** 获取实时库存 */
export async function CheckStockAdjust(data) {
return request(`/saasbase/api/device/CheckStockAdjust?DeviceId=${data}`, {
return request(getDataBaseUrl()+`/api/device/CheckStockAdjust?DeviceId=${data}`, {
method: 'POST',
});
}
export async function GetDeviceVesion(TypeCode) {
return request(`/saasbase/api/DeviceVesion/GetDeviceVesion?productId=${TypeCode}`, {
return request(getDataBaseUrl()+`/api/DeviceVesion/GetDeviceVesion?productId=${TypeCode}`, {
method: 'Get',
});
}

export async function TechnologyTemplateExport(data) {
return request(`/saasbase/api/goods/TechnologyTemplateExport?deviceId=${data}`, {
return request(getDataBaseUrl()+`/api/goods/TechnologyTemplateExport?deviceId=${data}`, {
method: 'post',
// responseType: 'blob'
});


+ 8
- 8
src/pages/device/deviceVesion/services.js 파일 보기

@@ -1,15 +1,15 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
/** 设备类型列表 */
export async function GetDeviceVesionPage(data) {
return request(`/saasbase/api/devicevesion/page`, {
return request(getDataBaseUrl()+`/api/devicevesion/page`, {
method: 'POST',
data: data,
});
}
/** 添加设备类型 */
export async function AddDeviceVesion(data) {
return request(`/saasbase/api/devicevesion/add`, {
return request(getDataBaseUrl()+`/api/devicevesion/add`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -19,7 +19,7 @@ export async function AddDeviceVesion(data) {

/** 删除设备类型 */
export async function DelDeviceVesion(data) {
return request(`​/saasbase/api/devicevesion/delete`, {
return request(getDataBaseUrl()+`​/api/devicevesion/delete`, {
method: 'POST',
data: data,
});
@@ -27,26 +27,26 @@ export async function DelDeviceVesion(data) {

/** 修改设备类型 */
export async function UpdateDeviceVesion(data) {
return request(`​/saasbase/api/devicevesion/update`, {
return request(getDataBaseUrl()+`​/api/devicevesion/update`, {
method: 'POST',
data: data,
});
}
export async function UpdateStatus(data) {
return request(`​/saasbase/api/devicevesion/updatestatus`, {
return request(getDataBaseUrl()+`​/api/devicevesion/updatestatus`, {
method: 'POST',
data: data,
});
}
/**获取产品 */
export async function GetProductList() {
return request(`/saasbase/api/product/list`, {
return request(getDataBaseUrl()+`/api/product/list`, {
method: 'Get',
});
}

export async function GetCosRequestURL(data) {
return request(`/saasbase/api/systemconfig/GetCosRequestSignURL`, {
return request(getDataBaseUrl()+`/api/systemconfig/GetCosRequestSignURL`, {
method: 'POST',
data: data,
});

+ 6
- 6
src/pages/device/product/services.js 파일 보기

@@ -1,8 +1,8 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
/** 产品列表 */
export async function GetProductPage(data) {
return request(`/saasbase/api/product/page`, {
return request(getDataBaseUrl()+`/api/product/page`, {
method: 'POST',
data: data,
});
@@ -10,7 +10,7 @@ export async function GetProductPage(data) {

/** 添加产品 */
export async function AddProduct(data) {
return request(`/saasbase/api/product/add`, {
return request(getDataBaseUrl()+`/api/product/add`, {
method: 'POST',
data: data,
// params: { ...params },
@@ -20,7 +20,7 @@ export async function AddProduct(data) {

/** 删除产品 */
export async function DelProduct(data) {
return request(`​/saasbase/api/product/delete`, {
return request(getDataBaseUrl()+`​/api/product/delete`, {
method: 'POST',
data: data,
});
@@ -28,7 +28,7 @@ export async function DelProduct(data) {

/** 修改产品 */
export async function UpdateProduct(data) {
return request(`​/saasbase/api/product/update`, {
return request(getDataBaseUrl()+`​/api/product/update`, {
method: 'POST',
data: data,
});
@@ -36,7 +36,7 @@ export async function UpdateProduct(data) {

/** 更新产品状态 */
export async function UpdateStatus(data) {
return request(`​/saasbase/api/product/updatestatus`, {
return request(getDataBaseUrl()+`​/api/product/updatestatus`, {
method: 'POST',
data: data,
});


+ 14
- 14
src/pages/device/productmanage/services.js 파일 보기

@@ -1,80 +1,80 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
//获取分页数据
export async function getGoodstechnologypage(data) {
return request(`/saasbase/api/productfunction/page`, {
return request(getDataBaseUrl()+`/api/productfunction/page`, {
method: 'Post',
data: data,
});
}
export async function addgoodstechnology(data) {
return request(`/saasbase/api/productfunction/add`, {
return request(getDataBaseUrl()+`/api/productfunction/add`, {
method: 'Post',
data: data,
});
}
export async function updategoodstechnology(data) {
return request(`/saasbase/api/productfunction/update`, {
return request(getDataBaseUrl()+`/api/productfunction/update`, {
method: 'Post',
data: data,
});
}
export async function deletegoodstechnology(data) {
return request(`/saasbase/api/productfunction/delete`, {
return request(getDataBaseUrl()+`/api/productfunction/delete`, {
method: 'Post',
data: data,
});
}
export async function getproducttopicspage(data) {
return request(`/saasbase/api/producttopics/page`, {
return request(getDataBaseUrl()+`/api/producttopics/page`, {
method: 'Post',
data: data,
});
}
export async function addproducttopics(data) {
return request(`/saasbase/api/producttopics/add`, {
return request(getDataBaseUrl()+`/api/producttopics/add`, {
method: 'Post',
data: data,
});
}
export async function updateproducttopics(data) {
return request(`/saasbase/api/producttopics/update`, {
return request(getDataBaseUrl()+`/api/producttopics/update`, {
method: 'Post',
data: data,
});
}
export async function deleteproducttopics(data) {
return request(`/saasbase/api/producttopics/delete`, {
return request(getDataBaseUrl()+`/api/producttopics/delete`, {
method: 'Post',
data: data,
});
}
export async function gettechnologyactionList(data) {
return request(`/saasbase/api/productfunction/getproductfunctionaction?productFunctionId=`+data, {
return request(getDataBaseUrl()+`/api/productfunction/getproductfunctionaction?productFunctionId=`+data, {
method: 'Get',
});
}
export async function addtechnologyaction(data) {
return request(`/saasbase/api/productfunction/addproductfunctionaction`, {
return request(getDataBaseUrl()+`/api/productfunction/addproductfunctionaction`, {
method: 'Post',
data: data,
});
}
export async function updatetechnologyaction(data) {
return request(`/saasbase/api/productfunction/updateproductfunctionaction`, {
return request(getDataBaseUrl()+`/api/productfunction/updateproductfunctionaction`, {
method: 'Post',
data: data,
});
}
export async function deletetechnologyaction(data) {
return request(`/saasbase/api/productfunction/delproductfunctionaction`, {
return request(getDataBaseUrl()+`/api/productfunction/delproductfunctionaction`, {
method: 'Post',
data: data,
});
}

export async function GetDeviceVesion(TypeCode) {
return request(`/saasbase/api/devicevesion/getdevicevesion?productId=${TypeCode}`, {
return request(getDataBaseUrl()+`/api/devicevesion/getdevicevesion?productId=${TypeCode}`, {
method: 'Get',
});
}

+ 8
- 8
src/pages/org/orgamange/service.js 파일 보기

@@ -1,5 +1,5 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
// export async function getpage(params) {
// return request('/api​/sysOrg​/page', {
// method: 'POST',
@@ -10,7 +10,7 @@ import { request } from 'umi';
// }

export async function getpage(params, options) {
return request('/saasbase/api/organize/page', {
return request(getDataBaseUrl()+'/api/organize/page', {
method: 'POST',
data: {
...params,
@@ -18,7 +18,7 @@ export async function getpage(params, options) {
});
}
export async function add(params) {
return request('/saasbase/api/organize/addorg', {
return request(getDataBaseUrl()+'/api/organize/addorg', {
method: 'POST',
data: {
...params,
@@ -37,7 +37,7 @@ export async function add(params) {
// });
// }
export async function getlist(params) {
return request('​/kitchen/api​/organize/getorglist', {
return request(getDataBaseUrl()+'​/api​/organize/getorglist', {
method: 'POST',
data: {
...params,
@@ -45,14 +45,14 @@ export async function getlist(params) {
});
}
export async function orgdelete(params) {
return request('​/saasbase/api​/organize/deleteorg?id='+params, {
return request(getDataBaseUrl()+'​/api​/organize/deleteorg?id='+params, {
method: 'GET',
});
}

export async function edit(params) {
return request('​/saasbase/api​/organize/updateorg', {
return request(getDataBaseUrl()+'​/api​/organize/updateorg', {
method: 'POST',
data: {
...params,
@@ -60,7 +60,7 @@ export async function edit(params) {
});
}
export async function getdetail(params) {
return request('/saasbase/api​/sysOrg​/detail', {
return request(getDataBaseUrl()+'/api​/sysOrg​/detail', {
method: 'POST',
data: {
...params,
@@ -68,7 +68,7 @@ export async function getdetail(params) {
});
}
export async function gettree(params) {
return request('​/saasbase/api​/organize/tree', {
return request(getDataBaseUrl()+'​/api​/organize/tree', {
method: 'GET',
data: {
...params,


+ 5
- 5
src/pages/org/roles/components/service.js 파일 보기

@@ -1,23 +1,23 @@

import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
function menutreepage(params) {
return request('/saasbase/api​/menu/getmenutreepage', {
return request(getDataBaseUrl()+'/api​/menu/getmenutreepage', {
method: 'post',
data: params,
});
}

function SelectTree() {
return request('​/saasbase/api/menu/menutrees/?getType=user');
return request(getDataBaseUrl()+'​/api/menu/menutrees/?getType=user');
}

function GetOrg(params) {
return request('/saasbase/api/menu/getorglist');
return request(getDataBaseUrl()+'/api/menu/getorglist');
}

function gettree(params) {
return request('​/saasbase/api​/organize/tree', {
return request(getDataBaseUrl()+'​/api​/organize/tree', {
data: {
...params,
},


+ 10
- 9
src/pages/org/roles/service.js 파일 보기

@@ -1,7 +1,8 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
//分页
export async function Page(params) {
return request('/saasbase/api/roles/page', {
return request(getDataBaseUrl()+'/api/roles/page', {
method: 'post',
data: {
...params,
@@ -10,16 +11,16 @@ export async function Page(params) {
}
//启用
export async function Enable(params) {
return request(`/saasbase/api/roles/enable/?Id=${params}`);
return request(getDataBaseUrl()+`/api/roles/enable/?Id=${params}`);
}
//禁用
export async function Disable(params) {
return request(`/saasbase/api/roles/disable/?Id=${params}`);
return request(getDataBaseUrl()+`/api/roles/disable/?Id=${params}`);
}

//新增
export async function add(params) {
return request('/saasbase/api/roles/add', {
return request(getDataBaseUrl()+'/api/roles/add', {
method: 'POST',
data: {
...params,
@@ -28,7 +29,7 @@ export async function add(params) {
}
//修改
export async function edit(params) {
return request('/saasbase/api​/roles/update', {
return request(getDataBaseUrl()+'/api​/roles/update', {
method: 'POST',
data: {
...params,
@@ -37,7 +38,7 @@ export async function edit(params) {
}
//删除
export async function removeRole(params) {
return request('/saasbase/api​/roles/delete', {
return request(getDataBaseUrl()+'/api​/roles/delete', {
method: 'POST',
data: params,
});
@@ -45,7 +46,7 @@ export async function removeRole(params) {

//设置菜单
export async function setMenu(params) {
return request('​/saasbase/api/roles/addorupdatemenurole',{
return request(getDataBaseUrl()+'​/api/roles/addorupdatemenurole',{
method:'post',
data:params
});
@@ -53,12 +54,12 @@ export async function setMenu(params) {

//获取角色菜单
export async function GetRoleMenu(params) {
return request(`/saasbase/api/roles/getmenurole/?RoleId=${params}`);
return request(getDataBaseUrl()+`/api/roles/getmenurole/?RoleId=${params}`);
}

//数据授权
export async function SetDataRole(params) {
return request(`/saasbase/api/roles/setandalterdatascope`,{
return request(getDataBaseUrl()+`/api/roles/setandalterdatascope`,{
method:'post',
data:params
});


+ 3
- 3
src/pages/org/users/components/service.js 파일 보기

@@ -1,13 +1,13 @@

import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
//组织机构
function GetOrg(params) {
return request('/saasbase/api/organize/getorglist');
return request(getDataBaseUrl()+'/api/organize/getorglist');
}

function gettree(params) {
return request('​/saasbase/api​/organize/tree', {
return request(getDataBaseUrl()+'​/api​/organize/tree', {
data: {
...params,
},


+ 15
- 15
src/pages/org/users/service.js 파일 보기

@@ -1,84 +1,84 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
function Page(params) {
return request(`/saasbase/api/user/userpage`,{method:'post',data:params});
return request(getDataBaseUrl()+`/api/user/userpage`,{method:'post',data:params});
}

//启用
function Enable(params)
{
return request(`/saasbase/api/user/enable/?Id=${params}`)
return request(getDataBaseUrl()+`/api/user/enable/?Id=${params}`)
}
//禁用
function Disable(params)
{
return request(`/saasbase/api/user/disable/?Id=${params}`)
return request(getDataBaseUrl()+`/api/user/disable/?Id=${params}`)
}

//删除
function RemoveUser(params) {
return request('/saasbase/api​/user/delete', {
return request(getDataBaseUrl()+'/api​/user/delete', {
method: 'POST',
data: params
});
}

function Add(params) {
return request('/saasbase/api​/user/add', {
return request(getDataBaseUrl()+'/api​/user/add', {
method: 'POST',
data: params
});
}

function Update(params) {
return request('/saasbase/api​/user/update', {
return request(getDataBaseUrl()+'/api​/user/update', {
method: 'POST',
data: params
});
}

function ResetPwd(params) {
return request(`/saasbase/api/user/resetuserpwd/?Id=${params}`);
return request(getDataBaseUrl()+`/api/user/resetuserpwd/?Id=${params}`);
}

function UpdatePwd(params) {
return request('/saasbase/api/user/updatepwd', {
return request(getDataBaseUrl()+'/api/user/updatepwd', {
method: 'POST',
data: params
});
}

function GetRoleDic() {
return request(`/saasbase/api/roles/getrole`);
return request(getDataBaseUrl()+`/api/roles/getrole`);
}

function GetUserRole(params) {
return request(`/saasbase/api/user/getuserrole?UserId=${params}`);
return request(getDataBaseUrl()+`/api/user/getuserrole?UserId=${params}`);
}

function AddUserRole(params) {
return request('/saasbase/api/user/adduserrole', {
return request(getDataBaseUrl()+'/api/user/adduserrole', {
method: 'POST',
data: params
});
}

function UpdateUserRole(params) {
return request('/saasbase/api/user/updateuserrole', {
return request(getDataBaseUrl()+'/api/user/updateuserrole', {
method: 'POST',
data: params
});
}
//数据授权
export async function SetDataRole(params) {
return request(`/saasbase/api/user/setandalteruserscope`,{
return request(getDataBaseUrl()+`/api/user/setandalteruserscope`,{
method:'post',
data:params
});
}

function gettree(params) {
return request('​/kitchen/api​/sysOrg​/tree', {
return request(getDataBaseUrl()+'​/api​/sysOrg​/tree', {
data: {
...params,
},


+ 6
- 5
src/pages/sys/dictionary/dictdata/service.js 파일 보기

@@ -1,15 +1,16 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
export default {
/** 查询数据字典信息*/
GetDictData(data) {
return request('/saasbase/api/dictdata/getdictdata', {
return request(getDataBaseUrl()+'/api/dictdata/getdictdata', {
method: 'Post',
data: data,
});
},
/** 新增数据字典信息*/
AddDictData(data) {
return request('/saasbase/api/dictdata/adddictdata', {
return request(getDataBaseUrl()+'/api/dictdata/adddictdata', {
method: 'POST',
data: {
...data,
@@ -18,7 +19,7 @@ export default {
},
/** 修改数据字典信息*/
UpdateDictData(data) {
return request('/saasbase/api/dictdata/updatedictdata', {
return request(getDataBaseUrl()+'/api/dictdata/updatedictdata', {
method: 'POST',
data: {
...data,
@@ -27,14 +28,14 @@ export default {
},
/** 删除数据字典信息*/
removeDictData(data) {
return request(`/saasbase/api/dictdata/batchdeldictdata`, {
return request(getDataBaseUrl()+`/api/dictdata/batchdeldictdata`, {
method: 'POST',
data: data,
});
},
/** 获取字典类型信息*/
getDictTypeList() {
return request(`/saasbase/api/dicttype/dicttype`, {
return request(getDataBaseUrl()+`/api/dicttype/dicttype`, {
method: 'Get',
// params: { ...params },
// ...(options || {}),


+ 5
- 5
src/pages/sys/dictionary/dicttype/service.js 파일 보기

@@ -1,30 +1,30 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
export default {
/** 查询字典类型信息*/
getDictType(data) {
return request('/saasbase/api/dicttype/getdicttype', {
return request(getDataBaseUrl()+'/api/dicttype/getdicttype', {
method: 'Post',
data: data,
});
},
/** 添加字典类型信息*/
addDictType(data) {
return request('/saasbase/api/dicttype/adddicttype', {
return request(getDataBaseUrl()+'/api/dicttype/adddicttype', {
method: 'POST',
data: data,
});
},
/** 修改字典类型信息*/
updateDictType(data) {
return request('/saasbase/api/dicttype/updatedicttype', {
return request(getDataBaseUrl()+'/api/dicttype/updatedicttype', {
method: 'POST',
data: data,
});
},
/** 删除字典类型信息*/
removeDictType(data) {
return request('/saasbase/api/dicttype/deletetedicttype', {
return request(getDataBaseUrl()+'/api/dicttype/deletetedicttype', {
method: 'POST',
data: data,
});


+ 9
- 9
src/pages/sys/menus/service.js 파일 보기

@@ -1,48 +1,48 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
function menutreepage(params) {
return request('/saasbase/api​/menu/getmenutreepage', {
return request(getDataBaseUrl()+'/api​/menu/getmenutreepage', {
method: 'post',
data: params,
});
}

function enable(params) {
return request(`/saasbase/api​/menu/enable?Id=${params}`);
return request(getDataBaseUrl()+`/api​/menu/enable?Id=${params}`);
}

function disable(params) {
return request(`/saasbase/api/menu/disable?Id=${params}`);
return request(getDataBaseUrl()+`/api/menu/disable?Id=${params}`);
}

function remove(params) {
return request(`/saasbase/api​/menu/delete`, {
return request(getDataBaseUrl()+`/api​/menu/delete`, {
method: 'post',
data: params,
});
}

function add(params) {
return request(`/saasbase/api​/menu/add`, {
return request(getDataBaseUrl()+`/api​/menu/add`, {
method: 'post',
data: params,
});
}
function update(params) {
return request(`/saasbase/api​/menu/update`, {
return request(getDataBaseUrl()+`/api​/menu/update`, {
method: 'post',
data: params,
});
}

function trees() {
return request(`​/saasbase/api/menu/menutreesall`, {
return request(getDataBaseUrl()+`​/api/menu/menutreesall`, {
method: 'Get',
});
}

function getDicData(code) {
return request(`/saasbase/api/select/getdictvalue/?TypeCode=${code}`);
return request(getDataBaseUrl()+`/api/select/getdictvalue/?TypeCode=${code}`);
}

export default { menutreepage, trees, enable, disable, add, remove, update,getDicData };

+ 7
- 6
src/services/api.js 파일 보기

@@ -1,10 +1,11 @@
import { request } from 'umi';
import { getDataBaseUrl } from '@/global_data';
//import api from './apibase';
//例子
export default {
//登录
Login(parms) {
return request('/saasbase/api/auth/login', {
return request(getDataBaseUrl()+'/api/auth/login', {
method: 'POST',
data: {
...parms,
@@ -13,23 +14,23 @@ export default {
},
//获取个人信息
queryCurrent() {
return request('/saasbase/api/auth/getLoginUser');
return request(getDataBaseUrl()+'/api/auth/getLoginUser');
},

//同步菜单数据到数据库
queryAndSyncMenu(args) {
return request('/saasbase/api/auth/syncmenus', { method: 'post', data: args });
return request(getDataBaseUrl()+'/api/auth/syncmenus', { method: 'post', data: args });
},
//动态菜单
DymicMenus(userid) {
return request(`/saasbase/api/menu/menutree`, { method: 'get' });
return request(getDataBaseUrl()+`/api/menu/menutree`, { method: 'get' });
},
//登出
outLogin() {
return request('/saasbase/api/auth/logout');
return request(getDataBaseUrl()+'/api/auth/logout');
},
getFakeCaptcha(params, options) {
return request(url, '/saasbase/api/login/captcha', {
return request(url, getDataBaseUrl()+'/api/login/captcha', {
method: 'POST',
params: { ...params },
headers: {


불러오는 중...
취소
저장