diff --git a/ruoyi-ui/src/lang/en.js b/ruoyi-ui/src/lang/en.js index 2c7a6e0..eb85559 100644 --- a/ruoyi-ui/src/lang/en.js +++ b/ruoyi-ui/src/lang/en.js @@ -28,7 +28,11 @@ export default { search: 'Search', reset: 'reset', cancel:'cancel', - ok:'ok' + ok:'ok', + confirmDeletion:'Are you sure to delete the data item whose {key} is {value}?', + modificationSuccessful:'Modification Successful', + addedSuccessfully:'Added Successfully', + successfullyDeleted:'Successfully Deleted' }, common: { success: 'success', diff --git a/ruoyi-ui/src/lang/zhCn.js b/ruoyi-ui/src/lang/zhCn.js index 18321fe..52c7b11 100644 --- a/ruoyi-ui/src/lang/zhCn.js +++ b/ruoyi-ui/src/lang/zhCn.js @@ -29,6 +29,7 @@ export default { reset: '重置', cancel:'取 消', ok:'确 定', + confirmDeletion:'是否确认删除%{key}为%{value}的数据项?', modificationSuccessful:'修改成功', addedSuccessfully:'新增成功', successfullyDeleted:'删除成功' diff --git a/ruoyi-ui/src/views/basecar/car/index.vue b/ruoyi-ui/src/views/basecar/car/index.vue index b6acc4d..27ccb8d 100644 --- a/ruoyi-ui/src/views/basecar/car/index.vue +++ b/ruoyi-ui/src/views/basecar/car/index.vue @@ -745,7 +745,9 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { const postIds = row.id || ids.value; - proxy.$modal.confirm('是否确认删除岗位编号为"' + postIds + '"的数据项?').then(function () { + proxy.$modal.confirm(t('option.confirmDeletion', { + key: t('baseCar.car.companyCode'), value: postIds + })).then(function () { return delBaseCar(postIds); }).then(() => { getList(); diff --git a/ruoyi-ui/src/views/carqueue/carqueue/index.vue b/ruoyi-ui/src/views/basecar/carqueue/index.vue similarity index 99% rename from ruoyi-ui/src/views/carqueue/carqueue/index.vue rename to ruoyi-ui/src/views/basecar/carqueue/index.vue index 546def7..451bd65 100644 --- a/ruoyi-ui/src/views/carqueue/carqueue/index.vue +++ b/ruoyi-ui/src/views/basecar/carqueue/index.vue @@ -529,7 +529,9 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { const postIds = row.postId || ids.value; - proxy.$modal.confirm('是否确认删除岗位编号为"' + postIds + '"的数据项?').then(function () { + proxy.$modal.confirm(t('option.confirmDeletion', { + key: t('carQueue.carQueue.tyreFacCode'), value: postIds + })).then(function () { return delCarQueue(postIds); }).then(() => { getList(); @@ -537,6 +539,7 @@ function handleDelete(row) { }).catch(() => { }); } + /** 导出按钮操作 */ function handleExport() { proxy.download("system/post/export", { diff --git a/ruoyi-ui/src/views/basecar/cartype/index.vue b/ruoyi-ui/src/views/basecar/cartype/index.vue index 7b836db..33f47c3 100644 --- a/ruoyi-ui/src/views/basecar/cartype/index.vue +++ b/ruoyi-ui/src/views/basecar/cartype/index.vue @@ -565,7 +565,9 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { const postIds = row.postId || ids.value; - proxy.$modal.confirm('是否确认删除岗位编号为"' + postIds + '"的数据项?').then(function () { + proxy.$modal.confirm(t('option.confirmDeletion', { + key: t('baseCar.carType.tyreFacCode'), value: postIds + })).then(function () { return delCartype(postIds); }).then(() => { getList(); diff --git a/ruoyi-ui/src/views/tireManagement/info/index.vue b/ruoyi-ui/src/views/tireManagement/info/index.vue index 3a19170..9c677f4 100644 --- a/ruoyi-ui/src/views/tireManagement/info/index.vue +++ b/ruoyi-ui/src/views/tireManagement/info/index.vue @@ -488,7 +488,9 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { const postIds = row.id || ids.value; - proxy.$modal.confirm('是否确认删除岗位编号为"' + postIds + '"的数据项?').then(function () { + proxy.$modal.confirm(t('option.confirmDeletion', { + key: t('tireManagement.tireFactoryCode'), value: postIds + })).then(function () { return delBasetyre(postIds); }).then(() => { getList();