|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryFormRef" :inline="true" label-width="80px">
|
|
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryFormRef" :inline="true" :label-width="labelWidth">
|
|
|
<el-form-item :label="t('common.userId')" prop="username">
|
|
<el-form-item :label="t('common.userId')" prop="username">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="queryParams.userId"
|
|
v-model="queryParams.userId"
|
|
@@ -67,7 +67,7 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
|
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
|
|
- <el-form ref="formRef" :model="form" label-width="80px">
|
|
|
|
|
|
|
+ <el-form ref="formRef" :model="form" :label-width="labelWidth">
|
|
|
<el-form-item :label="t('common.userId')" prop="userId">
|
|
<el-form-item :label="t('common.userId')" prop="userId">
|
|
|
<el-input v-model="form.userId" :placeholder="t('common.pleaseEnter') + t('common.userId')" />
|
|
<el-input v-model="form.userId" :placeholder="t('common.pleaseEnter') + t('common.userId')" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -97,11 +97,16 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import {ref, reactive, getCurrentInstance, onMounted, nextTick} from 'vue'
|
|
|
|
|
|
|
+import {ref, reactive, getCurrentInstance, onMounted, nextTick, computed} from 'vue'
|
|
|
import {getCallPageList} from '@/api/system/call.js'
|
|
import {getCallPageList} from '@/api/system/call.js'
|
|
|
import {useI18n} from '@/composables/useI18n'
|
|
import {useI18n} from '@/composables/useI18n'
|
|
|
|
|
|
|
|
-const { t } = useI18n()
|
|
|
|
|
|
|
+const { t, locale } = useI18n()
|
|
|
|
|
+
|
|
|
|
|
+// 根据语言动态设置label宽度
|
|
|
|
|
+const labelWidth = computed(() => {
|
|
|
|
|
+ return locale.value === 'vi' ? '140px' : '80px'
|
|
|
|
|
+})
|
|
|
const { proxy } = getCurrentInstance()
|
|
const { proxy } = getCurrentInstance()
|
|
|
const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable")
|
|
const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable")
|
|
|
|
|
|