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
5b79eb4b
authored
2025-12-11 15:54:34 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加产品上架证明文件
1 parent
16ae2f11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
4 deletions
src/views/data_product/productListingDetail.vue
src/views/data_smart_contract/smartContractCreate.vue
src/views/data_product/productListingDetail.vue
View file @
5b79eb4
...
...
@@ -708,9 +708,9 @@ const getProductDetail = async () => {
// if (res.data.commitmentLetter && res.data.commitmentLetter.length) {
// flowDetail.value.commitmentLetter = { name: res.data.commitmentLetter[0].name, url: res.data.commitmentLetter[0].url }
// }
if
(
res
.
data
.
accreditFile
&&
res
.
data
.
accreditFile
.
length
)
{
flowDetail
.
value
.
accreditFile
=
{
name
:
res
.
data
.
accreditFile
[
0
].
name
,
url
:
res
.
data
.
accreditFile
[
0
].
url
}
}
//
if (res.data.accreditFile && res.data.accreditFile.length) {
//
flowDetail.value.accreditFile = { name: res.data.accreditFile[0].name, url: res.data.accreditFile[0].url }
//
}
// if (res.data.productDetail && res.data.productDetail.length) {
// flowDetail.value.productDetail = { name: res.data.productDetail[0].name, url: res.data.productDetail[0].url }
// }
...
...
@@ -794,6 +794,18 @@ const submitForm = (btn, formEl, tosub = false) => {
delete
params
.
productImgList
;
params
.
coverageArea
=
subForm
.
value
.
coverageAreas
==
'Y'
?
[[
'all'
]]
:
subForm
.
value
.
coverageArea
;
params
.
productPic
=
subForm
.
value
.
productImg
.
length
?
{
name
:
subForm
.
value
.
productImg
[
0
].
name
,
url
:
subForm
.
value
.
productImg
[
0
].
url
}
:
{};
params
.
accreditFile
=
params
.
accreditFileInfo
.
length
?
[{
url
:
params
.
accreditFileInfo
[
0
].
url
,
name
:
params
.
accreditFileInfo
[
0
].
name
}]
:
''
;
params
.
commitmentLetter
=
params
.
commitmentLetterInfo
.
length
?
[{
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
}]
:
[];
// 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
),
...
...
@@ -801,6 +813,9 @@ const submitForm = (btn, formEl, tosub = false) => {
params
.
timeAreaEnd
=
params
.
dateRange
?
params
.
dateRange
[
1
]
:
''
;
// 删除dateRange字段
delete
params
.
dateRange
;
delete
params
.
accreditFileInfo
;
delete
params
.
commitmentLetterInfo
;
delete
params
.
productDetailInfo
;
params
.
foundMode
=
currProductInfo
.
value
?.
foundMode
||
flowDetail
.
value
.
foundMode
;
params
.
productCode
=
currProductInfo
.
value
?.
productCode
||
flowDetail
.
value
.
productCode
;
flowDetailLoading
.
value
=
true
;
...
...
@@ -1954,6 +1969,122 @@ const viewProductDetail = () => {
<span
class=
"item_value"
>
--
</span>
</div>
</div>
<div
class=
"list_item is_block"
>
<div
class=
"file_item"
>
<span
class=
"item_label"
>
承诺函:
</span>
<span
class=
"item_value"
>
<div
class=
"file-operate"
>
<
template
v-if=
"flowDetail?.commitmentLetter?.length > 0"
>
<template
v-if=
"flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
</
template
>
<
template
v-else-if=
"flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'"
>
<img
class=
"file-img"
src=
"../../assets/images/png.png"
/>
</
template
>
<
template
v-else-if=
"['jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</
template
>
<div
class=
"file-name"
><ellipsis-tooltip
:content=
"flowDetail.commitmentLetter[0].name ?? ''"
class-name=
"w100f"
refName=
"tooltipOver"
></ellipsis-tooltip></div>
<div
v-if=
"['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(flowDetail.commitmentLetter[0])"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(flowDetail.commitmentLetter[0])"
>
下载
</div>
</template>
<
template
v-else
>
--
</
template
>
</div>
</span>
</div>
</div>
<div
class=
"list_item is_block"
>
<div
class=
"file_item"
>
<span
class=
"item_label"
>
授权文件:
</span>
<span
class=
"item_value"
>
<div
class=
"file-operate"
>
<
template
v-if=
"flowDetail?.accreditFile?.length > 0"
>
<template
v-if=
"flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
</
template
>
<
template
v-else-if=
"flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'"
>
<img
class=
"file-img"
src=
"../../assets/images/png.png"
/>
</
template
>
<
template
v-else-if=
"['jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</
template
>
<div
class=
"file-name"
><ellipsis-tooltip
:content=
"flowDetail.accreditFile[0].name ?? ''"
class-name=
"w100f"
refName=
"tooltipOver"
></ellipsis-tooltip></div>
<div
v-if=
"['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(flowDetail.accreditFile[0])"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(flowDetail.accreditFile[0])"
>
下载
</div>
</template>
<
template
v-else
>
--
</
template
>
</div>
</span>
</div>
</div>
<div
class=
"list_item is_block"
v-if=
"flowDetail?.productDetail?.length > 0"
>
<div
class=
"file_item"
>
<span
class=
"item_label"
>
其它证明文件:
</span>
<span
class=
"item_value"
>
<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'"
>
<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'"
>
<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())"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</
template
>
<div
class=
"file-name"
><ellipsis-tooltip
:content=
"flowDetail.productDetail[0].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())"
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(flowDetail.productDetail[0])"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(flowDetail.productDetail[0])"
>
下载
</div>
</template>
<
template
v-else
>
--
</
template
>
</div>
</span>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/data_smart_contract/smartContractCreate.vue
View file @
5b79eb4
...
...
@@ -264,7 +264,7 @@ const productTableInfo = ref({
data
:
productData
.
value
,
showPage
:
false
,
actionInfo
:
{
show
:
tru
e
,
show
:
fals
e
,
label
:
"操作"
,
type
:
"btn"
,
width
:
60
,
...
...
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