mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 18:36:46 +08:00
feat: 成绩更新按钮修改
成绩更新按钮从操作转移到导出作业按钮后方
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">
|
||||||
@@ -945,6 +953,18 @@ function startLoading() {
|
|||||||
tableData.value.loading = true;
|
tableData.value.loading = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新列表分数详情
|
||||||
|
* @param id {string}
|
||||||
|
* @param record {Object|undefined}
|
||||||
|
*/
|
||||||
|
function handleUpdateScore(){
|
||||||
|
const pid = props.id
|
||||||
|
tableData.value.loading = true
|
||||||
|
updateScore({pid}).then(()=>{
|
||||||
|
getStuList()
|
||||||
|
})
|
||||||
|
}
|
||||||
defineExpose({ getStuList, startLoading });
|
defineExpose({ getStuList, startLoading });
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user