From d78fcc0d2e8249096d68baa355a0a09779d68fcf Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Tue, 20 Feb 2024 13:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/push/batchingpush/index.jsx | 40 +++++++++++------------ src/pages/push/batchingpush/services.js | 4 +-- src/pages/push/goodspush/index.jsx | 40 +++++++++++------------ src/pages/push/goodspush/services.js | 4 +-- src/pages/push/technologypush/index.jsx | 40 +++++++++++------------ src/pages/push/technologypush/services.js | 5 ++- 6 files changed, 66 insertions(+), 67 deletions(-) diff --git a/src/pages/push/batchingpush/index.jsx b/src/pages/push/batchingpush/index.jsx index c38f5b1..2ae8c1d 100644 --- a/src/pages/push/batchingpush/index.jsx +++ b/src/pages/push/batchingpush/index.jsx @@ -126,26 +126,26 @@ const goodspush = () => { > 重发 , - { - await DeleteGoodsType(record.id).then((r) => { - if (r.succeeded) { - message.success('删除成功'); - actionRef.current.reloadAndRest(); - } else { - message.error(r.errors); - } - }); - }} - onCancel={() => {}} - > - 删除 - , + // { + // await DeleteGoodsType(record.id).then((r) => { + // if (r.succeeded) { + // message.success('删除成功'); + // actionRef.current.reloadAndRest(); + // } else { + // message.error(r.errors); + // } + // }); + // }} + // onCancel={() => {}} + // > + // 删除 + // , ], }, ]; diff --git a/src/pages/push/batchingpush/services.js b/src/pages/push/batchingpush/services.js index 848ea3b..000da0c 100644 --- a/src/pages/push/batchingpush/services.js +++ b/src/pages/push/batchingpush/services.js @@ -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, }); } diff --git a/src/pages/push/goodspush/index.jsx b/src/pages/push/goodspush/index.jsx index a544967..26e744f 100644 --- a/src/pages/push/goodspush/index.jsx +++ b/src/pages/push/goodspush/index.jsx @@ -126,26 +126,26 @@ const goodspush = () => { > 重发 , - { - await DeleteGoodsType(record.id).then((r) => { - if (r.succeeded) { - message.success('删除成功'); - actionRef.current.reloadAndRest(); - } else { - message.error(r.errors); - } - }); - }} - onCancel={() => {}} - > - 删除 - , + // { + // await DeleteGoodsType(record.id).then((r) => { + // if (r.succeeded) { + // message.success('删除成功'); + // actionRef.current.reloadAndRest(); + // } else { + // message.error(r.errors); + // } + // }); + // }} + // onCancel={() => {}} + // > + // 删除 + // , ], }, ]; diff --git a/src/pages/push/goodspush/services.js b/src/pages/push/goodspush/services.js index 4529873..1bc74bd 100644 --- a/src/pages/push/goodspush/services.js +++ b/src/pages/push/goodspush/services.js @@ -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, }); } diff --git a/src/pages/push/technologypush/index.jsx b/src/pages/push/technologypush/index.jsx index e767ec8..c9f7add 100644 --- a/src/pages/push/technologypush/index.jsx +++ b/src/pages/push/technologypush/index.jsx @@ -126,26 +126,26 @@ const goodspush = () => { > 重发 , - { - await DeleteGoodsType(record.id).then((r) => { - if (r.succeeded) { - message.success('删除成功'); - actionRef.current.reloadAndRest(); - } else { - message.error(r.errors); - } - }); - }} - onCancel={() => {}} - > - 删除 - , + // { + // await DeleteGoodsType(record.id).then((r) => { + // if (r.succeeded) { + // message.success('删除成功'); + // actionRef.current.reloadAndRest(); + // } else { + // message.error(r.errors); + // } + // }); + // }} + // onCancel={() => {}} + // > + // 删除 + // , ], }, ]; diff --git a/src/pages/push/technologypush/services.js b/src/pages/push/technologypush/services.js index 4529873..9f7ceca 100644 --- a/src/pages/push/technologypush/services.js +++ b/src/pages/push/technologypush/services.js @@ -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) {