Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
4986aeb7
提交
4986aeb7
authored
2月 09, 2026
作者:
张伊明
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增翻译栏标题显示
上级
d9959d1e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
69 行增加
和
2 行删除
+69
-2
writtingAsstaintStore.js
src/stores/writtingAsstaintStore.js
+7
-0
WrittingLeftBox.vue
src/views/writtingAsstaint/components/WrittingLeftBox.vue
+62
-2
没有找到文件。
src/stores/writtingAsstaintStore.js
浏览文件 @
4986aeb7
...
...
@@ -26,6 +26,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
clauseTranslationMessages
:
[],
// 存收到的条款翻译消息
highlightClauseId
:
null
,
// 当前高亮的条款 ID (clause_number)
isShowOriginal
:
true
,
// 是否显示原文内容
pdfMetadata
:
null
,
// PDF 解析元数据
// 静态数据
tabList
:
[
...
...
@@ -67,6 +68,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
curAgentTool
=
''
;
this
.
processLog
=
''
;
this
.
clauseTranslationMessages
=
[];
this
.
pdfMetadata
=
null
;
this
.
isShowClauseTranslation
=
false
;
this
.
highlightClauseId
=
null
;
this
.
isShowOriginal
=
true
;
...
...
@@ -227,6 +229,11 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
processLog
+=
`
${
this
.
formattedTime
}
:
${
jsonData
.
message
}
\r\n`
;
}
break
;
case
'metadata'
:
if
(
jsonData
&&
jsonData
.
payload
)
{
this
.
pdfMetadata
=
jsonData
.
payload
;
}
break
;
case
'clause_translation'
:
// 保存条款翻译消息并显示侧边栏
if
(
jsonData
)
{
...
...
src/views/writtingAsstaint/components/WrittingLeftBox.vue
浏览文件 @
4986aeb7
<
template
>
<div
class=
"left-box-wrapper"
>
<div
class=
"back"
@
click=
"store.resetGenerateState"
v-if=
"store.isGenerating"
>
<
返回
</div>
<div
class=
"left-box"
:class=
"
{ 'has-back-btn': store.isGenerating }" v-if="!store.isShowClauseTranslation
&&
!store.isShowSteps">
<div
class=
"left-box"
:class=
"
{ 'has-back-btn': store.isGenerating }"
v-if="!store.isShowClauseTranslation
&&
!store.isShowSteps">
<div
class=
"left-box-input"
>
<!-- 表单输入区域 -->
<div
class=
"sider"
v-if=
"!store.isGenerating"
>
...
...
@@ -159,8 +160,17 @@
</div>
<!-- 条款翻译侧边栏 -->
<div
class=
"left-box translation-box"
:class=
"{ 'has-back-btn': store.isGenerating }"
v-if=
"store.isShowClauseTranslation"
>
<div
class=
"left-box translation-box"
:class=
"{ 'has-back-btn': store.isGenerating }"
v-if=
"store.isShowClauseTranslation"
>
<div
class=
"translation-main-box"
>
<!-- 政令标题卡片 -->
<div
class=
"metadata-card"
v-if=
"store.pdfMetadata"
>
<div
class=
"card-header"
>
<div
class=
"chinese-name"
>
{{ store.pdfMetadata.name }}
</div>
<div
class=
"type-tag"
>
{{ store.pdfMetadata.signing_date }}
</div>
</div>
<div
class=
"english-name"
>
{{ store.pdfMetadata.order_title }}
</div>
</div>
<div
class=
"translation-header-new"
>
<div
class=
"header-left"
>
共{{ store.clauseTranslationMessages.length }}章节
</div>
<div
class=
"header-right"
>
...
...
@@ -674,6 +684,56 @@ defineExpose({
padding-inline
:
22px
;
overflow
:
hidden
;
.metadata-card
{
flex-shrink
:
0
;
background
:
#f8f9fa
;
border
:
1px
solid
#f0f2f5
;
border-radius
:
8px
;
padding
:
16px
;
.card-header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-start
;
margin-bottom
:
8px
;
.chinese-name
{
color
:
rgba
(
59
,
65
,
75
,
1
);
font-family
:
Source
Han
Sans
CN
;
font-style
:
Bold
;
font-size
:
18px
;
font-weight
:
700
;
letter-spacing
:
0px
;
text-align
:
left
;
flex
:
1
;
padding-right
:
12px
;
}
.type-tag
{
color
:
rgba
(
5
,
95
,
194
,
1
);
font-family
:
Source
Han
Sans
CN
;
font-style
:
Regular
;
font-size
:
14px
;
font-weight
:
400
;
line-height
:
22px
;
letter-spacing
:
0px
;
text-align
:
justify
;
background
:
#e7f3ff
;
padding
:
4px
8px
;
border-radius
:
4px
;
}
}
.english-name
{
color
:
#84888e
;
font-family
:
Microsoft
YaHei
;
font-size
:
14px
;
line-height
:
20px
;
word-break
:
break-word
;
}
}
.translation-header-new
{
flex-shrink
:
0
;
display
:
flex
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论