@@ -9,7 +9,8 @@ import PushFrom from './components/PushFrom'; | |||||
import { | import { | ||||
GetDevicePushRecodePage, | GetDevicePushRecodePage, | ||||
DevicePushRecodeAdd, | DevicePushRecodeAdd, | ||||
DevicePushRecodeDelete | |||||
DevicePushRecodeDelete, | |||||
DevicePushRecodeUpdate | |||||
} from './services'; | } from './services'; | ||||
@@ -109,6 +110,21 @@ const goodspush = () => { | |||||
> | > | ||||
下发详情 | 下发详情 | ||||
</a>, | </a>, | ||||
<a | |||||
key="config" | |||||
onClick={() => { | |||||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||||
if(r.data){ | |||||
message.success('操作成功'); | |||||
actionRef.current.reload(); | |||||
}else{ | |||||
message.error('操作失败'); | |||||
} | |||||
}) | |||||
}} | |||||
> | |||||
重发 | |||||
</a>, | |||||
<Popconfirm | <Popconfirm | ||||
type="primary" | type="primary" | ||||
key="primary" | key="primary" | ||||
@@ -13,9 +13,8 @@ export async function GetDevicePushRecodePage(data) { | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeUpdate(data) { | export async function DevicePushRecodeUpdate(data) { | ||||
return request(`/saasstore/api/devicepushrecode/update`, { | |||||
method: 'POST', | |||||
data: data, | |||||
return request(`/saasstore/api/devicepushrecode/update?id=`+data, { | |||||
method: 'GET', | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeDelete(data) { | export async function DevicePushRecodeDelete(data) { | ||||
@@ -9,7 +9,8 @@ import PushFrom from './components/PushFrom'; | |||||
import { | import { | ||||
GetDevicePushRecodePage, | GetDevicePushRecodePage, | ||||
DevicePushRecodeAdd, | DevicePushRecodeAdd, | ||||
DevicePushRecodeDelete | |||||
DevicePushRecodeDelete, | |||||
DevicePushRecodeUpdate | |||||
} from './services'; | } from './services'; | ||||
@@ -109,6 +110,21 @@ const goodspush = () => { | |||||
> | > | ||||
下发详情 | 下发详情 | ||||
</a>, | </a>, | ||||
<a | |||||
key="config" | |||||
onClick={() => { | |||||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||||
if(r.data){ | |||||
message.success('操作成功'); | |||||
actionRef.current.reload(); | |||||
}else{ | |||||
message.error('操作失败'); | |||||
} | |||||
}) | |||||
}} | |||||
> | |||||
重发 | |||||
</a>, | |||||
<Popconfirm | <Popconfirm | ||||
type="primary" | type="primary" | ||||
key="primary" | key="primary" | ||||
@@ -13,9 +13,8 @@ export async function GetDevicePushRecodePage(data) { | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeUpdate(data) { | export async function DevicePushRecodeUpdate(data) { | ||||
return request(`/saasstore/api/devicepushrecode/update`, { | |||||
method: 'POST', | |||||
data: data, | |||||
return request(`/saasstore/api/devicepushrecode/update?id=`+data, { | |||||
method: 'GET', | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeDelete(data) { | export async function DevicePushRecodeDelete(data) { | ||||
@@ -9,7 +9,8 @@ import PushFrom from './components/PushFrom'; | |||||
import { | import { | ||||
GetDevicePushRecodePage, | GetDevicePushRecodePage, | ||||
DevicePushRecodeAdd, | DevicePushRecodeAdd, | ||||
DevicePushRecodeDelete | |||||
DevicePushRecodeDelete, | |||||
DevicePushRecodeUpdate | |||||
} from './services'; | } from './services'; | ||||
@@ -109,6 +110,21 @@ const goodspush = () => { | |||||
> | > | ||||
下发详情 | 下发详情 | ||||
</a>, | </a>, | ||||
<a | |||||
key="config" | |||||
onClick={() => { | |||||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||||
if(r.data){ | |||||
message.success('操作成功'); | |||||
actionRef.current.reload(); | |||||
}else{ | |||||
message.error('操作失败'); | |||||
} | |||||
}) | |||||
}} | |||||
> | |||||
重发 | |||||
</a>, | |||||
<Popconfirm | <Popconfirm | ||||
type="primary" | type="primary" | ||||
key="primary" | key="primary" | ||||
@@ -13,9 +13,8 @@ export async function GetDevicePushRecodePage(data) { | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeUpdate(data) { | export async function DevicePushRecodeUpdate(data) { | ||||
return request(`/saasstore/api/devicepushrecode/update`, { | |||||
method: 'POST', | |||||
data: data, | |||||
return request(`/saasstore/api/devicepushrecode/update?id=`+data, { | |||||
method: 'GET', | |||||
}); | }); | ||||
} | } | ||||
export async function DevicePushRecodeDelete(data) { | export async function DevicePushRecodeDelete(data) { | ||||
@@ -1,5 +1,5 @@ | |||||
import { request } from 'umi'; | import { request } from 'umi'; | ||||
import { getDataBaseUrl } from '@/global_data'; | |||||
/** 获取场景列表 */ | /** 获取场景列表 */ | ||||
export async function GetFoodPage(data) { | export async function GetFoodPage(data) { | ||||
return request(`/saasstore/api/foodmenu/page`, { | return request(`/saasstore/api/foodmenu/page`, { | ||||
@@ -37,14 +37,14 @@ export async function FoodAdd(data) { | |||||
}); | }); | ||||
} | } | ||||
export async function GetGoodsList(data) { | export async function GetGoodsList(data) { | ||||
return request(`/saasbase/api/goods/page`, { | |||||
return request(getDataBaseUrl()+`/api/goods/page`, { | |||||
method: 'POST', | method: 'POST', | ||||
data: data, | data: data, | ||||
}); | }); | ||||
} | } | ||||
export async function gettree(params) { | export async function gettree(params) { | ||||
return request('/saasbase/api/goodstype/tree', { | |||||
return request(getDataBaseUrl()+'/api/goodstype/tree', { | |||||
method: 'GET', | method: 'GET', | ||||
data: { | data: { | ||||
...params, | ...params, | ||||
@@ -52,7 +52,7 @@ export async function FoodAdd(data) { | |||||
}); | }); | ||||
} | } | ||||
export async function GetDeviceList() { | export async function GetDeviceList() { | ||||
return request(`/saasbase/api/device/list`, { | |||||
return request(getDataBaseUrl()+`/api/device/list`, { | |||||
method: 'GET', | method: 'GET', | ||||
}); | }); | ||||
} | } |
@@ -1,5 +1,5 @@ | |||||
import { request } from 'umi'; | import { request } from 'umi'; | ||||
import { getDataBaseUrl } from '@/global_data'; | |||||
/** 获取场景列表 */ | /** 获取场景列表 */ | ||||
export async function GetStorePage(data) { | export async function GetStorePage(data) { | ||||
return request(`/saasstore/api/store/page`, { | return request(`/saasstore/api/store/page`, { | ||||