|
|
@@ -150,6 +150,13 @@
|
|
|
v-hasPermi="['live:liveRedConf:edit']"
|
|
|
>结算</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-view"
|
|
|
+ @click="handleClaimRecords(scope.row)"
|
|
|
+ v-hasPermi="['live:liveRedConf:list']"
|
|
|
+ >领取记录</el-button>
|
|
|
<el-button
|
|
|
:disabled="isViewOnly"
|
|
|
size="mini"
|
|
|
@@ -170,6 +177,27 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
+ <el-dialog :title="claimDialog.title" :visible.sync="claimDialog.open" width="800px" append-to-body>
|
|
|
+ <el-table v-loading="claimDialog.loading" :data="claimDialog.list" border>
|
|
|
+ <el-table-column label="用户ID" align="center" prop="userId" width="100" />
|
|
|
+ <el-table-column label="昵称" align="center" prop="nickname" min-width="120" />
|
|
|
+ <el-table-column label="手机号" align="center" prop="phone" min-width="120" />
|
|
|
+ <el-table-column label="芳华币" align="center" prop="integral" width="100" />
|
|
|
+ <el-table-column label="领取时间" align="center" prop="createTime" width="170">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination
|
|
|
+ v-show="claimDialog.total>0"
|
|
|
+ :total="claimDialog.total"
|
|
|
+ :page.sync="claimDialog.query.pageNum"
|
|
|
+ :limit.sync="claimDialog.query.pageSize"
|
|
|
+ @pagination="getClaimRecords"
|
|
|
+ />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 添加或修改直播红包记录配置对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
@@ -203,7 +231,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listLiveRedConf, getLiveRedConf, delLiveRedConf, addLiveRedConf, updateLiveRedConf, exportLiveRedConf } from "@/api/live/liveRedConf";
|
|
|
+import { listLiveRedConf, getLiveRedConf, delLiveRedConf, addLiveRedConf, updateLiveRedConf, exportLiveRedConf, listLiveRedClaimRecords } from "@/api/live/liveRedConf";
|
|
|
|
|
|
export default {
|
|
|
props:{
|
|
|
@@ -222,6 +250,18 @@ export default {
|
|
|
canLiveId:false,
|
|
|
//parentLiveId
|
|
|
parentLiveId : null,
|
|
|
+ claimDialog: {
|
|
|
+ open: false,
|
|
|
+ title: "领取记录",
|
|
|
+ loading: false,
|
|
|
+ list: [],
|
|
|
+ total: 0,
|
|
|
+ query: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ redId: null
|
|
|
+ }
|
|
|
+ },
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
@@ -483,6 +523,24 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /** 查看领取记录 */
|
|
|
+ handleClaimRecords(row) {
|
|
|
+ this.claimDialog.title = `领取记录(红包ID: ${row.redId})`;
|
|
|
+ this.claimDialog.query.redId = row.redId;
|
|
|
+ this.claimDialog.query.pageNum = 1;
|
|
|
+ this.claimDialog.open = true;
|
|
|
+ this.getClaimRecords();
|
|
|
+ },
|
|
|
+ getClaimRecords() {
|
|
|
+ this.claimDialog.loading = true;
|
|
|
+ listLiveRedClaimRecords(this.claimDialog.query).then(response => {
|
|
|
+ this.claimDialog.list = response.rows || [];
|
|
|
+ this.claimDialog.total = response.total || 0;
|
|
|
+ this.claimDialog.loading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.claimDialog.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
//如果状态不为0,则不能删除
|