|
|
@@ -1,4 +1,5 @@ |
|
|
|
import { request } from 'umi'; |
|
|
|
import { getDataBaseUrl } from '@/global_data'; |
|
|
|
export async function GetDevicePushRecodePage(data) { |
|
|
|
return request(`/saasstore/api/devicepushrecode/page`, { |
|
|
|
method: 'POST', |
|
|
@@ -24,12 +25,12 @@ export async function GetDevicePushRecodePage(data) { |
|
|
|
}); |
|
|
|
} |
|
|
|
export async function GetDeviceList() { |
|
|
|
return request(`/saasbase/api/device/list`, { |
|
|
|
return request(getDataBaseUrl()+`/api/device/list`, { |
|
|
|
method: 'GET', |
|
|
|
}); |
|
|
|
} |
|
|
|
export async function GetGoodsTypeTree(params) { |
|
|
|
return request('/saasbase/api/goodstype/tree', { |
|
|
|
return request(getDataBaseUrl()+'/api/goodstype/tree', { |
|
|
|
method: 'GET', |
|
|
|
data: { |
|
|
|
...params, |
|
|
@@ -37,7 +38,7 @@ export async function GetDevicePushRecodePage(data) { |
|
|
|
}); |
|
|
|
} |
|
|
|
export async function GetGoodsPage(data) { |
|
|
|
return request(`/saasbase/api/goods/page`, { |
|
|
|
return request(getDataBaseUrl()+`/api/goods/page`, { |
|
|
|
method: 'Post', |
|
|
|
data: data, |
|
|
|
// params: { ...params }, |
|
|
|