Merge remote-tracking branch 'yx/20250928-hz' into master-20250627bk

# Conflicts:
#	src/components/student/TableStudent.vue
This commit is contained in:
joshen
2025-09-28 19:46:37 +08:00

View File

@@ -188,6 +188,14 @@
> >
<div class="btnText">导出作业</div> <div class="btnText">导出作业</div>
</div> </div>
<div
class="stmm_btn btn5"
style="margin-left: 15px;background: #4ea6ff; color: #fff;"
@click="handleUpdateScore"
>
<div class="btnText">刷新</div>
</div>
</a-col> </a-col>
</a-row> </a-row>
<div style="margin-top: 20px"> <div style="margin-top: 20px">
@@ -242,6 +250,7 @@
info info
>更新 >更新
</a-button> </a-button>
</a-button>
<a-button <a-button
v-if="checkPer(permissions)" v-if="checkPer(permissions)"
:disabled="record.isLeader === '1'" :disabled="record.isLeader === '1'"
@@ -953,21 +962,13 @@ function startLoading() {
} }
/** /**
* 更新分数详情 * 更新列表分数详情
* @param id {string}
* @param record {Object|undefined}
*/ */
function handleUpdateScore(id,record = void 0){ function handleUpdateScore(){
const {studentId} = record
if (!studentId) return
const pid = props.id const pid = props.id
// console.log(`pid`, pid,"studentId", studentId )
// console.log(props.columns)
tableData.value.loading = true tableData.value.loading = true
updateScore({pid, studentId}).then(response=>{ updateScore({pid}).then(()=>{
const {examinationScore} = response.data.data getStuList()
record.examinationScore = examinationScore
tableData.value.loading = false
}) })
} }
defineExpose({ getStuList, startLoading }); defineExpose({ getStuList, startLoading });