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
40c0e57b
authored
2025-01-10 14:04:25 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0971e406
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
29 deletions
src/views/data_product/productListing.vue
src/views/data_product/productListingDetail.vue
src/views/data_product/productListing.vue
View file @
40c0e57
...
...
@@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user";
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
useDataAssetStore
from
"@/store/modules/dataAsset"
;
import
{
getListingList
,
listingDelete
,
listingUpdateStatus
,
filterVal
,
getParamsDataList
}
from
"@/api/modules/dataProduct"
;
import
{
getListingList
,
listingDelete
,
listingUpdateStatus
,
filterVal
,
getParamsDataList
,
getListingCount
}
from
"@/api/modules/dataProduct"
;
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
TableTools
from
"@/components/Tools/table_tools.vue"
;
...
...
@@ -150,8 +150,20 @@ const toSearch = (val: any, clear: boolean = false) => {
page
.
value
.
curr
=
1
;
tableInfo
.
value
.
page
.
curr
=
1
;
getTableData
();
getListingCountData
();
};
// 获取产品上架数量
const
getListingCountData
=
()
=>
{
getListingCount
({}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
demandListData
.
value
=
res
.
data
||
[];
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
}
const
tableSwitchBeforeChange
=
(
scope
,
field
,
callback
)
=>
{
ElMessageBox
.
confirm
(
`确定
${
scope
.
row
[
field
]
==
'Y'
?
'下架'
:
'上架'
}
该产品吗?`
,
...
...
@@ -340,21 +352,21 @@ const btnClick = (btn) => {
<img
class=
"left-img"
:src=
"(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo"
alt=
""
/>
<div
class=
"right-main"
>
<div
class=
"title"
>
{{
item
.
company
Name
??
'--'
}}
</div>
<div
class=
"title"
>
{{
item
.
exchange
Name
??
'--'
}}
</div>
<div
class=
"count-group"
>
<div
class=
"count-item"
>
<div
class=
"item-label"
>
已上架产品数
</div>
<div
class=
"item-num"
>
{{
changeNum
(
item
.
listedNum
)
}}
</div>
<div
class=
"item-num"
>
{{
item
.
listingNum
||
'--'
}}
</div>
</div>
<div
class=
"count-item"
>
<div
class=
"item-label"
>
审批中产品数
</div>
<div
class=
"item-num"
>
{{
changeNum
(
item
.
processNum
)
}}
</div>
<div
class=
"item-num"
>
{{
item
.
underReviewNum
||
'--'
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"operator-btn"
>
<
div
class=
"left-btn borderRight"
@
click=
"btnClick(item)"
>
更新模板
</div
>
<
!--
<div
class=
"left-btn borderRight"
@
click=
"btnClick(item)"
>
更新模板
</div>
--
>
<div
class=
"left-btn"
@
click=
"btnClick(item)"
>
资产登记
</div>
</div>
</div>
...
...
@@ -433,32 +445,37 @@ const btnClick = (btn) => {
.operator-btn
{
display
:
flex
;
justify-content
:
space-between
;
//
justify-content
:
space-between
;
justify-content
:
center
;
align-items
:
center
;
box-shadow
:
0
0
0
1px
#d9d9d9
;
position
:
relative
;
&::after
{
content
:
''
;
width
:
0
;
height
:
100%
;
border-left
:
1px
solid
#d9d9d9
;
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
>
.left-btn
{
width
:
50%
;
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
cursor
:
pointer
;
//
&::after
{
//
content
:
''
;
//
width
:
0
;
//
height
:
100%
;
//
border-left
:
1px
solid
#d9d9d9
;
//
position
:
absolute
;
//
left
:
50%
;
//
transform
:
translateX
(
-50%
);
//
}
//
>
.left-btn
{
//
width
:
50%
;
//
height
:
40px
;
//
line-height
:
40px
;
//
text-align
:
center
;
//
cursor
:
pointer
;
&:hover
{
color
:
#4fa1a4
;
}
}
//
}
}
}
}
...
...
src/views/data_product/productListingDetail.vue
View file @
40c0e57
...
...
@@ -13,7 +13,7 @@ import useUserStore from "@/store/modules/user";
import
useDataAssetStore
from
"@/store/modules/dataAsset"
;
import
{
changeNum
}
from
'@/utils/common'
;
import
{
onUploadFilePreview
,
onUploadFileDownload
}
from
'@/api/modules/common'
;
import
{
getAreaData
,
getServiceTenants
}
from
"@/api/modules/queryService"
;
import
{
getAreaData
,
getServiceTenants
,
getSingleList
}
from
"@/api/modules/queryService"
;
import
{
getApproveList
,
getTenantApprove
,
registerApproveAllow
,
registerApproveBackup
,
getParamsList
,
getServiceDetail
}
from
"@/api/modules/dataAsset"
;
import
{
getProductList
,
getAddedProductList
,
getListingDetail
,
listingSave
,
listingUpdate
,
listingSavePortal
,
getParamsDataList
}
from
"@/api/modules/dataProduct"
;
import
{
getMatchDetail
}
from
"@/api/modules/dataFinance"
;
...
...
@@ -365,8 +365,8 @@ const formInfo = ref({
// required: true,
// },
{
label
:
"
上架交易
所"
,
type
:
"
selec
t"
,
label
:
"
登记数交
所"
,
type
:
"
inputinpu
t"
,
placeholder
:
"请选择"
,
field
:
"exchangeGuids"
,
default
:
[],
...
...
@@ -418,6 +418,10 @@ const formInfo = ref({
limit
:
1
,
block
:
false
,
required
:
false
,
col
:
'mr8'
,
style
:
{
width
:
'calc(33.33% - 20px)!important'
},
},
{
label
:
'登记证'
,
...
...
@@ -425,7 +429,7 @@ const formInfo = ref({
accept
:
'.jpg, .png, .jpeg '
,
type
:
'upload-file'
,
placeholder
:
'请选择'
,
field
:
'regist
erImg
'
,
field
:
'regist
rationCertificate
'
,
default
:
[],
limit
:
1
,
block
:
false
,
...
...
@@ -459,8 +463,12 @@ const formInfo = ref({
filterable
:
true
,
clearable
:
true
,
disabled
:
false
,
required
:
true
,
visible
:
true
required
:
false
,
visible
:
true
,
col
:
'mr8'
,
style
:
{
width
:
'calc(33.33% - 20px)!important'
},
},
{
label
:
'价值评估报告'
,
...
...
@@ -489,7 +497,7 @@ const formInfo = ref({
filterable
:
true
,
clearable
:
true
,
disabled
:
false
,
required
:
tru
e
,
required
:
fals
e
,
visible
:
true
},
{
...
...
@@ -1124,10 +1132,12 @@ onActivated(() => {
})
const
deploymentId
=
ref
(
''
);
const
qualityEvaluationData
=
ref
<
any
>
(
''
);
const
costAssessmentData
=
ref
<
any
>
(
''
);
onBeforeMount
(()
=>
{
if
(
route
.
query
.
type
==
'add'
&&
!
route
.
query
.
type1
)
{
formInfo
.
value
.
items
.
forEach
(
item
=>
{
if
(
item
.
field
==
'damCode'
||
item
.
field
==
'exchangeGuids'
||
item
.
field
==
'regist
erImg
'
||
item
.
field
==
'qualityReport'
||
item
.
field
==
'qualityOrg'
||
item
.
field
==
'valueReport'
||
item
.
field
==
'valueOrg'
||
item
.
field
==
'commitment'
||
item
.
field
==
'authorization'
||
item
.
field
==
'productDetail'
)
{
if
(
item
.
field
==
'damCode'
||
item
.
field
==
'exchangeGuids'
||
item
.
field
==
'regist
rationCertificate
'
||
item
.
field
==
'qualityReport'
||
item
.
field
==
'qualityOrg'
||
item
.
field
==
'valueReport'
||
item
.
field
==
'valueOrg'
||
item
.
field
==
'commitment'
||
item
.
field
==
'authorization'
||
item
.
field
==
'productDetail'
)
{
item
.
visible
=
false
;
}
})
...
...
@@ -1213,6 +1223,26 @@ onBeforeMount(() => {
ElMessage
.
error
(
res
.
msg
);
}
})
// 获取质量评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12505"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
qualityEvaluationData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'qualityOrg'
);
item
&&
(
item
.
options
=
qualityEvaluationData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
// 获取价值评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12504"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
costAssessmentData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'valueOrg'
);
item
&&
(
item
.
options
=
costAssessmentData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
})
</
script
>
...
...
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