From b2abc8e2a8d9c1d7ca3e227b28455c1cdf2854f8 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 10 Oct 2024 13:55:10 +0800 Subject: [PATCH] =?UTF-8?q?mq=E5=BC=82=E6=AD=A5=E6=96=B9=E6=B3=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/apiMqError/index.ts | 12 ++---------- src/views/infra/apiMqError/index.vue | 15 ++++----------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/api/infra/apiMqError/index.ts b/src/api/infra/apiMqError/index.ts index c74f4e832..6eb6acc96 100644 --- a/src/api/infra/apiMqError/index.ts +++ b/src/api/infra/apiMqError/index.ts @@ -55,16 +55,8 @@ export const importTemplate = () => { } - -export const retryTable = (id: number) => { - return request.get({ - url: '/wms/apimqerror/retryTable?id=' + id - }) -} - - -export const retryInterface = (id: number) => { +export const retry = (id: number) => { return request.get({ - url: '/wms/apimqerror/retryInterface?id=' + id + url: '/wms/apimqerror/retry?id=' + id }) } \ No newline at end of file diff --git a/src/views/infra/apiMqError/index.vue b/src/views/infra/apiMqError/index.vue index f3e483652..594c6d67f 100644 --- a/src/views/infra/apiMqError/index.vue +++ b/src/views/infra/apiMqError/index.vue @@ -239,17 +239,10 @@ const searchFormClick = (searchData) => { } const handleRetry = (row) => { - if(row.type == "interface:method"){ - ApiMqErrorApi.retryInterface(row.id).then(res => { - message.success(t('common.retrySuccess')) - getList() - }) - }else if(row.type == "table"){ - ApiMqErrorApi.retryTable(row.id).then(res => { - message.success(t('common.retrySuccess')) - getList() - }) - } + ApiMqErrorApi.retry(row.id).then(res => { + message.success(t('common.retrySuccess')) + getList() + }) }