优化后台
This commit is contained in:
@@ -19,8 +19,8 @@ const route = useRoute()
|
||||
const queryParams = ref({
|
||||
page:1,
|
||||
pageSize:10,
|
||||
user_id:0,
|
||||
type:'', // 是否中奖
|
||||
id:0,
|
||||
type:1, // 是否中奖
|
||||
time:'', // 抽经时间,
|
||||
current_page:1
|
||||
})
|
||||
@@ -39,13 +39,13 @@ const typeList = ref([
|
||||
// 生命周期
|
||||
onMounted(() => {
|
||||
queryParams.value.id = parseInt(route.params.user_id)
|
||||
// getAuctionDetailList()
|
||||
getAuctionDetailList()
|
||||
})
|
||||
// 方法
|
||||
async function getAuctionDetailList() {
|
||||
const res = await api.getAuctionDetailList(queryParams.value)
|
||||
if(res.code === 0) {
|
||||
tableData.value = res.data.records
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
}
|
||||
@@ -111,19 +111,19 @@ function handleSizeChange(val) {
|
||||
<el-table :data="tableData">
|
||||
<el-table-column align="left" label="竞拍时间" min-width="150" >
|
||||
<template #default="scope">
|
||||
{{formatDate(scope.row.CreatedAt)}}
|
||||
{{formatDate(scope.row.in_time)}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="竞拍编号" min-width="150" prop="name">
|
||||
<template #default="scope">
|
||||
{{custom.getExercisesTypeName(scope.row.type)}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="竞拍奖品" min-width="150" prop="subject" />
|
||||
<el-table-column align="left" label="竞拍编号" min-width="150" prop="prize_id" />
|
||||
<el-table-column align="left" label="竞拍奖品" min-width="150" prop="prize_name" />
|
||||
<!-- <el-table-column align="left" label="选择号数" min-width="150" prop="teacher_id" />-->
|
||||
<el-table-column align="left" label="参与人数" min-width="150" prop="status" />
|
||||
<el-table-column align="left" label="是否获奖" min-width="150" prop="status" />
|
||||
<el-table-column align="left" label="竞拍消费" min-width="150" prop="status" />
|
||||
<el-table-column align="left" label="参与人数" min-width="150" prop="in_member" />
|
||||
<el-table-column align="left" label="是否获奖" min-width="150" prop="is_jackpot" >
|
||||
<template #default="scope">
|
||||
{{scope.row.is_jackpot?'是':'否'}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="竞拍消费" min-width="150" prop="consume" />
|
||||
</el-table>
|
||||
<!-- 分页-->
|
||||
<div class="gva-pagination">
|
||||
|
||||
@@ -20,7 +20,7 @@ const queryParams = ref({
|
||||
teacherId:0
|
||||
})
|
||||
const subjectParams = ref({
|
||||
pageIndex:1,
|
||||
page:1,
|
||||
pageSize:100,
|
||||
})
|
||||
const tableData = ref([])
|
||||
@@ -61,7 +61,7 @@ function onSubmit() {
|
||||
}
|
||||
const onReset = () => {
|
||||
queryParams.value = {
|
||||
pageIndex:1,
|
||||
page:1,
|
||||
pageSize:10,
|
||||
name:'',
|
||||
status:'',
|
||||
@@ -129,7 +129,7 @@ function deleteCourseFunc(row) {
|
||||
})
|
||||
}
|
||||
function handleCurrentChange(val) {
|
||||
queryParams.value.pageIndex = val
|
||||
queryParams.value.page = val
|
||||
getCourseList()
|
||||
}
|
||||
function handleSizeChange(val) {
|
||||
@@ -299,7 +299,7 @@ async function enterVerifyDialog() { // 审核提交
|
||||
</el-table>
|
||||
<div class="gva-pagination">
|
||||
<el-pagination
|
||||
:current-page="queryParams.pageIndex"
|
||||
:current-page="queryParams.page"
|
||||
:page-size="queryParams.pageSize"
|
||||
:page-sizes="[10, 30, 50, 100]"
|
||||
:total="total"
|
||||
|
||||
@@ -33,7 +33,7 @@ const queryParams = ref({
|
||||
subject:''
|
||||
})
|
||||
const subjectParams = ref({
|
||||
pageIndex:1,
|
||||
page:1,
|
||||
pageSize:100,
|
||||
})
|
||||
const tableData = ref([])
|
||||
@@ -92,7 +92,7 @@ function onSubmit() {
|
||||
}
|
||||
const onReset = () => {
|
||||
queryParams.value = {
|
||||
pageIndex:1,
|
||||
page:1,
|
||||
pageSize:10,
|
||||
name:'',
|
||||
status:'',
|
||||
@@ -176,7 +176,7 @@ function deleteExamFunc(row) {
|
||||
})
|
||||
}
|
||||
function handleCurrentChange(val) {
|
||||
queryParams.value.pageIndex = val
|
||||
queryParams.value.page = val
|
||||
getExaminationList()
|
||||
}
|
||||
function handleSizeChange(val) {
|
||||
|
||||
@@ -19,9 +19,10 @@ const route = useRoute()
|
||||
const queryParams = ref({
|
||||
page:1,
|
||||
pageSize:10,
|
||||
user_id:0,
|
||||
type:'', // 是否中奖
|
||||
id:0,
|
||||
type:2, // 是否中奖
|
||||
time:'', // 抽经时间
|
||||
current_page:1
|
||||
})
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
@@ -37,11 +38,12 @@ const typeList = ref([
|
||||
])
|
||||
// 生命周期
|
||||
onMounted(() => {
|
||||
queryParams.value.id = parseInt(route.params.user_id)
|
||||
getRaffleDetailList()
|
||||
})
|
||||
// 方法
|
||||
async function getRaffleDetailList() {
|
||||
const res = await api.getRaffleDetailList(queryParams.value)
|
||||
const res = await api.getAuctionDetailList(queryParams.value)
|
||||
if(res.code === 0) {
|
||||
tableData.value = res.data.records
|
||||
total.value = res.data.total
|
||||
@@ -57,6 +59,7 @@ const onReset = () => {
|
||||
user_id:0,
|
||||
type:'', // 是否中奖
|
||||
time:'', // 抽经时间
|
||||
current_page:1
|
||||
}
|
||||
}
|
||||
function handleCurrentChange(val) {
|
||||
|
||||
Reference in New Issue
Block a user