修改国际化

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

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

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

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

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

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

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

Loading…
Cancel
Save