Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
9086c34e
提交
9086c34e
authored
3月 02, 2026
作者:
朱政
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into zz-dev
上级
c7238487
8d04a6a5
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
45 行增加
和
1 行删除
+45
-1
writtingAsstaintStore.js
src/stores/writtingAsstaintStore.js
+44
-1
index.vue
...omponents/fourSuppress/components/allGovernment/index.vue
+1
-0
没有找到文件。
src/stores/writtingAsstaintStore.js
浏览文件 @
9086c34e
...
@@ -162,6 +162,47 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -162,6 +162,47 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
}
}
},
},
// ========== 获取政令基础信息 (翻译栏数据) ==========
async
fetchOrderBaseInfo
(
orderId
)
{
try
{
const
response
=
await
fetch
(
'/reportData/get-order-base-info'
,
{
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
},
body
:
JSON
.
stringify
({
order_id
:
Number
(
orderId
)
})
});
const
data
=
await
response
.
json
();
if
(
data
.
status
===
'success'
&&
data
.
result
)
{
const
res
=
data
.
result
;
// 1. 填充元数据 (用于翻译栏顶部的标题卡片)
this
.
pdfMetadata
=
{
name
:
res
.
order_name_zh
,
order_title
:
res
.
order_name
,
signing_date
:
res
.
post_date
};
// 2. 填充条款翻译内容
this
.
clauseTranslationMessages
=
(
res
.
clauses
||
[]).
map
(
item
=>
({
event
:
'clause_translation'
,
payload
:
{
clause_number
:
item
.
section_num
,
clause_section
:
item
.
section_num
,
// 这里根据结构复用 section_num
clause_content
:
item
.
section_text
,
clause_content_zh
:
item
.
section_text_zh
}
}));
// 3. 自动展示翻译栏
this
.
isShowClauseTranslation
=
true
;
this
.
isShowSteps
=
true
;
console
.
log
(
'政令基础信息获取并回填成功:'
,
res
);
}
}
catch
(
error
)
{
console
.
error
(
'获取政令基础信息失败:'
,
error
);
}
},
// ========== 获取业务数据并触发生成 (业务封装) ==========
// ========== 获取业务数据并触发生成 (业务封装) ==========
async
fetchOrderReportData
(
orderId
)
{
async
fetchOrderReportData
(
orderId
)
{
await
this
.
_fetchBusinessData
({
await
this
.
_fetchBusinessData
({
...
@@ -425,7 +466,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -425,7 +466,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
this
.
isShowProcess
=
true
;
this
.
isShowProcess
=
true
;
if
(
Object
.
keys
(
this
.
routeQuery
).
length
!==
0
)
{
if
(
Object
.
keys
(
this
.
routeQuery
).
length
!==
0
)
{
const
{
fileId
,
topic
}
=
this
.
routeQuery
;
const
{
fileId
}
=
this
.
routeQuery
;
// 外部跳转:根据 topic 决定调用哪种数据获取接口,再触发生成
// 外部跳转:根据 topic 决定调用哪种数据获取接口,再触发生成
if
(
fileId
)
{
if
(
fileId
)
{
...
@@ -434,6 +475,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
...
@@ -434,6 +475,8 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
}
else
if
(
this
.
curTempTitle
===
'清单'
)
{
}
else
if
(
this
.
curTempTitle
===
'清单'
)
{
await
this
.
fetchListReportData
(
fileId
);
await
this
.
fetchListReportData
(
fileId
);
}
else
{
}
else
{
// 政令:先获取基础信息(用于翻译栏),再获取写报数据并生成
await
this
.
fetchOrderBaseInfo
(
fileId
);
await
this
.
fetchOrderReportData
(
fileId
);
await
this
.
fetchOrderReportData
(
fileId
);
}
}
return
;
return
;
...
...
src/views/ZMOverView/components/fourSuppress/components/allGovernment/index.vue
浏览文件 @
9086c34e
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
<el-select
<el-select
v-model=
"methodValue"
v-model=
"methodValue"
placeholder=
"全部制裁手段"
placeholder=
"全部制裁手段"
placement=
"bottom-end"
class=
"custom-select"
class=
"custom-select"
@
change=
"getUSChinaSanctionTrendData"
@
change=
"getUSChinaSanctionTrendData"
>
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论