|
|
|
@ -103,6 +103,16 @@ |
|
|
|
@click="showDetailDialog(scope.row)"> |
|
|
|
查看详情 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.processStatus === 'PENDING'" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
style="color: #E6A23C;" |
|
|
|
:loading="scope.row._retrying" |
|
|
|
:disabled="scope.row._retrying" |
|
|
|
@click="handleRetry(scope.row)"> |
|
|
|
{{ scope.row._retrying ? '重试中...' : '重试' }} |
|
|
|
</el-button> |
|
|
|
<span v-else>-</span> |
|
|
|
</span> |
|
|
|
<span v-else>{{ scope.row[item.columnProp] }}</span> |
|
|
|
@ -254,7 +264,8 @@ import { |
|
|
|
getIfsErrorLogList, |
|
|
|
markErrorAsProcessed, |
|
|
|
markErrorAsIgnored, |
|
|
|
getUserAuthorizedSites |
|
|
|
getUserAuthorizedSites, |
|
|
|
retryIfsCall |
|
|
|
} from '@/api/warehouse/ifsCallErrorLog.js' |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -440,7 +451,7 @@ export default { |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "操作", |
|
|
|
columnWidth: 100, |
|
|
|
columnWidth: 150, |
|
|
|
columnSortable: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
fixed: "right" |
|
|
|
@ -623,6 +634,44 @@ export default { |
|
|
|
}).finally(() => { |
|
|
|
this.markIgnoredLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 手工重试IFS接口调用 - rqrq |
|
|
|
handleRetry(row) { |
|
|
|
this.$confirm('确定要重试此记录的IFS接口调用吗?', '确认重试', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
// 设置loading状态 - rqrq |
|
|
|
this.$set(row, '_retrying', true) |
|
|
|
|
|
|
|
const params = { |
|
|
|
id: row.id |
|
|
|
} |
|
|
|
|
|
|
|
retryIfsCall(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('重试成功,IFS接口调用完成') |
|
|
|
// 刷新列表 - rqrq |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg || '重试失败') |
|
|
|
// 刷新列表(更新重试次数)- rqrq |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
console.error('重试失败:', error) |
|
|
|
this.$message.error('重试失败,请稍后再试') |
|
|
|
// 刷新列表 - rqrq |
|
|
|
this.getDataList() |
|
|
|
}).finally(() => { |
|
|
|
// 取消loading状态 - rqrq |
|
|
|
this.$set(row, '_retrying', false) |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
// 用户取消操作 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|