fix: 参数配置教师操作学生应用和退回

This commit is contained in:
TsMask
2024-07-18 15:04:51 +08:00
parent 4d755cea5d
commit c35a5a9c33
4 changed files with 86 additions and 50 deletions

View File

@@ -440,14 +440,14 @@ onMounted(() => {
@search="studentSearch"
@change="fnActiveConfigNode('#')"
>
<template #option="{ value, label, status }">
<template #option="{ value, label, applyStatus }">
<span>{{ label }} </span>
<a-tag
v-if="status === '0'"
v-if="applyStatus === '0'"
color="processing"
style="position: absolute; right: 0;}"
>
{{ status && '申请' }}
{{ applyStatus && '申请' }}
</a-tag>
</template>
</a-select>
@@ -464,13 +464,13 @@ onMounted(() => {
"
>
<a-button
@click="ptConfigApply(treeState.neType, '2')"
@click="ptConfigApply(treeState.neType, '2', classState.student)"
:loading="ptConfigState.applyLoading"
>
应用
</a-button>
<a-button
@click="ptConfigApply(treeState.neType, '3')"
@click="ptConfigApply(treeState.neType, '3', classState.student)"
:loading="ptConfigState.applyLoading"
>
退回