This commit is contained in:
@jyuhsin
2025-09-30 15:48:57 +08:00
parent 4e3e96ad68
commit 8dad7c09ba
4 changed files with 60 additions and 4 deletions
@@ -16,7 +16,7 @@ layout("/mobile/platform.html"){
</van-dropdown-menu>
</van-sticky>
<table-list api="/platform/checkIn/list/pageData" title="name" :page_form.sync="pageForm" ref="tableListRef" @ready="doSearch" img="cover">
<table-list api="/platform/checkIn/list/pageData" title="name" :page_form.sync="pageForm" ref="tableListRef" @ready="onReady" img="cover">
<template v-slot="{index,row}">
<table-column label="创建人">{{row.userName}}</table-column>
<table-column label="开始时间">{{row.startTime}}</table-column>
@@ -83,6 +83,8 @@ layout("/mobile/platform.html"){
yearOptions: [],
infoVisible: false,
infoRow: {},
id: GetQueryString('id')
}
},
methods: {
@@ -96,7 +98,6 @@ layout("/mobile/platform.html"){
this.onView(row)
return
}
vant.Toast.clear
this.$axios.post('/platform/checkIn/apply/validate', { activityId: row.id })
.then(res => {
if(res.code === 0) {
@@ -106,6 +107,19 @@ layout("/mobile/platform.html"){
vant.Dialog.alert({ title: '温馨提示', message: err.msg })
})
},
fetchOne() {
this.$axios.post('/platform/checkIn/manage/selectOne', {id: this.id}).then((res) => {
if(res.code === 0) {
this.onView(res.data)
}
})
},
onReady() {
this.doSearch()
if(this.id) {
this.fetchOne()
}
},
doSearch() {
this.$nextTick(() => {
this.pageForm.pageNumber = 1