Browse Source

mq异步方法优化

syhx
ljlong_2630 4 months ago
parent
commit
b2abc8e2a8
  1. 12
      src/api/infra/apiMqError/index.ts
  2. 9
      src/views/infra/apiMqError/index.vue

12
src/api/infra/apiMqError/index.ts

@ -55,16 +55,8 @@ export const importTemplate = () => {
} }
export const retry = (id: number) => {
export const retryTable = (id: number) => {
return request.get({
url: '/wms/apimqerror/retryTable?id=' + id
})
}
export const retryInterface = (id: number) => {
return request.get({ return request.get({
url: '/wms/apimqerror/retryInterface?id=' + id url: '/wms/apimqerror/retry?id=' + id
}) })
} }

9
src/views/infra/apiMqError/index.vue

@ -239,17 +239,10 @@ const searchFormClick = (searchData) => {
} }
const handleRetry = (row) => { const handleRetry = (row) => {
if(row.type == "interface:method"){ ApiMqErrorApi.retry(row.id).then(res => {
ApiMqErrorApi.retryInterface(row.id).then(res => {
message.success(t('common.retrySuccess')) message.success(t('common.retrySuccess'))
getList() getList()
}) })
}else if(row.type == "table"){
ApiMqErrorApi.retryTable(row.id).then(res => {
message.success(t('common.retrySuccess'))
getList()
})
}
} }

Loading…
Cancel
Save