style: 用户管理多语言

This commit is contained in:
TsMask
2023-11-10 14:38:36 +08:00
parent 04a7b3887f
commit 7d361f5c31
4 changed files with 60 additions and 46 deletions

View File

@@ -840,6 +840,7 @@ onMounted(() => {
v-model:value="queryParams.userName"
allow-clear
:maxlength="30"
:placeholder="t('common.ipnutPlease')"
></a-input>
</a-form-item>
</a-col>
@@ -852,6 +853,7 @@ onMounted(() => {
v-model:value="queryParams.phonenumber"
allow-clear
:maxlength="11"
:placeholder="t('common.ipnutPlease')"
></a-input>
</a-form-item>
</a-col>
@@ -861,6 +863,7 @@ onMounted(() => {
v-model:value="queryParams.status"
allow-clear
:options="dict.sysNormalDisable"
:placeholder="t('common.selectPlease')"
>
</a-select>
</a-form-item>
@@ -911,7 +914,7 @@ onMounted(() => {
v-perms:has="['system:user:import']"
>
<template #icon><ImportOutlined /></template>
{{ t('views.system.user.import') }}
{{ t('common.import') }}
</a-button>
<a-button
type="dashed"
@@ -919,7 +922,7 @@ onMounted(() => {
v-perms:has="['system:user:export']"
>
<template #icon><ExportOutlined /></template>
{{ t('views.system.user.export') }}
{{ t('common.export') }}
</a-button>
</a-space>
</template>
@@ -936,15 +939,15 @@ onMounted(() => {
size="small"
/>
</a-tooltip>
<!-- <a-tooltip>
<template #title>表格斑马纹</template>
<a-tooltip>
<template #title>{{ t('common.tableStripedText') }}</template>
<a-switch
v-model:checked="tableState.striped"
checked-children=""
un-checked-children=""
:checked-children="t('common.switch.open')"
:un-checked-children="t('common.switch.shut')"
size="small"
/>
</a-tooltip> -->
</a-tooltip>
<a-tooltip>
<template #title>{{ t('common.reloadText') }}</template>
<a-button type="text" @click.prevent="fnGetList(1)">
@@ -962,15 +965,15 @@ onMounted(() => {
:selected-keys="[tableState.size as string]"
@click="fnTableSize"
>
<a-menu-item key="default">{{
t('common.size.default')
}}</a-menu-item>
<a-menu-item key="middle">{{
t('common.size.middle')
}}</a-menu-item>
<a-menu-item key="small">{{
t('common.size.small')
}}</a-menu-item>
<a-menu-item key="default">
{{ t('common.size.default') }}
</a-menu-item>
<a-menu-item key="middle">
{{ t('common.size.middle') }}</a-menu-item
>
<a-menu-item key="small">
{{ t('common.size.small') }}
</a-menu-item>
</a-menu>
</template>
</a-dropdown>
@@ -1207,7 +1210,7 @@ onMounted(() => {
:value="modalState.from.postIds"
disabled
mode="multiple"
placeholder="请选择用户岗位"
:placeholder="t('views.system.user.userWorkPlease')"
option-label-prop="postName"
:options="modalState.options.posts"
:field-names="{ label: 'postName', value: 'postId' }"
@@ -1238,9 +1241,9 @@ onMounted(() => {
</a-form-item>
</a-form>
<template #footer>
<a-button key="cancel" @click="fnModalCancel">{{
t('common.close')
}}</a-button>
<a-button key="cancel" @click="fnModalCancel">
{{ t('common.close') }}
</a-button>
</template>
</a-modal>