机关教学日志

This commit is contained in:
2026-08-27 11:52:34 +08:00
parent ffdcfaa350
commit c8990ab1a4
3 changed files with 71 additions and 14 deletions
@@ -65,7 +65,7 @@
</el-col>
</el-row>
<el-row :gutter="0">
<!-- <el-row :gutter="0">
<el-col :span="12">
<el-form-item label="改动情况">
<div class="change-options">
@@ -87,14 +87,14 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
<div class="search-actions">
<div class="left-group">
<el-button type="danger" plain @click="handleDeleteSelected">删除所选</el-button>
<el-button type="primary" @click="handleBatchReport">批准上报所选</el-button>
<el-button @click="handleRecheck">重新检查通报变更情况</el-button>
<!-- <el-button @click="handleRecheck">重新检查通报变更情况</el-button> -->
<el-button type="danger" plain @click="handleDeleteSelected">删除所选</el-button>
<el-button icon="el-icon-download" @click="handleExport">导出到 Word</el-button>
<el-button icon="el-icon-refresh" @click="handleRefresh">刷新</el-button>
<el-button icon="el-icon-upload2" :loading="importing" @click="handleImportExcel">导入教学日志</el-button>
@@ -138,6 +138,7 @@
<el-table-column label="操作" width="80" align="center" fixed="right" class-name="table-action-column">
<template slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.row)">详细</el-button>
<el-button type="text" @click="handleReport(scope.row)">上报</el-button>
</template>
</el-table-column>
</el-table>
@@ -364,6 +365,25 @@ export default {
.catch(() => {})
},
handleReport(row) {
const bh = row && row.bh
if (!bh) {
this.$message.warning('记录编号不存在,无法上报')
return
}
this.$confirm('确定要上报该条教学日志吗?', '上报确认', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => submitTeachingLog(String(bh), '已上报'))
.then(() => {
this.$message.success('上报成功')
this.fetchList()
})
.catch(() => {})
},
handleRecheck() {
// 后端暂未提供重新检查接口,仅作提示
this.$message.info('后端暂未提供该接口')