This commit is contained in:
gyq
2026-02-05 14:55:29 +08:00

View File

@@ -4,7 +4,7 @@
<div class="head-container"> <div class="head-container">
<el-form :model="query" inline> <el-form :model="query" inline>
<el-form-item label=""> <el-form-item label="">
<el-input v-model="query.name" placeholder="请输入昵称或手机号"></el-input> <el-input v-model="query.key" placeholder="请输入昵称或手机号"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -22,7 +22,10 @@
<el-table-column label="用户" prop="headImg" width="200px"> <el-table-column label="用户" prop="headImg" width="200px">
<template v-slot="scope"> <template v-slot="scope">
<div class="user_info"> <div class="user_info">
<el-image :src="scope.row.headImg" style="width: 40px; height: 40px; flex-shrink: 0"> <el-image
:src="scope.row.headImg"
style="width: 40px; height: 40px; flex-shrink: 0"
>
<template #error> <template #error>
<div class="image-slot"> <div class="image-slot">
<i class="el-icon-user"></i> <i class="el-icon-user"></i>
@@ -30,7 +33,14 @@
</template> </template>
</el-image> </el-image>
<span class="name">{{ scope.row.nickName }}</span> <span class="name">{{ scope.row.nickName }}</span>
<el-tag disable-transitions type="primary" style="margin-left: 10px;" v-if="scope.row.new"></el-tag> <el-tag
disable-transitions
type="primary"
style="margin-left: 10px"
v-if="scope.row.new"
>
</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -38,7 +48,9 @@
<el-table-column label="会员" prop="isVip" width="140"> <el-table-column label="会员" prop="isVip" width="140">
<template v-slot="scope"> <template v-slot="scope">
<el-tag type="warning" v-if="scope.row.isVip">会员等级{{ scope.row.memberLevelName }}</el-tag> <el-tag type="warning" v-if="scope.row.isVip">
会员等级{{ scope.row.memberLevelName }}
</el-tag>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
@@ -60,9 +72,14 @@
</el-table> </el-table>
</div> </div>
<div class="head-container"> <div class="head-container">
<el-pagination :total="tableData.total" :current-page="tableData.page" :page-size="tableData.size" <el-pagination
@size-change="sizeChange" @current-change="paginationChange" :total="tableData.total"
layout="total, sizes, prev, pager, next, jumper"></el-pagination> :current-page="tableData.page"
:page-size="tableData.size"
@size-change="sizeChange"
@current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper"
></el-pagination>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@@ -71,13 +88,13 @@
<script setup> <script setup>
import shopUserApi from "@/api/account/shopUser"; import shopUserApi from "@/api/account/shopUser";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { multiplyAndFormat } from '@/utils' import { multiplyAndFormat } from "@/utils";
let cacheData = {}; let cacheData = {};
const state = reactive({ const state = reactive({
show: false, show: false,
query: { query: {
name: "", key: "",
// isVip: 1, // isVip: 1,
}, },
tableData: { tableData: {
@@ -242,4 +259,4 @@ defineExpose({
.gap-20 { .gap-20 {
gap: 20px; gap: 20px;
} }
</style> </style>