This commit is contained in:
@jyuhsin
2025-09-25 21:34:09 +08:00
parent 7630890799
commit a61e800017
10 changed files with 121 additions and 144 deletions
@@ -175,6 +175,8 @@ layout("/layouts/platform.html"){
time: 0,
infoRow: {},
infoVisible: false,
id: GetQueryString("id"),
}
},
methods: {
@@ -201,11 +203,15 @@ layout("/layouts/platform.html"){
if (res.code === 0) {
this.tableData = res.data.list
this.pageForm.totalCount = res.data.totalCount
if(this.id) {
const activity = this.tableData.find(o => o.id === this.id)
this.onOpen(activity)
}
}
})
},
},
async created() {
async mounted() {
this.pageData()
}
})
@@ -126,6 +126,8 @@ layout("/layouts/platform.html"){
time: 0,
infoRow: {},
infoVisible: false,
id: GetQueryString("id"),
}
},
methods: {
@@ -143,8 +145,10 @@ layout("/layouts/platform.html"){
return
}
this.infoVisible = false
this.$refs.guava.view(() => {
this.$refs.courseListRef.onOpen(row)
this.$nextTick(() => {
this.$refs.guava.view(() => {
this.$refs.courseListRef.onOpen(row)
})
})
},
pageData() {
@@ -152,11 +156,15 @@ layout("/layouts/platform.html"){
if (res.code === 0) {
this.tableData = res.data.list
this.pageForm.totalCount = res.data.totalCount
if(this.id) {
const activity = this.tableData.find(o => o.id === this.id)
this.onOpen(activity)
}
}
})
},
},
async created() {
mounted() {
this.pageData()
}
})