diff --git a/src/main/webapp/app/entities/dict/dict-edit.component.ts b/src/main/webapp/app/entities/dict/dict-edit.component.ts index 6361691..d288431 100644 --- a/src/main/webapp/app/entities/dict/dict-edit.component.ts +++ b/src/main/webapp/app/entities/dict/dict-edit.component.ts @@ -141,7 +141,7 @@ export default defineComponent({ alertService.showInfo($t('jewpmsApp.dict.updated', { param: dict.value.name })); } else { await axios.post('api/dicts', dict.value); - alertService.showSuccess($t('jewpmsApp.dict.created')); + alertService.showSuccess($t('jewpmsApp.dict.created', { param: dict.value.name })); } previousState(); } catch (e) { diff --git a/src/main/webapp/app/entities/dict/dict.component.ts b/src/main/webapp/app/entities/dict/dict.component.ts index 339eb69..c2b09d8 100644 --- a/src/main/webapp/app/entities/dict/dict.component.ts +++ b/src/main/webapp/app/entities/dict/dict.component.ts @@ -242,7 +242,7 @@ export default defineComponent({ const deleteDict = async () => { try { await axios.delete(`api/dicts/${removeRow.value.id}`); - alertService.showInfo($t('jewpmsApp.dict.deleted')); + alertService.showWarn($t('jewpmsApp.dict.deleted', { param: removeRow.value.name })); removeRow.value.id = null; queryMethod(); showDelete.value = false; diff --git a/src/main/webapp/app/entities/stock/stock-edit.component.ts b/src/main/webapp/app/entities/stock/stock-edit.component.ts index 96e7ac4..4dc1360 100644 --- a/src/main/webapp/app/entities/stock/stock-edit.component.ts +++ b/src/main/webapp/app/entities/stock/stock-edit.component.ts @@ -93,7 +93,7 @@ export default defineComponent({ try { if (stock.value.id) { await axios.put(`api/stocks/${stock.value.id}`, stock.value); - alertService.showSuccess($t('jewpmsApp.stock.updated', { param: stock.value.name })); + alertService.showInfo($t('jewpmsApp.stock.updated', { param: stock.value.name })); } else { await axios.post('api/stocks', stock.value); alertService.showSuccess($t('jewpmsApp.stock.created', { param: stock.value.name })); diff --git a/src/main/webapp/app/shared/alert/alert.service.ts b/src/main/webapp/app/shared/alert/alert.service.ts index 875f704..6068dad 100644 --- a/src/main/webapp/app/shared/alert/alert.service.ts +++ b/src/main/webapp/app/shared/alert/alert.service.ts @@ -32,6 +32,7 @@ export default class AlertService { status: 'info', duration: toastOptions?.delay || 5000, title: toastOptions?.title || 'Info', + iconStatus: 'vxe-icon-info-circle-fill text-primary', }); } diff --git a/src/main/webapp/i18n/zh-cn/dict.json b/src/main/webapp/i18n/zh-cn/dict.json index 4f98d70..59b9438 100644 --- a/src/main/webapp/i18n/zh-cn/dict.json +++ b/src/main/webapp/i18n/zh-cn/dict.json @@ -8,9 +8,9 @@ "editLabel": "编辑数据字典", "notFound": "没有找到数据字典" }, - "created": "创建成功", - "updated": "更新成功", - "deleted": "删除成功", + "created": "创建成功,字典信息 { param }", + "updated": "更新成功,字典信息 { param }", + "deleted": "删除成功,字典信息 { param }", "delete": { "question": "你确定要删除数据字典 { param } 吗?" },