Browse Source

优化mq消息重试

syhx
ljlong_2630 2 months ago
parent
commit
cc7e17bf06
  1. 2
      src/locales/en-US.ts
  2. 2
      src/locales/zh-CN.ts
  3. 6
      src/views/infra/apiMqError/index.vue
  4. 2
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

2
src/locales/en-US.ts

@ -77,6 +77,8 @@ export default {
confirmAccept: 'Confirm Accept', confirmAccept: 'Confirm Accept',
confirmGiveup: 'Confirm Giveup', confirmGiveup: 'Confirm Giveup',
confirmPublish: 'Confirm Publish', confirmPublish: 'Confirm Publish',
retrySuccess: 'Retry successfully',
retryFinish: 'Retry Finished',
}, },
error: { error: {
noPermission: `Sorry, you don't have permission to access this page.`, noPermission: `Sorry, you don't have permission to access this page.`,

2
src/locales/zh-CN.ts

@ -49,6 +49,8 @@ export default {
delDataMessage: '是否删除数据?', delDataMessage: '是否删除数据?',
delNoData: '请选择需要删除的数据', delNoData: '请选择需要删除的数据',
delSuccess: '删除成功', delSuccess: '删除成功',
retrySuccess: '重试成功',
retryFinish: '重试完成',
index: '序号', index: '序号',
status: '状态', status: '状态',
createTime: '创建时间', createTime: '创建时间',

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

@ -240,7 +240,11 @@ const searchFormClick = (searchData) => {
const handleRetry = (row) => { const handleRetry = (row) => {
ApiMqErrorApi.retry(row.id).then(res => { ApiMqErrorApi.retry(row.id).then(res => {
message.success(t('common.retrySuccess')) if(res){
message.success(t('common.retrySuccess'))
}else{
message.success(t('common.retryFinish'))
}
getList() getList()
}) })
} }

2
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -43,7 +43,7 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {} const requestsettingData = data?.list[0] || {}
export const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) export const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'})
console.log('shiftList',shiftList) console.log('shiftList', shiftList)
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'

Loading…
Cancel
Save