diff --git a/frontend/src/views/teachingLog/organLog/components/auditedView.vue b/frontend/src/views/teachingLog/organLog/components/auditedView.vue index 82541d0e..0b3df5bd 100644 --- a/frontend/src/views/teachingLog/organLog/components/auditedView.vue +++ b/frontend/src/views/teachingLog/organLog/components/auditedView.vue @@ -50,7 +50,7 @@ - + diff --git a/frontend/src/views/teachingLog/organLog/components/logView.vue b/frontend/src/views/teachingLog/organLog/components/logView.vue index 11b2d2f1..e3a14a9d 100644 --- a/frontend/src/views/teachingLog/organLog/components/logView.vue +++ b/frontend/src/views/teachingLog/organLog/components/logView.vue @@ -65,7 +65,7 @@ - +
- 删除所选 批准上报所选 - 重新检查通报变更情况 + + 删除所选 导出到 Word 刷新 导入教学日志 @@ -138,6 +138,7 @@ @@ -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('后端暂未提供该接口') diff --git a/frontend/src/views/teachingLog/organLog/components/reportedView.vue b/frontend/src/views/teachingLog/organLog/components/reportedView.vue index 8ec46cfb..7bddef53 100644 --- a/frontend/src/views/teachingLog/organLog/components/reportedView.vue +++ b/frontend/src/views/teachingLog/organLog/components/reportedView.vue @@ -34,13 +34,13 @@ - + @@ -78,11 +78,7 @@
- 删除所选 - 审核通过所选 - - 撤回重填所选 - 重新检查所选变更情况 + 审核通过所选 导出到 Word
@@ -122,6 +118,8 @@ @@ -326,7 +324,7 @@ export default { this.$message.info('后端暂未提供该接口') }, - handleAudit() { + handleBatchAudit() { const ids = this.getSelectedBhs() if (ids.length === 0) return this.$confirm(`确定要审核通过选中的 ${ids.length} 条记录吗?`, '审核确认', { @@ -349,6 +347,45 @@ export default { .catch(() => {}) }, + handleAudit(row) { + const bh = row && row.bh + if (!bh) { + this.$message.warning('记录编号不存在,无法审核') + return + } + this.$confirm('确定要审核通过该条教学日志吗?', '审核确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => approveTeachingLog(String(bh), '')) + .then(() => { + this.$message.success('审核通过成功') + this.fetchList() + }) + .catch(() => {}) + }, + + handleReject(row) { + const bh = row && row.bh + if (!bh) { + this.$message.warning('记录编号不存在,无法退回') + return + } + this.$prompt('请输入退回原因/意见', '退回确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + inputPattern: /\S/, + inputErrorMessage: '退回原因不能为空' + }) + .then(({ value }) => rejectTeachingLog(String(bh), value.trim())) + .then(() => { + this.$message.success('退回成功') + this.fetchList() + }) + .catch(() => {}) + }, + handleWithdraw() { const ids = this.getSelectedBhs() if (ids.length === 0) return