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