|
@@ -48,7 +48,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column :label="t('modules.user.userPhone')" min-width="120">
|
|
|
|
|
|
+ <el-table-column :label="t('modules.user.userPhone')" min-width="124">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
{{ scope.row.phoneNo || '-' }}
|
|
{{ scope.row.phoneNo || '-' }}
|
|
</template>
|
|
</template>
|
|
@@ -68,7 +68,7 @@
|
|
{{ scope.row.teamNum || 0 }}
|
|
{{ scope.row.teamNum || 0 }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column :label="t('modules.user.successOrders')" min-width="120" align="center">
|
|
|
|
|
|
+ <el-table-column :label="t('modules.user.successOrders')" min-width="124" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
{{ scope.row.successGroupNum || 0 }}
|
|
{{ scope.row.successGroupNum || 0 }}
|
|
</template>
|
|
</template>
|
|
@@ -142,7 +142,7 @@
|
|
</el-container>
|
|
</el-container>
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
-import { onMounted, reactive, ref } from 'vue';
|
|
|
|
|
|
+import { onMounted, reactive, ref, computed } from 'vue';
|
|
import { api } from '../user.service';
|
|
import { api } from '../user.service';
|
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
import { useModal } from '@/sheep/hooks';
|
|
import { useModal } from '@/sheep/hooks';
|
|
@@ -155,80 +155,54 @@ import userDetail from './detail.vue';
|
|
import userPassword from './password.vue';
|
|
import userPassword from './password.vue';
|
|
const { pageData } = usePagination();
|
|
const { pageData } = usePagination();
|
|
|
|
|
|
-// 搜索字段配置
|
|
|
|
-const searchFields = reactive({
|
|
|
|
|
|
+// 搜索字段配置 - 使用computed确保语言切换时更新
|
|
|
|
+const searchFields = computed(() => ({
|
|
name: {
|
|
name: {
|
|
type: 'input',
|
|
type: 'input',
|
|
- get label() {
|
|
|
|
- return t('modules.user.userAccount');
|
|
|
|
- },
|
|
|
|
- get placeholder() {
|
|
|
|
- return t('form.inputUserAccount');
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('modules.user.userAccount'),
|
|
|
|
+ placeholder: t('form.inputUserAccount'),
|
|
width: 200,
|
|
width: 200,
|
|
},
|
|
},
|
|
phone: {
|
|
phone: {
|
|
type: 'input',
|
|
type: 'input',
|
|
- get label() {
|
|
|
|
- return t('modules.user.userPhone');
|
|
|
|
- },
|
|
|
|
- get placeholder() {
|
|
|
|
- return t('form.inputPhone');
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('modules.user.userPhone'),
|
|
|
|
+ placeholder: t('form.inputPhone'),
|
|
width: 150,
|
|
width: 150,
|
|
},
|
|
},
|
|
hasLogin: {
|
|
hasLogin: {
|
|
type: 'select',
|
|
type: 'select',
|
|
- get label() {
|
|
|
|
- return t('modules.user.loginPermission');
|
|
|
|
- },
|
|
|
|
- get placeholder() {
|
|
|
|
- return t('form.selectLoginPermission');
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('modules.user.loginPermission'),
|
|
|
|
+ placeholder: t('form.selectLoginPermission'),
|
|
width: 120,
|
|
width: 120,
|
|
- get options() {
|
|
|
|
- return [
|
|
|
|
- { label: t('common.all'), value: '' },
|
|
|
|
- { label: t('common.allow'), value: 1 },
|
|
|
|
- { label: t('common.forbid'), value: 2 },
|
|
|
|
- ];
|
|
|
|
- },
|
|
|
|
|
|
+ options: [
|
|
|
|
+ { label: t('common.all'), value: '' },
|
|
|
|
+ { label: t('common.allow'), value: 1 },
|
|
|
|
+ { label: t('common.forbid'), value: 2 },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
hasOrder: {
|
|
hasOrder: {
|
|
type: 'select',
|
|
type: 'select',
|
|
- get label() {
|
|
|
|
- return t('modules.user.orderPermission');
|
|
|
|
- },
|
|
|
|
- get placeholder() {
|
|
|
|
- return t('form.selectOrderPermission');
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('modules.user.orderPermission'),
|
|
|
|
+ placeholder: t('form.selectOrderPermission'),
|
|
width: 120,
|
|
width: 120,
|
|
- get options() {
|
|
|
|
- return [
|
|
|
|
- { label: t('common.all'), value: '' },
|
|
|
|
- { label: t('common.allow'), value: 1 },
|
|
|
|
- { label: t('common.forbid'), value: 2 },
|
|
|
|
- ];
|
|
|
|
- },
|
|
|
|
|
|
+ options: [
|
|
|
|
+ { label: t('common.all'), value: '' },
|
|
|
|
+ { label: t('common.allow'), value: 1 },
|
|
|
|
+ { label: t('common.forbid'), value: 2 },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
hasWithdraw: {
|
|
hasWithdraw: {
|
|
type: 'select',
|
|
type: 'select',
|
|
- get label() {
|
|
|
|
- return t('modules.user.withdrawPermission');
|
|
|
|
- },
|
|
|
|
- get placeholder() {
|
|
|
|
- return t('form.selectWithdrawPermission');
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('modules.user.withdrawPermission'),
|
|
|
|
+ placeholder: t('form.selectWithdrawPermission'),
|
|
width: 120,
|
|
width: 120,
|
|
- get options() {
|
|
|
|
- return [
|
|
|
|
- { label: t('common.all'), value: '' },
|
|
|
|
- { label: t('common.allow'), value: 1 },
|
|
|
|
- { label: t('common.forbid'), value: 2 },
|
|
|
|
- ];
|
|
|
|
- },
|
|
|
|
|
|
+ options: [
|
|
|
|
+ { label: t('common.all'), value: '' },
|
|
|
|
+ { label: t('common.allow'), value: 1 },
|
|
|
|
+ { label: t('common.forbid'), value: 2 },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
-});
|
|
|
|
|
|
+}));
|
|
|
|
|
|
// 默认搜索值
|
|
// 默认搜索值
|
|
const defaultSearchValues = reactive({
|
|
const defaultSearchValues = reactive({
|