From 7dc27972d36d4baf341b140bc52e0b3d7505ffcb Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 13 Aug 2026 14:36:49 +0800
Subject: [PATCH] feat: 视频封面图
---
applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue b/applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue
index 19ec03e..b8998d6 100644
--- a/applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue
+++ b/applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue
@@ -448,7 +448,7 @@
objectionDesc: formData.value.objectionDesc,
objectionBasis: formData.value.objectionBasis,
areaCode: formData.value.areaCode || '',
- handleUnit: formData.value.handleUnit || '',
+ handleUnit: applyFormData.value.applyTargetDeptId || formData.value.handleUnit || '',
// 构建附件列表 - 使用当前已上传的文件(包括回显的)
...(uploadedFiles.value.length > 0 && {
attachmentList: uploadedFiles.value.map(file => ({
@@ -487,6 +487,17 @@
showApplyDialog.value = true
}
+// 根据部门 id 在部门树里递归查找对应的中文名称(title)
+function findDeptTitleById(tree, id) {
+ if (!Array.isArray(tree) || id === '' || id == null) return ''
+ for (const node of tree) {
+ if (node.id === id) return node[treeProps.label]
+ const found = findDeptTitleById(node[treeProps.children], id)
+ if (found) return found
+ }
+ return ''
+}
+
// 申请提交
async function handleApplySubmit() {
const isValid = await applyFormRef.value?.validate().catch(() => false)
@@ -512,7 +523,8 @@
objectionDesc: applyData.objectionDesc,
objectionBasis: applyData.objectionBasis,
areaCode: applyData.areaCode || '',
- handleUnit: applyData.handleUnit || '',
+ // 处理单位存部门中文名称,而不是 id
+ handleUnit: findDeptTitleById(deptTree.value, applyFormData.value.applyTargetDeptId) || applyData.handleUnit || '',
// 构建附件列表 - 使用当前已上传的文件(包括回显的)
...(uploadedFiles.value.length > 0 && {
attachmentList: uploadedFiles.value.map(file => ({
--
Gitblit v1.9.3