|
|
@@ -1,18 +1,9 @@
|
|
|
<template>
|
|
|
<div class="page-container">
|
|
|
<el-card>
|
|
|
- <div slot="header">
|
|
|
- <span>家庭管理</span>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- style="float: right"
|
|
|
- @click="handleRefresh"
|
|
|
- :loading="loading"
|
|
|
- >
|
|
|
- 刷新
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
+ <PageHeader slot="header" title="家庭管理">
|
|
|
+ <el-button type="primary" size="small" @click="handleRefresh" :loading="loading">刷新</el-button>
|
|
|
+ </PageHeader>
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
<el-form :inline="true" :model="searchForm" style="margin-bottom: 20px">
|
|
|
@@ -126,7 +117,7 @@
|
|
|
<el-descriptions-item label="邀请码">{{ membersData.family.inviteCode }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
|
|
|
- <el-divider content-position="left">成员列表(仅区分管理员 / 成员)</el-divider>
|
|
|
+ <SectionTitle title="成员列表" desc="仅区分管理员 / 成员" />
|
|
|
<el-table
|
|
|
:data="membersData.members"
|
|
|
border
|
|
|
@@ -148,14 +139,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="totalPoints" label="总积分" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag type="success">{{ scope.row.totalPoints || 0 }}</el-tag>
|
|
|
+ <StatusTag type="success" :text="String(scope.row.totalPoints || 0)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="角色" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag :type="scope.row.role === 'admin' ? 'danger' : 'info'" size="small">
|
|
|
- {{ scope.row.role === 'admin' ? '管理员' : '成员' }}
|
|
|
- </el-tag>
|
|
|
+ <StatusTag
|
|
|
+ size="small"
|
|
|
+ :type="scope.row.role === 'admin' ? 'danger' : 'info'"
|
|
|
+ :text="scope.row.role === 'admin' ? '管理员' : '成员'"
|
|
|
+ />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="140">
|
|
|
@@ -226,7 +219,7 @@
|
|
|
<el-table-column prop="name" label="券名称" min-width="140"></el-table-column>
|
|
|
<el-table-column prop="type" label="类型" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini" :type="scope.row.type === 'DISCOUNT' ? '' : 'success'">{{ scope.row.type === 'DISCOUNT' ? '折扣' : '满减' }}</el-tag>
|
|
|
+ <StatusTag size="mini" :type="scope.row.type === 'DISCOUNT' ? 'primary' : 'success'" :text="scope.row.type === 'DISCOUNT' ? '折扣' : '满减'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="面值/折扣" width="100">
|
|
|
@@ -238,7 +231,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini" :type="scope.row.status === 'AVAILABLE' ? 'success' : 'info'">{{ scope.row.status === 'AVAILABLE' ? '可用' : '已使用' }}</el-tag>
|
|
|
+ <StatusTag size="mini" :type="scope.row.status === 'AVAILABLE' ? 'success' : 'info'" :text="scope.row.status === 'AVAILABLE' ? '可用' : '已使用'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="receivedAt" label="领取时间" width="160">
|
|
|
@@ -269,7 +262,7 @@
|
|
|
<el-table-column prop="name" label="券名称" min-width="140"></el-table-column>
|
|
|
<el-table-column prop="type" label="类型" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini" :type="scope.row.type === 'DISCOUNT' ? '' : 'success'">{{ scope.row.type === 'DISCOUNT' ? '折扣' : '满减' }}</el-tag>
|
|
|
+ <StatusTag size="mini" :type="scope.row.type === 'DISCOUNT' ? 'primary' : 'success'" :text="scope.row.type === 'DISCOUNT' ? '折扣' : '满减'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="面值/折扣" width="100">
|
|
|
@@ -620,6 +613,6 @@ export default {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
.sort-header:hover {
|
|
|
- color: #409eff;
|
|
|
+ color: var(--adm-primary);
|
|
|
}
|
|
|
</style>
|