完善积分模块

This commit is contained in:
axlrose2333 2023-02-24 17:48:47 +08:00
parent c0fd22bd3f
commit 0e709b5698
2 changed files with 15 additions and 16 deletions

View File

@ -3,7 +3,7 @@ const api = {
// 积分 // 积分
getIntegralList : data => { getIntegralList : data => {
return service({ return service({
url: '/integral/list', url: '/point',
method: 'get', method: 'get',
params:data params:data
}) })

View File

@ -1,9 +1,9 @@
<script setup> <script setup>
// //
import api from '@/api/order' import api from '@/api/integral'
import capi from '@/api/course' // import capi from '@/api/course'
import custom from '@/utils/custom' // import custom from '@/utils/custom'
import {formatDate} from '@/utils/format' import {formatDate} from '@/utils/format'
// import { toSQLLine } from '@/utils/stringFun' // import { toSQLLine } from '@/utils/stringFun'
// import WarningBar from '@/components/warningBar/warningBar.vue' // import WarningBar from '@/components/warningBar/warningBar.vue'
@ -21,7 +21,6 @@ const userStore = useUserStore()
const path = ref(import.meta.env.VITE_BASE_API) const path = ref(import.meta.env.VITE_BASE_API)
// const typeList = custom.getExercisesTypeList() // const typeList = custom.getExercisesTypeList()
const queryParams = ref({ const queryParams = ref({
teacherId:0,
page:1, page:1,
pageSize:10, pageSize:10,
status:'', status:'',
@ -218,23 +217,23 @@ function getStateName(state) {
<div class="gva-table-box"> <div class="gva-table-box">
<!-- 数据列表--> <!-- 数据列表-->
<el-table :data="tableData" @selection-change="handleSelectionChange"> <el-table :data="tableData" @selection-change="handleSelectionChange">
<el-table-column align="center" label="ID" prop="order_id" sortable="custom" /> <el-table-column align="center" label="ID" prop="point_id" sortable="custom" />
<el-table-column align="center" label="姓名" min-width="150" prop="nickname" /> <el-table-column align="center" label="姓名" prop="nickname" />
<el-table-column align="center" label="手机号" min-width="150" prop="phone" /> <el-table-column align="center" label="手机号" min-width="150" prop="phone" />
<el-table-column align="center" label="所属区域" min-width="150" prop="phone" /> <el-table-column align="center" label="所属区域" prop="province" />
<el-table-column align="center" label="剩余积分" min-width="150" prop="phone" /> <el-table-column align="center" label="剩余积分" prop="balance" />
<el-table-column align="center" label="累计积分" min-width="150" prop="phone" /> <el-table-column align="center" label="累计积分" prop="total" />
<el-table-column align="center" label="邀请好友(分)" min-width="150" prop="phone" /> <el-table-column align="center" label="邀请好友(分)" min-width="150" prop="invite" />
<el-table-column align="center" label="购买课程(分)" min-width="150" prop="phone" /> <el-table-column align="center" label="购买课程(分)" min-width="150" prop="course" />
<el-table-column align="center" label="累计消费(分)" min-width="150" prop="phone" /> <el-table-column align="center" label="累计消费(分)" min-width="150" prop="phone" />
<el-table-column align="center" label="抽奖(分)" min-width="150" prop="phone" /> <el-table-column align="center" label="抽奖(分)" prop="raffle" />
<el-table-column align="center" label="竞拍(分)" min-width="150" prop="phone" /> <el-table-column align="center" label="竞拍(分)" prop="bidding" />
<el-table-column align="center" label="状态" > <el-table-column align="center" label="状态" >
<template #default="scope"> <template #default="scope">
<div>{{getStateName(scope.row.status)}}</div> <div>{{getStateName(scope.row.status)}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="提交时间" min-width="150" > <el-table-column align="center" label="提交时间" min-width="200" >
<template #default="scope"> <template #default="scope">
{{formatDate(scope.row.CreatedAt)}} {{formatDate(scope.row.CreatedAt)}}
</template> </template>