This commit is contained in:
Pengxiansen
2025-02-26 18:15:25 +08:00
parent 8b00387a90
commit 12b8e61a95

View File

@@ -123,7 +123,8 @@
<template #action="{ record }"> <template #action="{ record }">
<template <template
v-if=" v-if="
record.completionStatus == 2 && (record.completionStatus == 2 ||
record.completionStatus == 0) &&
checkMenu('growthStudentMarkComplete') checkMenu('growthStudentMarkComplete')
" "
> >
@@ -260,7 +261,7 @@ export default {
const setPermissions = (row) => { const setPermissions = (row) => {
dialog({ dialog({
content: "确定标记完成该课程吗", content: "确定标记完成该任务",
ok: async () => { ok: async () => {
markComplete({ id: row.id }).then((res) => { markComplete({ id: row.id }).then((res) => {
getData(); getData();