Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2bc45da1
authored
2025-06-16 10:00:31 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 详情给交付物添加下载功能
1 parent
bc825221
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
src/utils/common.ts
src/views/data_asset/registerCatalogContractDetail.vue
src/views/data_asset/registerCatalogDetail.vue
src/utils/common.ts
View file @
2bc45da
...
...
@@ -226,9 +226,9 @@ export const getPastTime = (duration, type) => {
}
/** 根据流获取url地址,用于文件查看。 */
export
const
getDownloadUrl
=
(
data
,
fileName
,
type
:
any
=
null
,
flag
=
true
)
=>
{
export
const
getDownloadUrl
=
(
data
,
fileName
,
type
:
any
=
null
,
flag
=
true
)
=>
{
let
mineType
=
'application/octet-stream'
if
(
type
==
'excel'
)
{
if
(
type
==
'excel'
||
type
==
'xlsx'
||
type
==
'xls'
||
type
==
'csv'
)
{
mineType
=
'application/vnd.ms-excel'
}
else
if
(
type
==
'word'
)
{
mineType
=
'application/msword'
...
...
src/views/data_asset/registerCatalogContractDetail.vue
View file @
2bc45da
...
...
@@ -168,18 +168,17 @@ const getTaskDetail = () => {
})
}
const
toPath
=
()
=>
{
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
assetStore
.
set
(
true
);
router
.
push
({
name
:
'contractManagement'
,
})
}
const
btnClick
=
async
(
btn
)
=>
{
const
type
=
btn
.
value
;
if
(
type
==
'cancel'
)
{
toPath
()
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
router
.
push
({
name
:
'registerCatalogDetail'
,
query
:
{
guid
:
route
.
query
.
damGuid
,
type
:
'asset'
}
})
}
}
...
...
src/views/data_asset/registerCatalogDetail.vue
View file @
2bc45da
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment