Browse Source

提交

groupmealweb
gwbvipvip 10 months ago
parent
commit
d78fcc0d2e
6 changed files with 66 additions and 67 deletions
  1. +20
    -20
      src/pages/push/batchingpush/index.jsx
  2. +2
    -2
      src/pages/push/batchingpush/services.js
  3. +20
    -20
      src/pages/push/goodspush/index.jsx
  4. +2
    -2
      src/pages/push/goodspush/services.js
  5. +20
    -20
      src/pages/push/technologypush/index.jsx
  6. +2
    -3
      src/pages/push/technologypush/services.js

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

@@ -126,26 +126,26 @@ const goodspush = () => {
>
重发
</a>,
<Popconfirm
type="primary"
key="primary"
title="确认删除吗?"
okText="是"
cancelText="否"
onConfirm={async () => {
await DeleteGoodsType(record.id).then((r) => {
if (r.succeeded) {
message.success('删除成功');
actionRef.current.reloadAndRest();
} else {
message.error(r.errors);
}
});
}}
onCancel={() => {}}
>
<a href="#">删除</a>
</Popconfirm>,
// <Popconfirm
// type="primary"
// key="primary"
// title="确认删除吗?"
// okText="是"
// cancelText="否"
// onConfirm={async () => {
// await DeleteGoodsType(record.id).then((r) => {
// if (r.succeeded) {
// message.success('删除成功');
// actionRef.current.reloadAndRest();
// } else {
// message.error(r.errors);
// }
// });
// }}
// onCancel={() => {}}
// >
// <a href="#">删除</a>
// </Popconfirm>,
],
},
];


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

@@ -14,8 +14,8 @@ export async function GetDevicePushRecodePage(data) {
});
}
export async function DevicePushRecodeUpdate(data) {
return request(getgroupmealUrl()+`/api/devicepushrecode/update`, {
method: 'POST',
return request(getgroupmealUrl()+`/api/devicepushrecode/update?id=`+data, {
method: 'get',
data: data,
});
}


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

@@ -126,26 +126,26 @@ const goodspush = () => {
>
重发
</a>,
<Popconfirm
type="primary"
key="primary"
title="确认删除吗?"
okText="是"
cancelText="否"
onConfirm={async () => {
await DeleteGoodsType(record.id).then((r) => {
if (r.succeeded) {
message.success('删除成功');
actionRef.current.reloadAndRest();
} else {
message.error(r.errors);
}
});
}}
onCancel={() => {}}
>
<a href="#">删除</a>
</Popconfirm>,
// <Popconfirm
// type="primary"
// key="primary"
// title="确认删除吗?"
// okText="是"
// cancelText="否"
// onConfirm={async () => {
// await DeleteGoodsType(record.id).then((r) => {
// if (r.succeeded) {
// message.success('删除成功');
// actionRef.current.reloadAndRest();
// } else {
// message.error(r.errors);
// }
// });
// }}
// onCancel={() => {}}
// >
// <a href="#">删除</a>
// </Popconfirm>,
],
},
];


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

@@ -14,8 +14,8 @@ export async function GetDevicePushRecodePage(data) {
});
}
export async function DevicePushRecodeUpdate(data) {
return request(getgroupmealUrl()+`/api/devicepushrecode/update`, {
method: 'POST',
return request(getgroupmealUrl()+`/api/devicepushrecode/update?id=`+data, {
method: 'get',
data: data,
});
}


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

@@ -126,26 +126,26 @@ const goodspush = () => {
>
重发
</a>,
<Popconfirm
type="primary"
key="primary"
title="确认删除吗?"
okText="是"
cancelText="否"
onConfirm={async () => {
await DeleteGoodsType(record.id).then((r) => {
if (r.succeeded) {
message.success('删除成功');
actionRef.current.reloadAndRest();
} else {
message.error(r.errors);
}
});
}}
onCancel={() => {}}
>
<a href="#">删除</a>
</Popconfirm>,
// <Popconfirm
// type="primary"
// key="primary"
// title="确认删除吗?"
// okText="是"
// cancelText="否"
// onConfirm={async () => {
// await DeleteGoodsType(record.id).then((r) => {
// if (r.succeeded) {
// message.success('删除成功');
// actionRef.current.reloadAndRest();
// } else {
// message.error(r.errors);
// }
// });
// }}
// onCancel={() => {}}
// >
// <a href="#">删除</a>
// </Popconfirm>,
],
},
];


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

@@ -14,9 +14,8 @@ export async function GetDevicePushRecodePage(data) {
});
}
export async function DevicePushRecodeUpdate(data) {
return request(getgroupmealUrl()+`/api/devicepushrecode/update`, {
method: 'POST',
data: data,
return request(getgroupmealUrl()+`/api/devicepushrecode/update?id=`+data, {
method: 'get',
});
}
export async function DevicePushRecodeDelete(data) {


Loading…
Cancel
Save