Merge branch '250213-prod-master_1202-gx-copy' into test20250220

This commit is contained in:
gengxin
2025-02-25 14:43:20 +08:00
2 changed files with 38 additions and 29 deletions

View File

@@ -513,13 +513,15 @@ watch(
() => {
coursePlanIndex.value = 0;
params.value.pid = data.value[coursePlanIndex.value]?.id || 0;
if (data.value[coursePlanIndex.value].type !== 4) {
if (
data.value[coursePlanIndex.value] &&
data.value[coursePlanIndex.value].type !== 4
) {
columns.value = [...columns2];
} else {
columns.value = [...columns2, ...columns1];
}
tableRef.value.fetch();
console.log(1111111);
}
);
@@ -599,6 +601,7 @@ const batchSignAll = () => {
})
.then((res) => {
message.success("签到成功");
tableRef.value.fetch();
})
.catch((err) => {
message.error("签到失败");
@@ -671,7 +674,7 @@ function afterVisibleChange(bool) {
function resetStudentPage() {
tableRef.value.reset({
pid: data.value[coursePlanIndex.value]?.id,
type: 18,
type: 3,
});
}

View File

@@ -402,18 +402,20 @@
<DownOutlined />
</a>
<template #overlay>
<a-menu @click="handleMenuClickpg">
<template
v-for="(item, index) in qrCodeItemspg"
:key="index"
>
<a-menu-item>
<div>
<p>{{ item.name }}</p>
</div>
</a-menu-item>
</template>
</a-menu>
<div style="height: 200px; overflow: auto">
<a-menu @click="handleMenuClickpg">
<template
v-for="(item, index) in qrCodeItemspg"
:key="index"
>
<a-menu-item>
<div>
<p>{{ item.name }}</p>
</div>
</a-menu-item>
</template>
</a-menu>
</div>
</template>
</a-dropdown>
</div>
@@ -443,18 +445,20 @@
<DownOutlined />
</a>
<template #overlay v-if="qrCodeItems.length > 0">
<a-menu @click="handleMenuClick">
<template
v-for="(item, index) in qrCodeItems"
:key="index"
>
<a-menu-item>
<div>
<p>{{ item.name }}</p>
</div>
</a-menu-item>
</template>
</a-menu>
<div style="height: 200px; overflow: auto">
<a-menu @click="handleMenuClick">
<template
v-for="(item, index) in qrCodeItems"
:key="index"
>
<a-menu-item>
<div>
<p>{{ item.name }}</p>
</div>
</a-menu-item>
</template>
</a-menu>
</div>
</template>
</a-dropdown>
</div>
@@ -528,7 +532,9 @@
<template
v-if="
element.taskType != 3 && element.taskType != 2 && checkMenu('growthQRCode')
element.taskType != 3 &&
element.taskType != 2 &&
checkMenu('growthQRCode')
"
>
<div
@@ -2117,7 +2123,7 @@ export default {
.taskSyllabus {
// flex: 1;
overflow-x: auto;
min-height: 400px;
.ant-collapse {
border: 0px;
background-color: rgba(255, 255, 255, 0);