Browse Source

设备数据下发重发功能

tmp
zhaoy 11 months ago
parent
commit
c9b314604a
8 changed files with 62 additions and 17 deletions
  1. +17
    -1
      src/pages/push/batchingpush/index.jsx
  2. +2
    -3
      src/pages/push/batchingpush/services.js
  3. +17
    -1
      src/pages/push/goodspush/index.jsx
  4. +2
    -3
      src/pages/push/goodspush/services.js
  5. +17
    -1
      src/pages/push/technologypush/index.jsx
  6. +2
    -3
      src/pages/push/technologypush/services.js
  7. +4
    -4
      src/pages/scene/foodmenu/services.js
  8. +1
    -1
      src/pages/scene/store/services.js

+ 17
- 1
src/pages/push/batchingpush/index.jsx View File

@@ -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"


+ 2
- 3
src/pages/push/batchingpush/services.js View File

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


+ 17
- 1
src/pages/push/goodspush/index.jsx View File

@@ -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"


+ 2
- 3
src/pages/push/goodspush/services.js View File

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


+ 17
- 1
src/pages/push/technologypush/index.jsx View File

@@ -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"


+ 2
- 3
src/pages/push/technologypush/services.js View File

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


+ 4
- 4
src/pages/scene/foodmenu/services.js View File

@@ -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
- 1
src/pages/scene/store/services.js View File

@@ -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`, {


Loading…
Cancel
Save