Commit f3dc1a62 authored by zhoutong's avatar zhoutong

管理后台国际化翻译 / 供应商管理国际化

parent 97d48207
......@@ -2237,5 +2237,31 @@
"公告类型不能为空": "",
"添加公告": "",
"修改公告": "",
"是否确认删除公告编号为": ""
"是否确认删除公告编号为": "",
"中文名称": "",
"港口类型": "",
"省": "",
"城市": "",
"码头编号": "",
"码头类型": "",
"请输入中文名称": "",
"请输入码头编号": "",
"请输入码头类型": "",
"中文名称不能为空": "",
"添加码头信息": "",
"修改码头信息": "",
"是否确认删除码头信息编号为": "",
"是否确认导出所有码头信息数据项?": "",
"快递公司名称": "",
"请输入快递公司名称": "",
"请输入账户名称": "",
"查件key": "",
"请输入查件key": "",
"查询url": "",
"请输入查询url": "",
"快递公司名称不能为空": "",
"添加配送管理": "",
"修改配送管理": "",
"是否确认删除配送管理编号为": "",
"是否确认导出所有配送管理数据项?": ""
}
\ No newline at end of file
This diff is collapsed.
......@@ -3,25 +3,25 @@
<!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="快递公司名称" prop="companyName">
<el-input v-model="queryParams.companyName" placeholder="请输入快递公司名称" clearable @keyup.enter.native="handleQuery"/>
<el-form-item :label="$t('快递公司名称')" prop="companyName">
<el-input v-model="queryParams.companyName" :placeholder="$t('请输入快递公司名称')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="账户名称" prop="accountName">
<el-input v-model="queryParams.accountName" placeholder="请输入账户名称" clearable @keyup.enter.native="handleQuery"/>
<el-form-item :label="$t('账户名称')" prop="accountName">
<el-input v-model="queryParams.accountName" :placeholder="$t('请输入账户名称')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="查件key" prop="queryKey">
<el-input v-model="queryParams.queryKey" placeholder="请输入查件key" clearable @keyup.enter.native="handleQuery"/>
<el-form-item :label="$t('查件key')" prop="queryKey">
<el-input v-model="queryParams.queryKey" :placeholder="$t('请输入查件key')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="查询url" prop="queryUrl">
<el-input v-model="queryParams.queryUrl" placeholder="请输入查询url" clearable @keyup.enter.native="handleQuery"/>
<el-form-item :label="$t('查询url')" prop="queryUrl">
<el-input v-model="queryParams.queryUrl" :placeholder="$t('请输入查询url')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="创建时间">
<el-form-item :label="$t('创建时间')">
<el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd"
type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" />
type="daterange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
</el-form-item>
</el-form>
......@@ -29,33 +29,33 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['ecw:express:create']">新增</el-button>
v-hasPermi="['ecw:express:create']">{{$t('新增')}}</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
v-hasPermi="['ecw:express:export']">导出</el-button>
v-hasPermi="['ecw:express:export']">{{$t('导出')}}</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="快递公司名称" align="center" prop="companyName" />
<el-table-column label="账户名称" align="center" prop="accountName" />
<el-table-column label="查件key" align="center" prop="queryKey" />
<el-table-column label="查询url" align="center" prop="queryUrl" />
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<el-table-column :label="$t('主键')" align="center" prop="id" />
<el-table-column :label="$t('快递公司名称')" align="center" prop="companyName" />
<el-table-column :label="$t('账户名称')" align="center" prop="accountName" />
<el-table-column :label="$t('查件key')" align="center" prop="queryKey" />
<el-table-column :label="$t('查询url')" align="center" prop="queryUrl" />
<el-table-column :label="$t('创建时间')" align="center" prop="createTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:express:update']">修改</el-button>
v-hasPermi="['ecw:express:update']">{{$t('修改')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['ecw:express:delete']">删除</el-button>
v-hasPermi="['ecw:express:delete']">{{$t('删除')}}</el-button>
</template>
</el-table-column>
</el-table>
......@@ -66,22 +66,22 @@
<!-- 对话框(添加 / 修改) -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="快递公司名称" prop="companyName">
<el-input v-model="form.companyName" placeholder="请输入快递公司名称" />
<el-form-item :label="$t('快递公司名称')" prop="companyName">
<el-input v-model="form.companyName" :placeholder="$t('请输入快递公司名称')" />
</el-form-item>
<el-form-item label="账户名称" prop="accountName">
<el-input v-model="form.accountName" placeholder="请输入账户名称" />
<el-form-item :label="$t('账户名称')" prop="accountName">
<el-input v-model="form.accountName" :placeholder="$t('请输入账户名称')" />
</el-form-item>
<el-form-item label="查件key" prop="queryKey">
<el-input v-model="form.queryKey" placeholder="请输入查件key" />
<el-form-item :label="$t('查件key')" prop="queryKey">
<el-input v-model="form.queryKey" :placeholder="$t('请输入查件key')" />
</el-form-item>
<el-form-item label="查询url" prop="queryUrl">
<el-input v-model="form.queryUrl" placeholder="请输入查询url" />
<el-form-item :label="$t('查询url')" prop="queryUrl">
<el-input v-model="form.queryUrl" :placeholder="$t('请输入查询url')" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="submitForm">{{$t('确 定')}}</el-button>
<el-button @click="cancel">{{$t('取 消')}}</el-button>
</div>
</el-dialog>
</div>
......@@ -124,7 +124,7 @@ export default {
form: {},
// 表单校验
rules: {
companyName: [{ required: true, message: "快递公司名称不能为空", trigger: "blur" }],
companyName: [{ required: true, message: this.$t("快递公司名称不能为空"), trigger: "blur" }],
}
};
},
......@@ -176,7 +176,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.title = "添加配送管理";
this.title = this.$t("添加配送管理");
},
/** 修改按钮操作 */
handleUpdate(row) {
......@@ -185,7 +185,7 @@ export default {
getExpress(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改配送管理";
this.title = this.$t("修改配送管理");
});
},
/** 提交按钮 */
......@@ -197,7 +197,7 @@ export default {
// 修改的提交
if (this.form.id != null) {
updateExpress(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.$modal.msgSuccess(this.$t("修改成功"));
this.open = false;
this.getList();
});
......@@ -205,7 +205,7 @@ export default {
}
// 添加的提交
createExpress(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.$modal.msgSuccess(this.$t("新增成功"));
this.open = false;
this.getList();
});
......@@ -214,11 +214,11 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
this.$modal.confirm('是否确认删除配送管理编号为"' + id + '"的数据项?').then(function() {
this.$modal.confirm(this.$t('是否确认删除配送管理编号为"') + id + this.$t('"的数据项?')).then(function() {
return deleteExpress(id);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
this.$modal.msgSuccess(this.$t("删除成功"));
}).catch(() => {});
},
/** 导出按钮操作 */
......@@ -229,7 +229,7 @@ export default {
params.pageSize = undefined;
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime');
// 执行导出
this.$modal.confirm('是否确认导出所有配送管理数据项?').then(() => {
this.$modal.confirm(this.$t('是否确认导出所有配送管理数据项?')).then(() => {
this.exportLoading = true;
return exportExpressExcel(params);
}).then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment