locale ru

This commit is contained in:
2023-07-11 17:21:34 +08:00
parent 4789db178f
commit 2bc08f4a39
173 changed files with 5065 additions and 1431 deletions

View File

@ -7,10 +7,10 @@
:inline="true"
@submit.prevent
>
<el-form-item label="企业名称" prop="name">
<el-form-item :label="t('admin.form.name', {type: {type: t('admin.common.company')}})" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入企业名称"
:placeholder="t('admin.form.placeholder', {type:t('admin.common.company')})"
clearable
size="small"
style="width: 240px"
@ -19,10 +19,10 @@
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" size="small" @click="handleQuery"
>搜索</el-button
> {{ t('admin.common.search') }}</el-button
>
<el-button icon="Refresh" size="small" @click="resetQuery"
>重置</el-button
> {{ t('admin.common.reset') }}</el-button
>
</el-form-item>
</el-form> -->
@ -34,7 +34,8 @@
icon="Plus"
size="small"
@click="handleAdd"
>新增</el-button
>
{{ t("admin.common.add") }}</el-button
>
</el-col>
<!-- <right-toolbar
@ -45,9 +46,9 @@
<!-- 表格数据 -->
<el-table v-loading="loading" :data="dataList">
<el-table-column label="数据编号" prop="id" />
<el-table-column :label="t('admin.common.dataNumber')" prop="id" />
<el-table-column
label="企业名称"
:label="t('admin.form.name', { type: t('admin.common.company') })"
prop="enterpriseName"
:show-overflow-tooltip="true"
/>
@ -58,15 +59,15 @@
/>
<!-- province--city--district -->
<el-table-column label="所属领域" prop="territoryStr" />
<el-table-column label="联系人" prop="contactUser" />
<el-table-column :label="t('admin.form.contact')" prop="contactUser" />
<el-table-column label="联系电话" prop="contactPhone" />
<!-- <el-table-column label="创建日期" align="center" prop="created_at">
<!-- <el-zh-column label="创建日期" align="center" prop="created_at">
<template #default="{ row }">
<span>{{ dayjs(row.created_at).format("YYYY-MM-DD HH:mm:ss") }}</span>
</template>
</el-table-column> -->
</el-zh-column> -->
<el-table-column
label="操作"
:label="t('admin.common.operation')"
align="center"
class-name="small-padding fixed-width"
>
@ -76,14 +77,15 @@
type="text"
icon="Edit"
@click="handleUpdate(row)"
>修改</el-button
>{{ t("admin.common.edit") }}</el-button
>
<el-button
size="small"
type="text"
icon="Delete"
@click="handleDelete(row.id)"
>删除</el-button
>
{{ t("admin.common.delete") }}</el-button
>
</template>
</el-table-column>
@ -108,7 +110,9 @@
<el-form-item label="企业名称:" prop="enterpriseName">
<el-input
v-model="form.enterpriseName"
placeholder="请输入企业名称"
:placeholder="
t('admin.form.placeholder', { type: t('admin.common.company') })
"
/>
</el-form-item>
<el-form-item label="联系人:">
@ -151,6 +155,8 @@
// import CityOptions from "@/views/components/CityOptions";
import FieldSingle from "@/views/components/FieldSingle";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
import {
expertWantEnterpriseList,
updateExpertWantEnterprise,