diff --git a/index.html b/index.html index 2e9163e..553369d 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ name="keywords" content="vue,element-plus,typescript,vue-element-admin,vue3-element-admin" /> - + diff --git a/src/views/module_report/report-review/components/LogDrawer.vue b/src/views/module_report/report-review/components/LogDrawer.vue new file mode 100644 index 0000000..9eff380 --- /dev/null +++ b/src/views/module_report/report-review/components/LogDrawer.vue @@ -0,0 +1,224 @@ + + emit('update:visible', v)" + > + + + + + {{ task.task_name }} + + #{{ task.id }} + + + + + + + 操作记录 + + + + + {{ log.action_name }} + + {{ logStatusText(log.action_type) }} + + + + + {{ log.operator_name || "系统" }} + + + {{ log.description }} + + + + + 暂无操作记录 + + + + + + + + + + diff --git a/src/views/module_report/report-review/components/ReviewFormDialog.vue b/src/views/module_report/report-review/components/ReviewFormDialog.vue new file mode 100644 index 0000000..7a38e59 --- /dev/null +++ b/src/views/module_report/report-review/components/ReviewFormDialog.vue @@ -0,0 +1,340 @@ + + emit('update:visible', v)" + > + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + + + + 当前文件:{{ currentFileName }},上传新文件将替换 + + 仅支持 .docx 格式,文件大小不超过 20MB + + + + + + + + + + 取消 + + {{ isEdit ? '保存' : '确定' }} + + + + + + + + diff --git a/src/views/module_report/report-review/components/TaskDetailDialog.vue b/src/views/module_report/report-review/components/TaskDetailDialog.vue new file mode 100644 index 0000000..a73f136 --- /dev/null +++ b/src/views/module_report/report-review/components/TaskDetailDialog.vue @@ -0,0 +1,121 @@ + + emit('update:visible', v)" + > + + + {{ task.task_name }} + + + + {{ statusText(task.status) }} + + + + + 已完成 100% + 审核失败 + 未开始 + + + {{ task.reviewer_name || "-" }} + + + {{ task.template_name || "-" }} + + + + + + {{ task.original_name }} + + + - + + + {{ formatDateTime(task.start_time) }} + + + {{ formatDateTime(task.end_time) }} + + + {{ formatDateTime(task.created_time) }} + + + {{ formatDateTime(task.updated_time) }} + + + {{ task.description }} + + + + 关闭 + + 查看文档 + + + + + + + + + + diff --git a/src/views/module_report/report-review/index.vue b/src/views/module_report/report-review/index.vue new file mode 100644 index 0000000..86e1ca5 --- /dev/null +++ b/src/views/module_report/report-review/index.vue @@ -0,0 +1,668 @@ + + + + + + + + + + + {{ stats.total }} + 提交任务数 + + + + + + + + {{ stats.reviewed }} + 已审查任务 + + + + + + + + {{ stats.pending }} + 待审查任务 + + + + + + + + {{ stats.failed }} + 审查失败 + + + + 时间范围: + + + + + + + + + + + + + + 任务名称 + + + + 状态 + + + + + + + + + 创建时间 + + + + 审查人 + + + + + 查询 + 重置 + 新增任务 + + + + + + + + + + {{ row.task_name }} + + + + + + + {{ statusText(row.status) }} + + + + + + + + + + + + {{ formatDateTime(row.updated_time) }} + + + {{ formatDateTime(row.created_time) }} + + + {{ row.reviewer_name || "-" }} + + + + + {{ row.original_name ? row.original_name : "未上传" }} + + 未上传 + + + + + 查看 + + 审查 + + + 编辑 + + 日志 + + 删除 + + + + + + + + 共 {{ total }} 条 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/module_report/report-review/result.vue b/src/views/module_report/report-review/result.vue new file mode 100644 index 0000000..985a046 --- /dev/null +++ b/src/views/module_report/report-review/result.vue @@ -0,0 +1,861 @@ + + + + + + 返回 + {{ task?.task_name || "审核结果" }} + + {{ statusText(task.status) }} + + + + + {{ mdPanelCollapsed ? "展开结果" : "收起结果" }} + + + 导出 + + + + + + + + + + + + + + + + + + + 大纲 + + + + + {{ h.text }} + + + 暂无大纲 + + + + + + + + + + + 预览 + + + + + + + + + + + + + + + + + 大纲 + + + + {{ h.text }} + + + 暂无大纲 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/module_report/template/detail.vue b/src/views/module_report/template/detail.vue new file mode 100644 index 0000000..5524645 --- /dev/null +++ b/src/views/module_report/template/detail.vue @@ -0,0 +1,706 @@ + + + + + + + 返回 + {{ template?.template_name || "加载中..." }} + + 只读模式 + + + + 编辑模板 + + + + + + + + + + + + + + + + + + + + + {{ activeAnnotation.rule_name }} + + {{ activeAnnotation.rule_category_name || "-" }} + + {{ activeAnnotation.rule_description || "-" }} + + {{ activeAnnotation.rule_prompt_template }} + + + + 关闭 + + + + + + + + diff --git a/src/views/module_report/template/edit.vue b/src/views/module_report/template/edit.vue new file mode 100644 index 0000000..1682a09 --- /dev/null +++ b/src/views/module_report/template/edit.vue @@ -0,0 +1,1009 @@ + + + + + + + 返回 + {{ template?.template_name || "加载中..." }} + + + + + 标注列表 ({{ annotations.length }}) + + + + + + + + + + + + + + + + + + + + + + + {{ currentTarget?.text || "-" }} + + + + + + {{ r.name }} + {{ r.category_name }} + + + + + + + 取消 + + 确定 + + + + + + + + {{ detailRule.name }} + + {{ detailRule.category_name || detailRule.category_name_snapshot || "-" }} + + {{ detailRule.description || "-" }} + + {{ detailRule.status === 0 ? "启用" : "停用" }} + + + {{ detailRule.prompt_template }} + + + + 关闭 + + + + + + + + diff --git a/src/views/module_report/template/list.vue b/src/views/module_report/template/list.vue new file mode 100644 index 0000000..9dcd530 --- /dev/null +++ b/src/views/module_report/template/list.vue @@ -0,0 +1,760 @@ + + + + + + + + 新增模板 + + + + + + + + + handleCommand(cmd, item)"> + + + + 修改 + + + + + + + + + {{ item.template_name }} + + {{ templateTypeLabel(item.template_type) }} + v{{ item.version }} + + + + 最后更新:{{ formatDateTime(item.updated_time || item.created_time) }} + + + {{ item.description || "暂无描述" }} + + + + + + + 标注情况 + + {{ item.annotation_count || 0 }} 项 + + + + + + + + 编辑 + 删除 + + + + + + + + + 共 {{ total }} 条 + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + + 仅支持 .docx 格式的 Word 文档 + + + + + + + + + 取消 + + 确定 + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + + + + 当前文件:{{ currentEditItem?.original_name || "已绑定文件" }},上传新文件将替换 + + 仅支持 .docx 格式的 Word 文档 + + + + + + + + + + 取消 + + 保存 + + + + + + + + + + diff --git a/src/views/module_rule/rule_list/RuleEdit.vue b/src/views/module_rule/rule_list/RuleEdit.vue index d8d18ab..629dcf2 100644 --- a/src/views/module_rule/rule_list/RuleEdit.vue +++ b/src/views/module_rule/rule_list/RuleEdit.vue @@ -6,112 +6,110 @@ {{ isEdit ? "编辑规则" : "新建规则" }} - - - - 基础信息 - - - - - - - - - - - - - - - - - - - - - - 启用 - 停用 - - - - - - - - - 提示词模板 - - - - - - 变量格式:${'{变量名}'},如 - ${'{合同全文内容}'}; - - - 知识库引用:@知识库/文档名称,如 - @知识库/GB/T 50326-2018 - - + + + + + + 基础信息 + + + + + + + + + + + + + + + + + 启用 + 停用 + + + + + + + + + 提示词模板 + + + + + + 变量格式:${变量名},如 + ${合同全文内容}; + + + 知识库引用:@知识库/文档名称,如 + @知识库/GB/T 50326-2018 + + - - - - {{ n }} + + + + {{ n }} + + - - - - - - + +
{{ activeAnnotation.rule_prompt_template }}
{{ detailRule.prompt_template }}
+ {{ templateTypeLabel(item.template_type) }} + v{{ item.version }} +
+ + 最后更新:{{ formatDateTime(item.updated_time || item.created_time) }} +
+ {{ item.description || "暂无描述" }} +
${'{变量名}'}
${'{合同全文内容}'}
@知识库/文档名称
@知识库/GB/T 50326-2018
${变量名}
${合同全文内容}