|
|
@ -135,6 +135,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
const butttondata = [ |
|
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:apiMqError:update'}), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:apiMqError:delete'}), // 删除 |
|
|
|
defaultButtons.retryBtn(null), // 重试 |
|
|
|
] |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
@ -143,6 +144,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
} else if (val == 'retry') { // 重试 |
|
|
|
handleRetry(row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -235,6 +238,21 @@ const searchFormClick = (searchData) => { |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|
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() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|