Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
f0a54767
提交
f0a54767
authored
3月 31, 2026
作者:
张烨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:政令-机构信息默认显示近一年数据
上级
264cd62d
流水线
#242
已通过 于阶段
in 1 分 42 秒
变更
3
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
8 行删除
+5
-8
graphChart.js
src/components/base/GraphChart/graphChart.js
+1
-0
index.vue
src/views/decree/allOrganization/index.vue
+2
-2
index.vue
src/views/decree/decreeHome/index.vue
+2
-6
没有找到文件。
src/components/base/GraphChart/graphChart.js
浏览文件 @
f0a54767
...
...
@@ -82,6 +82,7 @@ const getGraphChart = (nodes, links, layoutType) => {
}
},
force
:
{
layoutAnimation
:
false
,
// 关闭初始化晃来晃去的动画
repulsion
:
300
,
gravity
:
0
,
edgeLength
:
300
...
...
src/views/decree/allOrganization/index.vue
浏览文件 @
f0a54767
...
...
@@ -27,7 +27,7 @@
<img
:src=
"tipsTcon"
alt=
""
>
</div>
<div
class=
"date-text"
>
近期美国各联邦政府机构发布涉华政令数量汇总
</div>
<TimeTabPane
@
time-click=
"handleDateChange"
/>
<TimeTabPane
@
time-click=
"handleDateChange"
activeTime=
"近一年"
/>
</div>
<div
class=
"organization-list"
ref=
"refOrganization"
v-loading=
"organizationInfo.loading"
>
<div
class=
"organization-item"
v-for=
"(item, index) in organizationInfo.list"
:key=
"index"
...
...
@@ -77,7 +77,7 @@ const organizationInfo = reactive({
total
:
0
,
isSort
:
1
,
keyWord
:
""
,
day
:
7
,
day
:
365
,
list
:
[]
})
...
...
src/views/decree/decreeHome/index.vue
浏览文件 @
f0a54767
...
...
@@ -794,6 +794,7 @@ const onChartInterpretation = async (text, param) => {
});
clearTimeout
(
timeout
);
// 👇 新增:请求成功清除定时器
if
(
!
response
.
ok
)
throw
new
Error
(
`HTTP 错误
${
response
.
status
}
`
);
const
reader
=
response
.
body
.
getReader
();
const
decoder
=
new
TextDecoder
();
...
...
@@ -818,12 +819,7 @@ const onChartInterpretation = async (text, param) => {
}
param
.
value
=
summarize
}
catch
(
err
)
{
// 👇 新增:超时处理
if
(
err
.
name
===
'AbortError'
)
{
param
.
value
=
"请求超时,请重试"
;
}
else
{
param
.
value
=
"生成失败,请重试"
;
}
param
.
value
=
"系统异常,生成失败"
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论