Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
21febb9f
提交
21febb9f
authored
2月 10, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完善功能
上级
e2d2e595
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
236 行删除
+14
-236
ArchiveList.vue
zrch-risk-client-39/src/views/baosong/ArchiveList.vue
+0
-231
BaosongTask.data.ts
...risk-client-39/src/views/baosong/task/BaosongTask.data.ts
+14
-5
没有找到文件。
zrch-risk-client-39/src/views/baosong/ArchiveList.vue
deleted
100644 → 0
浏览文件 @
e2d2e595
<
template
>
<a-card
style=
"width: 100%"
:tab-list=
"tabList"
:active-tab-key=
"activeKey"
@
tabChange=
"key => onTabChange(key)"
>
<template
#
tabBarExtraContent
>
<div
class=
"date-picker-wrapper"
>
<a-space>
<a-date-picker
placeholder=
"选择年"
picker=
"year"
>
<template
#
renderExtraFooter
></
template
>
</a-date-picker>
<a-date-picker
v-show=
"activeKey === 'quarter'"
placeholder=
"选择季度"
picker=
"quarter"
>
<
template
#
renderExtraFooter
></
template
>
</a-date-picker>
<a-date-picker
v-show=
"activeKey === 'month'"
placeholder=
"选择月"
picker=
"month"
>
<
template
#
renderExtraFooter
></
template
>
</a-date-picker>
</a-space>
</div>
</template>
<div
style=
"background-color: #ececec; padding: 20px"
>
<a-row
:gutter=
"[16,16]"
>
<a-col
:span=
"8"
v-for=
"item in dataList"
:key=
"item.id"
>
<a-card
:bordered=
"false"
>
<
template
#
title
>
{{
item
.
code
}}
-
{{
item
.
nm
}}
</
template
>
<
template
#
extra
>
<a-space>
<a
href=
"#"
@
click
.
prevent=
"downLoadXml(item)"
>
直接下载XML
</a>
<a
href=
"#"
@
click
.
prevent=
"gotoPage(item)"
>
预览并下载
</a>
</a-space>
</
template
>
<span>
年度:{{ item.vyear }}
</span>
<span>
版本:{{ item.version }}
</span>
<span>
节点数:{{ item.childNum }}
</span><br>
<span>
{{ item.xmlfilePath }}
</span>
</a-card>
</a-col>
</a-row>
</div>
</a-card>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
onMounted
,
computed
,
nextTick
}
from
'vue'
;
import
{
allTpls
}
from
'../tpl/BaosongTpl.api'
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
{
downLoadTaskXml
}
from
'../review/BaosongTaskReview.api'
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
queryParam
=
ref
({
taskId
:
0
,
taskName
:
''
,
tplId
:
''
,
tplName
:
''
,
tplCode
:
''
})
onMounted
(()
=>
{
if
(
route
.
query
.
taskId
)
{
queryParam
.
value
.
taskId
=
Number
(
route
.
query
.
taskId
);
// Convert to number
}
if
(
route
.
query
.
taskName
)
{
queryParam
.
value
.
taskName
=
String
(
route
.
query
.
taskName
);
// Ensure it's a string
}
iniData
();
})
const
activeKey
=
ref
(
'year'
);
// 使用 computed 计算 tabList,根据 dataMap 中的记录数动态设置 disabled
const
tabList
=
computed
(()
=>
{
const
tabs
=
[
{
key
:
'year'
,
tab
:
'年报'
,
type
:
1
},
{
key
:
'quarter'
,
tab
:
'季报'
,
type
:
2
},
{
key
:
'month'
,
tab
:
'月报'
,
type
:
3
},
];
return
tabs
.
map
(
tab
=>
({
...
tab
,
//disabled: !dataMap.value[tab.type] || dataMap.value[tab.type].length === 0
}));
});
const
onTabChange
=
async
(
value
:
string
)
=>
{
activeKey
.
value
=
value
;
if
(
value
===
'year'
)
{
dataList
.
value
=
await
filteredData
(
1
)
}
else
if
(
value
===
'quarter'
)
{
dataList
.
value
=
await
filteredData
(
2
)
}
else
if
(
value
===
'month'
)
{
dataList
.
value
=
await
filteredData
(
3
)
}
else
{
//dataList.value = await filteredData(4)
}
}
const
gotoPage
=
async
(
item
)
=>
{
// 确保所有参数都设置完成后再跳转
queryParam
.
value
.
tplName
=
item
.
nm
||
''
queryParam
.
value
.
tplCode
=
item
.
code
||
''
queryParam
.
value
.
tplId
=
item
.
id
||
''
let
targetPath
=
''
const
code
=
item
.
code
||
''
if
(
code
===
'T-B-1'
)
{
targetPath
=
'/baosong/report/components/Tb1'
}
else
if
(
code
===
'T-B-2'
)
{
targetPath
=
'/baosong/report/components/Tb2'
}
else
if
(
code
===
'T-B-3'
)
{
targetPath
=
'/baosong/report/components/Tb3'
}
else
if
(
code
===
'T-B-4'
)
{
targetPath
=
'/baosong/report/components/Tb4'
}
else
if
(
code
===
'T-B-5'
)
{
targetPath
=
'/baosong/report/components/Tb5'
}
else
if
(
code
===
'T-B-6'
)
{
targetPath
=
'/baosong/report/components/Tb6'
}
else
if
(
code
===
'T-B-7'
)
{
targetPath
=
'/baosong/report/components/Tb7'
}
else
if
(
code
===
'T-B-8'
)
{
targetPath
=
'/baosong/report/components/Tb8'
}
else
if
(
code
===
'T-B-9'
)
{
targetPath
=
'/baosong/report/components/Tb9'
}
else
if
(
code
===
'T-B-10'
)
{
targetPath
=
'/baosong/report/components/Tb10'
}
else
if
(
code
===
'T-B-11'
)
{
targetPath
=
'/baosong/report/components/Tb11'
}
else
if
(
code
===
'R-R-1'
)
{
targetPath
=
'/baosong/report/components/Rr1'
}
else
if
(
code
===
'R-R-2'
)
{
targetPath
=
'/baosong/report/components/Rr2'
}
else
if
(
code
===
'T-M-1'
)
{
targetPath
=
'/baosong/report/components/Tm1'
}
else
if
(
code
===
'T-M-2'
)
{
targetPath
=
'/baosong/report/components/Tm2'
}
else
if
(
code
===
'T-M-3'
)
{
targetPath
=
'/baosong/report/components/Tm3'
}
else
if
(
code
===
'T-Q-1'
)
{
targetPath
=
'/baosong/report/components/Tq1'
}
else
if
(
code
===
'T-Q-2'
)
{
targetPath
=
'/baosong/report/components/Tq2'
}
else
if
(
code
===
'T-Q-3'
)
{
targetPath
=
'/baosong/report/components/Tq3'
}
else
if
(
code
===
'T-Q-4'
)
{
targetPath
=
'/baosong/report/components/Tq4'
}
else
if
(
code
===
'T-Q-5'
)
{
targetPath
=
'/baosong/report/components/Tq5'
}
if
(
targetPath
)
{
console
.
log
(
'跳转到页面:'
,
targetPath
,
'参数:'
,
queryParam
.
value
);
// 使用 Promise 确保数据更新完成后再跳转
await
nextTick
();
router
.
push
({
path
:
targetPath
,
query
:
{
taskId
:
queryParam
.
value
.
taskId
,
taskName
:
queryParam
.
value
.
taskName
,
tplId
:
queryParam
.
value
.
tplId
,
tplName
:
queryParam
.
value
.
tplName
,
tplCode
:
queryParam
.
value
.
tplCode
}
});
}
}
const
dataList
=
ref
([])
const
dataMap
=
ref
({})
const
dataAllList
=
ref
([])
async
function
iniData
()
{
dataAllList
.
value
=
await
allTpls
({});
dataMap
.
value
=
dataAllList
.
value
.
reduce
((
result
,
item
)
=>
{
const
key
=
item
.
tp
;
if
(
!
result
[
key
])
{
result
[
key
]
=
[];
}
result
[
key
].
push
(
item
);
return
result
;
},
{});
dataList
.
value
=
dataMap
.
value
[
1
]
}
const
filteredData
=
(
async
(
tp
)
=>
{
return
dataMap
.
value
[
tp
]
});
async
function
downLoadXml
(
record
)
{
let
retData
=
await
downLoadTaskXml
(
record
);
handleDownloadFile
(
retData
);
}
const
handleDownloadFile
=
(
filePath
)
=>
{
const
globOnlineViewUrl
:
string
=
import
.
meta
.
env
.
VITE_GLOB_ONLINE_VIEW_URL
;
const
url
=
globOnlineViewUrl
+
filePath
;
if
(
url
)
{
window
.
open
(
url
);
}
};
</
script
>
<
style
scoped
>
.date-picker-wrapper
{
display
:
flex
;
justify-content
:
left
;
align-items
:
left
;
width
:
100%
;
padding
:
0
20px
auto
;
margin-right
:
500px
;
}
</
style
>
\ No newline at end of file
zrch-risk-client-39/src/views/baosong/task/BaosongTask.data.ts
浏览文件 @
21febb9f
...
...
@@ -80,13 +80,20 @@ export const columns: BasicColumn[] = [
{
title
:
'报告状态'
,
align
:
'left'
,
dataIndex
:
'sta
Text
'
,
dataIndex
:
'sta'
,
ifShow
:
true
,
width
:
"8%"
,
resizable
:
true
// customRender: ({ text }) => {
// return render.renderDict(text, 'fxc_report_sta');
// },
resizable
:
true
,
customRender
:
({
text
})
=>
{
let
color
=
"red"
;
if
(
!
text
||
text
===
0
)
{
color
=
"red"
;}
if
(
text
===
1
)
{
color
=
"green"
}
if
(
text
===
2
)
{
color
=
"orange"
}
if
(
text
===
3
)
{
color
=
"red"
}
if
(
text
===
4
)
{
color
=
"gray"
}
if
(
text
===
9
)
{
color
=
"blue"
}
return
render
.
renderTag
(
render
.
renderDict
(
text
,
'fxc_report_sta'
),
color
);
},
},
{
title
:
'已分配数'
,
...
...
@@ -141,6 +148,8 @@ export const searchFormSchema: FormSchema[] = [
placeholder
:
'请选择'
,
stringToNumber
:
true
,
},
},
];
//表单数据
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论