修改国际化

master
夜笙歌 2 years ago
parent 74ceb8d7ad
commit 055b5781c8

@ -26,7 +26,9 @@ export default {
add: 'Add', add: 'Add',
export: 'Export', export: 'Export',
search: 'Search', search: 'Search',
reset: 'reset' reset: 'reset',
cancel:'cancel',
ok:'ok'
}, },
common: { common: {
success: 'success', success: 'success',

@ -26,7 +26,12 @@ export default {
add: '新增', add: '新增',
export: '导出', export: '导出',
search: '搜索', search: '搜索',
reset: '重置' reset: '重置',
cancel:'取 消',
ok:'确 定',
modificationSuccessful:'修改成功',
addedSuccessfully:'新增成功',
successfullyDeleted:'删除成功'
}, },
common: { common: {
success: '成功', success: '成功',

@ -522,8 +522,8 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm">{{ t('option.ok') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ t('option.cancel') }}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
@ -727,13 +727,13 @@ function submitForm() {
if (valid) { if (valid) {
if (form.value.postId != undefined) { if (form.value.postId != undefined) {
updateBaseCar(form.value).then(response => { updateBaseCar(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess(t('option.modificationSuccessful'));
open.value = false; open.value = false;
getList(); getList();
}); });
} else { } else {
addBaseCar(form.value).then(response => { addBaseCar(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess(t('option.addedSuccessfully'));
open.value = false; open.value = false;
getList(); getList();
}); });
@ -749,7 +749,7 @@ function handleDelete(row) {
return delBaseCar(postIds); return delBaseCar(postIds);
}).then(() => { }).then(() => {
getList(); getList();
proxy.$modal.msgSuccess("删除成功"); proxy.$modal.msgSuccess(t('option.successfullyDeleted'));
}).catch(() => { }).catch(() => {
}); });
} }

@ -369,8 +369,8 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm">{{ t('option.ok') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ t('option.cancel') }}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
@ -547,13 +547,13 @@ function submitForm() {
if (valid) { if (valid) {
if (form.value.id != undefined) { if (form.value.id != undefined) {
updateCartype(form.value).then(response => { updateCartype(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess(t('option.modificationSuccessful'));
open.value = false; open.value = false;
getList(); getList();
}); });
} else { } else {
addCartype(form.value).then(response => { addCartype(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess(t('option.addedSuccessfully'));
open.value = false; open.value = false;
getList(); getList();
}); });
@ -569,7 +569,7 @@ function handleDelete(row) {
return delCartype(postIds); return delCartype(postIds);
}).then(() => { }).then(() => {
getList(); getList();
proxy.$modal.msgSuccess("删除成功"); proxy.$modal.msgSuccess(t('option.successfullyDeleted'));
}).catch(() => { }).catch(() => {
}); });
} }

@ -2,7 +2,7 @@
<div class="app-container"> <div class="app-container">
<!-- 搜索栏--> <!-- 搜索栏-->
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"
:label-width=" locale ? '100px':'140px'"> :label-width=" locale ? '90px':'140px'">
<el-form-item :label="t('carQueue.carQueue.tyreFacCode')" prop="tyreFacCode"> <el-form-item :label="t('carQueue.carQueue.tyreFacCode')" prop="tyreFacCode">
<el-input <el-input
v-model="queryParams.tyreFacCode" v-model="queryParams.tyreFacCode"
@ -247,14 +247,14 @@
<!-- 添加或修改岗位对话框 --> <!-- 添加或修改岗位对话框 -->
<el-dialog :title="title" v-model="open" width="500px" append-to-body> <el-dialog :title="title" v-model="open" width="500px" append-to-body>
<el-form ref="postRef" :model="form" :rules="rules" :label-width=" locale ? '100px':'140px'"> <el-form ref="postRef" :model="form" :rules="rules" :label-width=" locale ? '90px':'140px'">
<el-form-item prop="id" v-if="false"> <el-form-item prop="id" v-if="false">
<el-input v-model="form.id"/> <el-input v-model="form.id"/>
</el-form-item> </el-form-item>
<el-form-item :label="t('carQueue.carQueue.tyreFacCode')" prop="tyreFacCode"> <el-form-item :label="t('carQueue.carQueue.tyreFacCode')" prop="tyreFacCode">
<el-input <el-input
v-model="form.tyreFacCode" v-model="form.tyreFacCode"
:placeholder=" t('common.pleaseEnter') + t('carQueue.carQueue.tyreFacCode')"/> :placeholder="t('common.pleaseEnter') + t('carQueue.carQueue.tyreFacCode')"/>
</el-form-item> </el-form-item>
<el-form-item :label="t('carQueue.carQueue.companyCode')" prop="companyCode"> <el-form-item :label="t('carQueue.carQueue.companyCode')" prop="companyCode">
<el-input <el-input
@ -339,8 +339,8 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm">{{ t('option.ok') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ t('option.cancel') }}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
@ -511,13 +511,13 @@ function submitForm() {
if (valid) { if (valid) {
if (form.value.id != undefined) { if (form.value.id != undefined) {
updateCarQueue(form.value).then(response => { updateCarQueue(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess(t('option.modificationSuccessful'));
open.value = false; open.value = false;
getList(); getList();
}); });
} else { } else {
addCarQueue(form.value).then(response => { addCarQueue(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess(t('option.addedSuccessfully'));
open.value = false; open.value = false;
getList(); getList();
}); });
@ -533,11 +533,10 @@ function handleDelete(row) {
return delCarQueue(postIds); return delCarQueue(postIds);
}).then(() => { }).then(() => {
getList(); getList();
proxy.$modal.msgSuccess("删除成功"); proxy.$modal.msgSuccess(t('option.successfullyDeleted'));
}).catch(() => { }).catch(() => {
}); });
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("system/post/export", {

@ -303,8 +303,8 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm">{{ t('option.ok') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ t('option.cancel') }}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
@ -470,13 +470,13 @@ function submitForm() {
if (valid) { if (valid) {
if (form.value.id != undefined) { if (form.value.id != undefined) {
updateBasetyre(form.value).then(response => { updateBasetyre(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess(t('option.modificationSuccessful'));
open.value = false; open.value = false;
getList(); getList();
}); });
} else { } else {
addBasetyre(form.value).then(response => { addBasetyre(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess(t('option.addedSuccessfully'));
open.value = false; open.value = false;
getList(); getList();
}); });
@ -492,7 +492,7 @@ function handleDelete(row) {
return delBasetyre(postIds); return delBasetyre(postIds);
}).then(() => { }).then(() => {
getList(); getList();
proxy.$modal.msgSuccess("删除成功"); proxy.$modal.msgSuccess(t('option.successfullyDeleted'));
}).catch(() => { }).catch(() => {
}); });
} }

Loading…
Cancel
Save