Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
35ba81ea
提交
35ba81ea
authored
3月 31, 2026
作者:
张伊明
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'ayp-dev' of
http://8.140.26.4:10003/caijian/risk-monitor
into ayp-dev
上级
edd63b66
86b10c49
流水线
#218
已通过 于阶段
in 1 分 30 秒
变更
6
流水线
1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
16 行删除
+24
-16
Steps步骤条_亮色_图标-待处理.png
src/assets/icons/aiBox/Steps步骤条_亮色_图标-待处理.png
+0
-0
steps.png
src/assets/icons/aiBox/steps.png
+0
-0
writtingAsstaintStore.js
src/stores/writtingAsstaintStore.js
+18
-12
WrittingBottom.vue
src/views/writtingAsstaint/components/WrittingBottom.vue
+0
-0
WrittingHeader.vue
src/views/writtingAsstaint/components/WrittingHeader.vue
+1
-1
WrittingMind.vue
src/views/writtingAsstaint/components/WrittingMind.vue
+5
-3
没有找到文件。
src/assets/icons/aiBox/Steps步骤条_亮色_图标-待处理.png
deleted
100644 → 0
浏览文件 @
edd63b66
831 Bytes
src/assets/icons/aiBox/steps.png
0 → 100644
浏览文件 @
35ba81ea
619 Bytes
src/stores/writtingAsstaintStore.js
浏览文件 @
35ba81ea
...
@@ -52,6 +52,10 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -52,6 +52,10 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
containerRef
:
null
containerRef
:
null
},
},
// ==================================
// 显示全部进度
isProcessLog
:
false
,
// ====头
// ====头
isSsearchFor
:
false
,
isSsearchFor
:
false
,
//list
//list
...
@@ -78,7 +82,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -78,7 +82,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
resultWriteData
:
null
,
//文档分析结束之后 写报使用
resultWriteData
:
null
,
//文档分析结束之后 写报使用
// 写报
// 写报
isWriteStart
:
false
,
// 写报进行中
isWriteStart
:
false
,
// 写报进行中
process
WriteLog
:
''
,
//写报步骤
process
LogAlone
:
''
,
//写报步骤
writeProgressNum
:
0
,
//写报 假进度
writeProgressNum
:
0
,
//写报 假进度
}),
}),
...
@@ -123,14 +127,15 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -123,14 +127,15 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
abortController
=
null
;
this
.
abortController
=
null
;
this
.
isProcessLog
=
false
this
.
headerTabType
=
'translate'
,
this
.
headerTabType
=
'translate'
,
// 底部
// 底部
this
.
bottomProgressNum
=
0
,
//文档解析 假进度
this
.
bottomProgressNum
=
0
,
//文档解析 假进度
this
.
resultWriteData
=
null
,
//文档分析结束之后 写报使用
this
.
resultWriteData
=
null
,
//文档分析结束之后 写报使用
this
.
processLogAlone
=
''
,
//写报步骤
// 写报
// 写报
this
.
isWriteStart
=
false
,
// 写报进行中
this
.
isWriteStart
=
false
,
// 写报进行中
this
.
processWriteLog
=
''
,
//写报步骤
//
this.processWriteLog='', //写报步骤
this
.
writeProgressNum
=
0
,
//写报 假进度
this
.
writeProgressNum
=
0
,
//写报 假进度
this
.
tabList
[
1
].
active
=
false
this
.
tabList
[
1
].
active
=
false
this
.
tabList
[
2
].
active
=
false
this
.
tabList
[
2
].
active
=
false
...
@@ -212,7 +217,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -212,7 +217,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
// this.bottomProgressNum=100
// this.bottomProgressNum=100
this
.
headerTabType
=
'translate'
this
.
headerTabType
=
'translate'
this
.
writeProgressNum
=
0
this
.
writeProgressNum
=
0
this
.
process
WriteLog
=
''
this
.
process
LogAlone
=
''
this
.
tabList
[
2
].
active
=
false
this
.
tabList
[
2
].
active
=
false
this
.
abortController
.
abort
()
this
.
abortController
.
abort
()
},
},
...
@@ -405,7 +410,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -405,7 +410,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
case
'progress'
:
case
'progress'
:
// 仅更新执行步骤
// 仅更新执行步骤
if
(
jsonData
.
message
)
{
if
(
jsonData
.
message
)
{
this
.
processLog
=
`
${
this
.
formattedTime
}
:
${
jsonData
.
message
}
\r\n`
;
this
.
processLog
+=
`
${
this
.
formattedTime
}
:
${
jsonData
.
message
}
\r\n`
;
this
.
processLogAlone
=
`
${
this
.
formattedTime
}
:
${
jsonData
.
message
}
\r\n`
;
}
}
this
.
bottomProgressNum
+=
1
this
.
bottomProgressNum
+=
1
break
;
break
;
...
@@ -435,7 +441,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -435,7 +441,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
bottomProgressNum
=
100
// 假进度完成
this
.
bottomProgressNum
=
100
// 假进度完成
this
.
resultWriteData
=
jsonData
//给写报使用
this
.
resultWriteData
=
jsonData
//给写报使用
this
.
tabList
[
1
].
active
=
true
//放开思维导图
this
.
tabList
[
1
].
active
=
true
//放开思维导图
this
.
processLog
=
`点击查看`
;
this
.
processLog
Alone
=
`点击查看`
;
// await this.fetchReportData({
// await this.fetchReportData({
// query: this.writtingTitle,
// query: this.writtingTitle,
// desc: this.descText,
// desc: this.descText,
...
@@ -482,8 +488,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -482,8 +488,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
console
.
log
(
">"
)
console
.
log
(
">"
)
if
(
this
.
abortController
)
this
.
abortController
.
abort
();
if
(
this
.
abortController
)
this
.
abortController
.
abort
();
this
.
abortController
=
new
AbortController
();
this
.
abortController
=
new
AbortController
();
this
.
processLog
=
''
;
//
this.processLog = '';
this
.
processWriteLog
=
''
// this.processLogAlone
=''
this
.
writeProgressNum
=
1
this
.
writeProgressNum
=
1
...
@@ -576,7 +582,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -576,7 +582,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
writeProgressNum
=
100
//写报假进度
this
.
writeProgressNum
=
100
//写报假进度
this
.
process
WriteLog
=
'点击查看'
;
this
.
process
LogAlone
=
'点击查看'
;
// 这里不再调用 resetGenerateState,因为可能需要保留翻译内容
// 这里不再调用 resetGenerateState,因为可能需要保留翻译内容
}
}
...
@@ -589,7 +595,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -589,7 +595,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
tabList
[
2
].
active
=
true
//写报生成之后放开写报按钮
this
.
tabList
[
2
].
active
=
true
//写报生成之后放开写报按钮
this
.
writeProgressNum
=
100
//写报假进度
this
.
writeProgressNum
=
100
//写报假进度
this
.
process
WriteLog
=
'点击查看'
;
this
.
process
LogAlone
=
'点击查看'
;
}
else
if
((
msgData
.
event_type
||
''
).
toLowerCase
().
includes
(
'error'
))
{
}
else
if
((
msgData
.
event_type
||
''
).
toLowerCase
().
includes
(
'error'
))
{
// 优先从 data.error 获取详细错误描述
// 优先从 data.error 获取详细错误描述
const
errorMsg
=
msgData
.
data
?.
error
||
str
||
'生成失败'
;
const
errorMsg
=
msgData
.
data
?.
error
||
str
||
'生成失败'
;
...
@@ -598,8 +604,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -598,8 +604,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
// 老版 --index.vue 行为:步骤栏直接追加服务端发来的完整步骤内容,不加时间戳、不强行换行
// 老版 --index.vue 行为:步骤栏直接追加服务端发来的完整步骤内容,不加时间戳、不强行换行
// 这样可以避免 SSE 分片导致的“步骤破碎”(一条步骤被拆成多条显示)
// 这样可以避免 SSE 分片导致的“步骤破碎”(一条步骤被拆成多条显示)
if
(
str
)
{
if
(
str
)
{
//
this.processLog += str;
this
.
processLog
+=
str
;
this
.
process
WriteLog
+=
str
;
this
.
process
LogAlone
+=
str
;
if
(
this
.
writeProgressNum
<=
90
){
if
(
this
.
writeProgressNum
<=
90
){
this
.
writeProgressNum
+=
0.05
this
.
writeProgressNum
+=
0.05
}
}
...
...
src/views/writtingAsstaint/components/WrittingBottom.vue
浏览文件 @
35ba81ea
差异被折叠。
点击展开。
src/views/writtingAsstaint/components/WrittingHeader.vue
浏览文件 @
35ba81ea
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-button
@
click=
"store.handleIsSsearchFor"
><img
style=
"width: 16px;"
src=
"@/assets/icons/aiBox/search.png"
alt=
""
>
查找
</el-button>
<el-button
@
click=
"store.handleIsSsearchFor"
><img
style=
"width: 16px;"
src=
"@/assets/icons/aiBox/search.png"
alt=
""
>
查找
</el-button>
</div>
</div>
<div
v-else
>
<div
v-else
style=
"margin-right: 22px;"
>
<el-button
@
click=
"onExport"
>
导出
</el-button>
<el-button
@
click=
"onExport"
>
导出
</el-button>
</div>
</div>
</div>
</div>
...
...
src/views/writtingAsstaint/components/WrittingMind.vue
浏览文件 @
35ba81ea
...
@@ -11,7 +11,7 @@ import { useWrittingAsstaintStore } from "@/stores/writtingAsstaintStore";
...
@@ -11,7 +11,7 @@ import { useWrittingAsstaintStore } from "@/stores/writtingAsstaintStore";
// 子组件直接获取Pinia Store(核心优化)
// 子组件直接获取Pinia Store(核心优化)
const
store
=
useWrittingAsstaintStore
();
const
store
=
useWrittingAsstaintStore
();
// pushfenzhi
let
mindMapData
=
{
let
mindMapData
=
{
id
:
'root'
,
id
:
'root'
,
label
:
'名称'
,
label
:
'名称'
,
...
@@ -19,7 +19,7 @@ let mindMapData = {
...
@@ -19,7 +19,7 @@ let mindMapData = {
]
]
}
}
console
.
log
(
store
.
resultWriteData
.
政令深度分析
.
条款分析
.
科技条款内容
[
0
].
领域举措
,
890
)
let
uniqueId
=
1
;
let
uniqueId
=
1
;
function
convertMindMap
(
rawData
)
{
function
convertMindMap
(
rawData
)
{
...
@@ -214,7 +214,8 @@ defineExpose({
...
@@ -214,7 +214,8 @@ defineExpose({
background
:
#f5f7fa
;
background
:
#f5f7fa
;
}
}
.mind-map
{
.mind-map
{
width
:
100
%
;
width
:
92
%
;
height
:
100%
;
height
:
100%
;
margin
:
0
auto
;
}
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论