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
2f109134
authored
2025-12-11 17:43:26 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
其它证明文件支持多个
1 parent
3ffb25c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
30 deletions
src/views/data_facilitator/authenticationManagement.vue
src/views/data_product/productListingDetail.vue
src/views/data_facilitator/authenticationManagement.vue
View file @
2f10913
...
...
@@ -751,9 +751,9 @@ const setFormItems = (info = null, setOther = true) => {
const
datas
=
info
?
JSON
.
parse
(
JSON
.
stringify
(
info
))
:
JSON
.
parse
(
JSON
.
stringify
(
flowDetail
.
value
));
contentFormItems
.
value
.
map
((
a
,
index
)
=>
{
a
.
disabled
=
!
isEdit
.
value
;
if
(
a
.
field
==
'
abbreviation
'
)
{
if
(
a
.
field
==
'
tenantName
'
)
{
a
.
default
=
datas
[
a
.
field
]
||
staffName
;
}
else
if
(
a
.
field
==
''
)
{
}
else
if
(
a
.
field
==
'
abbreviation
'
)
{
a
.
default
=
datas
[
a
.
field
]
||
abbreviation
;
}
else
if
(
a
.
field
==
'registeredCapital'
)
{
a
.
default
=
Number
.
isNaN
(
datas
[
a
.
field
])
?
''
:
datas
[
a
.
field
];
...
...
src/views/data_product/productListingDetail.vue
View file @
2f10913
...
...
@@ -500,14 +500,13 @@ const formInfo = ref<any>({
},
{
label
:
'其它证明文件'
,
tip
:
'支持扩展名:.png .pdf
.rar .zip
'
,
accept
:
'.png, .pdf
, .rar, .zip
'
,
tip
:
'支持扩展名:.png .pdf'
,
accept
:
'.png, .pdf'
,
type
:
'upload-file'
,
placeholder
:
'请选择'
,
field
:
'productDetailInfo'
,
// templateUrl: '',
default
:
[],
limit
:
1
,
block
:
true
,
required
:
false
,
visible
:
true
...
...
@@ -802,10 +801,12 @@ const submitForm = (btn, formEl, tosub = false) => {
url
:
params
.
commitmentLetterInfo
[
0
].
url
,
name
:
params
.
commitmentLetterInfo
[
0
].
name
}]
:
[];
params
.
productDetail
=
params
.
productDetailInfo
.
length
?
[{
url
:
params
.
productDetailInfo
[
0
].
url
,
name
:
params
.
productDetailInfo
[
0
].
name
}]
:
[];
params
.
productDetail
=
params
.
productDetailInfo
?.
map
(
p
=>
{
return
{
url
:
p
.
url
,
name
:
p
.
name
}
})
||
[];
// console.log(params, formInfo.value.items.at(3).defaultValue, formInfo.value, '-----------------');
params
.
caseNumber
=
parseInt
(
params
.
caseNumber
.
replace
(
/,/g
,
''
),
10
),
params
.
dataScale
=
parseInt
(
params
.
dataScale
.
replace
(
/,/g
,
''
),
10
),
...
...
@@ -843,10 +844,10 @@ const submitForm = (btn, formEl, tosub = false) => {
flowDetailLoading
.
value
=
false
;
}
}).
catch
((
res
)
=>
{
ElMessage
({
type
:
"error"
,
message
:
'提交失败'
,
});
//
ElMessage({
//
type: "error",
//
message: '提交失败',
//
});
flowDetailLoading
.
value
=
false
;
});
}
else
{
...
...
@@ -873,10 +874,10 @@ const submitForm = (btn, formEl, tosub = false) => {
flowDetailLoading
.
value
=
false
;
}
}).
catch
((
res
)
=>
{
ElMessage
({
type
:
"error"
,
message
:
'提交失败'
,
});
//
ElMessage({
//
type: "error",
//
message: '提交失败',
//
});
flowDetailLoading
.
value
=
false
;
});
}
...
...
@@ -1205,7 +1206,7 @@ onActivated(() => {
tab
.
meta
.
title
=
`编辑-
${
damName
}
`
;
break
;
case
'redit'
:
tab
.
meta
.
title
=
`编辑-
${
damName
}
`
;
tab
.
meta
.
title
=
`
上架
编辑-
${
damName
}
`
;
break
;
case
'check'
:
tab
.
meta
.
title
=
`上架详情-
${
damName
}
`
;
...
...
@@ -2050,38 +2051,35 @@ const viewProductDetail = () => {
<div
class=
"file_item"
>
<span
class=
"item_label"
>
其它证明文件:
</span>
<span
class=
"item_value"
>
<span
v-for=
"productDetailItem in (flowDetail?.productDetail || [])"
:style=
"{ 'padding-left': '0px', height: '32px', display: 'block' }"
>
<div
class=
"file-operate"
>
<
template
v-if=
"flowDetail?.productDetail?.length > 0"
>
<
template
v-if=
"
flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0]
.name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"
>
v-if=
"
productDetailItem.name?.substring(productDetailItem
.name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
</
template
>
<
template
v-else-if=
"
flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0]
.name.lastIndexOf('.') + 1).toLowerCase() === 'png'"
>
v-else-if=
"
productDetailItem.name?.substring(productDetailItem
.name.lastIndexOf('.') + 1).toLowerCase() === 'png'"
>
<img
class=
"file-img"
src=
"../../assets/images/png.png"
/>
</
template
>
<
template
v-else-if=
"['jpg', 'jpeg'].includes(
flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0]
.name.lastIndexOf('.') + 1).toLowerCase())"
>
v-else-if=
"['jpg', 'jpeg'].includes(
productDetailItem.name?.substring(productDetailItem
.name.lastIndexOf('.') + 1).toLowerCase())"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</
template
>
<div
class=
"file-name"
><ellipsis-tooltip
:content=
"
flowDetail.productDetail[0]
.name ?? ''"
<div
class=
"file-name"
><ellipsis-tooltip
:content=
"
productDetailItem
.name ?? ''"
class-name=
"w100f"
refName=
"tooltipOver"
></ellipsis-tooltip></div>
<div
v-if=
"['pdf', 'png', 'jpg', 'jpeg'].includes(
flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0]
.name.lastIndexOf('.') + 1).toLowerCase())"
v-if=
"['pdf', 'png', 'jpg', 'jpeg'].includes(
productDetailItem.name?.substring(productDetailItem
.name.lastIndexOf('.') + 1).toLowerCase())"
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(
flowDetail.productDetail[0]
)"
>
@
click=
"onUploadFilePreview(
productDetailItem
)"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(
flowDetail.productDetail[0]
)"
>
@
click=
"onUploadFileDownload(
productDetailItem
)"
>
下载
</div>
</template>
<
template
v-else
>
--
</
template
>
</div>
</span>
</span>
</div>
</div>
...
...
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