mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 02:02:55 +08:00
Merge remote-tracking branch 'yx/20250928-hz' into master-20250627bk
# Conflicts: # src/components/student/TableStudent.vue
This commit is contained in:
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user