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
c22c0771
authored
2025-01-15 11:25:38 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据资产登记bug修改
1 parent
d6e60d1a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
54 additions
and
93 deletions
.env.development
.env.product
src/api/modules/queryService.ts
src/views/data_asset/registerDetail.vue
src/views/data_asset/registerManagemant.vue
src/views/data_asset/registerStart.vue
vite.config.ts
.env.development
View file @
c22c077
...
...
@@ -79,6 +79,9 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service
#人员服务
VITE_APP_PERSONAL_URL = 'ms-daop-personel-service'
#流通平台地址
VITE_APP_CIRCULATION = http://192.168.6.20:18052/
# 是否在打包时生成 sourcemap
VITE_BUILD_SOURCEMAP = false
# 是否在打包时开启压缩,支持 gzip 和 brotli
...
...
.env.product
View file @
c22c077
...
...
@@ -114,6 +114,10 @@ VITE_API_MESSAGE = ms-swzl-message-notification-service
#企业信息接口
VITE_APP_PERSONAL_URL = ms-daop-personel-service
#流通平台接口地址
VITE_APP_CIRCULATION = http://192.168.6.20:18052/
# 是否在打包时生成 sourcemap
VITE_BUILD_SOURCEMAP = false
# 是否在打包时开启压缩,支持 gzip 和 brotli
...
...
src/api/modules/queryService.ts
View file @
c22c077
...
...
@@ -82,6 +82,13 @@ export const getProduct = (params) => request({
method: 'get',
params
})
// 查看平台会员信息
export const getTenantInfo = (params) => request({
// url: `
$
{
import
.
meta
.
env
.
VITE_APP_PERSONAL_URL
}
/tenant/g
etByGuid
/
$
{
params
}
`,
url: `
http
:
//localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
method
:
'get'
,
params
})
// 查看平台会员详情
export
const
getTenantDetailInfo
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PERSONAL_URL
}
/tenant/getByGuid/
${
params
}
`
,
...
...
src/views/data_asset/registerDetail.vue
View file @
c22c077
...
...
@@ -25,7 +25,8 @@ import {
}
from
"@/api/modules/dataAsset"
;
import
{
getTenantDetailInfo
,
getImageContent
getImageContent
,
getTenantInfo
}
from
"@/api/modules/queryService"
;
import
{
passFlowData
,
rejectFlowData
,
revokeFlowData
}
from
"@/api/modules/workFlowService"
;
import
useDataAssetStore
from
"@/store/modules/dataAsset"
;
...
...
@@ -402,7 +403,7 @@ const tenantDetail: any = ref({});
/** 获取当前登录会员,服务商,企业等详情。 */
const
getTenantDetail
=
()
=>
{
getTenant
DetailInfo
(
userData
.
tenantGuid
).
then
((
res
:
any
)
=>
{
getTenant
Info
({
tenantName
:
userData
.
tenantName
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
??
{};
tenantDetail
.
value
=
data
;
...
...
@@ -1603,7 +1604,7 @@ const handleClickDamCatalogDetail = () => {
<
/div
>
<
div
class
=
"list_item"
>
<
span
class
=
"item_label"
>
统一社会信用代码
:
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
usci
??
"--"
}}
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
socialCreditCode
??
"--"
}}
<
/span
>
<
/div
>
<
div
class
=
"list_item"
>
<
span
class
=
"item_label"
>
是否列入失信
:
<
/span
>
...
...
@@ -1615,15 +1616,15 @@ const handleClickDamCatalogDetail = () => {
<
/div
>
<
div
class
=
"list_item"
>
<
span
class
=
"item_label"
>
注册日期
:
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
regist
er
Date
??
"--"
}}
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
regist
ration
Date
??
"--"
}}
<
/span
>
<
/div
>
<
div
class
=
"list_item"
>
<
span
class
=
"item_label"
>
营业开始日期
:
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
trad
eStartDate
??
"--"
}}
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
businessLicens
eStartDate
??
"--"
}}
<
/span
>
<
/div
>
<
div
class
=
"list_item"
>
<
span
class
=
"item_label"
>
营业结束日期
:
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
trad
eEndDate
??
"--"
}}
<
/span
>
<
span
class
=
"item_value"
>
{{
tenantDetail
.
businessLicens
eEndDate
??
"--"
}}
<
/span
>
<
/div
>
<
div
class
=
"list_item is_block"
>
<
span
class
=
"item_label"
>
单位注册地址
:
<
/span
>
...
...
src/views/data_asset/registerManagemant.vue
View file @
c22c077
...
...
@@ -208,6 +208,7 @@ const currTableData: any = ref({});
const
btnClick
=
(
btn
)
=>
{
const
type
=
btn
.
value
;
if
(
type
==
'create'
)
{
localStorage
.
setItem
(
'isRestart'
,
''
);
router
.
push
({
name
:
'registerStart'
,
query
:
{
exchangeGuid
:
btn
.
exchangeGuid
,
type
}
...
...
@@ -277,20 +278,6 @@ const tableBtnClick = (scope, btn) => {
}
};
const
handleDataClick
=
(
item
)
=>
{
if
(
item
.
approveState
===
'N'
)
{
router
.
push
({
name
:
'registerStart'
,
query
:
{
guid
:
item
.
guid
}
});
}
else
{
router
.
push
({
name
:
'registerInfoDetail'
,
query
:
{
guid
:
item
.
guid
,
type
:
'asset'
,
daTenantGuid
:
item
.
tenantGuid
}
});
}
}
const
delTableOpen
=
(
msg
,
type
,
isBatch
:
boolean
=
false
)
=>
{
ElMessageBox
.
confirm
(
msg
,
"提示"
,
{
confirmButtonText
:
"确定"
,
...
...
@@ -535,10 +522,6 @@ const rejectDialogBtnClick = (btn, info) => {
}
};
const
createBtnVisible
=
computed
(()
=>
{
return
isCompanyPlatform
||
(
userStore
.
hasPermission
(
'数据资产'
,
path
,
'新建'
))
})
</
script
>
<
template
>
...
...
@@ -574,51 +557,8 @@ const createBtnVisible = computed(() => {
</div>
</div>
</div>
<div
class=
"table_panel_wrap"
:style=
"
{ height: createBtnVisible ? 'calc(100% - 89px)' : 'calc(100% - 40px)' }">
<div
v-if=
"activeListType === 'card'"
class=
"data-content"
v-loading=
"listDataLoading"
>
<div
class=
"card-content"
v-for=
"item in listData"
:key=
"item.guid"
@
click=
"handleDataClick(item)"
>
<div
class=
"title-row"
>
<div
class=
"title"
>
<ellipsis-tooltip
:content=
"item.daName"
class-name=
"w100f"
:refName=
"'tooltipOver' + item.guid"
></ellipsis-tooltip>
</div>
<el-tag
:type=
"(tagType(item, 'approveState') as any)"
>
{{
tagMethod
(
item
,
'approveState'
)
}}
</el-tag>
</div>
<div
v-if=
"!isCompanyPlatform"
class=
"desc"
>
{{
item
.
tenantName
??
'深圳传世般若有限公司'
}}
</div>
<div
class=
"desc"
>
{{
item
.
updateTime
}}
</div>
<div
class=
"type-btn"
>
<template
v-if=
"item.ownIndustryName?.length"
>
<div
class=
"type-items"
>
<div
v-for=
"(info) in item.ownIndustryName"
class=
"type"
>
{{
info
}}
</div>
</div>
</
template
>
<
template
v-else
>
<div
class=
"type-items"
></div>
</
template
>
<el-popover
v-model=
"cardBtnVisible"
placement=
"bottom"
width=
"96"
trigger=
"click"
popper-class=
"tree-item-edit-menu"
:show-arrow=
"false"
:hide-after=
"0"
>
<
template
#
reference
>
<el-icon
class=
"list-more"
color=
"#666"
v-show=
"getTableBtns(item, false)?.length > 0"
@
click
.
stop=
"cardBtnVisible = true"
>
<MoreFilled
/>
</el-icon>
</
template
>
<div
class=
"levitation-ul"
>
<span
class=
"levitation-li"
v-for=
"btn in getTableBtns(item, false)"
@
click=
"tableBtnClick({ row: item }, btn)"
>
{{
btn.label }}
</span>
</div>
</el-popover>
</div>
</div>
<div
v-if=
"!listData.length"
class=
"card-noData"
>
<img
src=
"../../assets/images/no-data.png"
:style=
"{ width: '96px', height: '96px' }"
/>
<span>
暂无数据资产
</span>
</div>
</div>
<Table
v-else
:tableInfo=
"tableInfo"
@
tableBtnClick=
"tableBtnClick"
/>
<div
class=
"table_panel_wrap"
>
<Table
:tableInfo=
"tableInfo"
@
tableBtnClick=
"tableBtnClick"
/>
<PageNav
:class=
"[pageInfo.type]"
:pageInfo=
"pageInfo"
@
pageChange=
"pageChange"
/>
</div>
</div>
...
...
src/views/data_asset/registerStart.vue
View file @
c22c077
...
...
@@ -11,7 +11,7 @@ import { ContentWrap } from '@/components/ContentWrap';
import
useUserStore
from
"@/store/modules/user"
;
import
{
getAreaData
,
getTenant
Detail
Info
,
getTenantInfo
,
getServiceTenants
,
getTenantAttach
,
getSingleList
...
...
@@ -47,7 +47,7 @@ const guid = route.query.guid;
const
fullPath
=
route
.
fullPath
;
const
editType
=
route
.
query
.
type
;
const
exGuid
=
route
.
query
.
exchangeGuid
;
const
restart
=
localStorage
.
getItem
(
'isRestart'
);
const
restart
=
ref
(
false
);
/** 资产目录列表 */
const
registerCatalogList
:
any
=
ref
([]);
...
...
@@ -166,14 +166,14 @@ const tenantDetail: any = ref({});
/** 获取当前登录会员,服务商,企业等详情。 */
const
getTenantDetail
=
()
=>
{
getTenant
DetailInfo
(
userData
.
tenantGuid
).
then
((
res
:
any
)
=>
{
getTenant
Info
({
tenantName
:
userData
.
tenantName
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
??
{};
tenantDetail
.
value
=
data
;
propertyFormItems
.
value
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
field
==
'address'
||
item
.
field
==
'
usci'
||
item
.
field
==
'registerDate'
||
item
.
field
==
'tradeStartDate'
||
item
.
field
==
'trad
eEndDate'
)
{
//在会员详情处获取。
if
(
item
.
field
==
'address'
||
item
.
field
==
'
socialCreditCode'
||
item
.
field
==
'registrationDate'
||
item
.
field
==
'businessLicenseStartDate'
||
item
.
field
==
'businessLicens
eEndDate'
)
{
//在会员详情处获取。
item
.
default
=
tenantDetail
.
value
[
item
.
field
];
}
else
if
(
item
.
field
==
'businessLicense'
)
{
}
else
if
(
item
.
field
==
'businessLicense
Json
'
)
{
item
.
default
=
tenantDetail
.
value
[
item
.
field
]
||
[];
if
(
!
item
.
default
.
length
)
{
item
.
visible
=
false
;
...
...
@@ -327,9 +327,9 @@ const setPropertyFormItemsValue = (info) => {
propertyFormItems
.
value
[
index
+
1
].
visible
=
false
;
propertyFormItems
.
value
[
index
+
2
].
visible
=
false
;
}
}
else
if
(
item
.
field
==
'address'
||
item
.
field
==
'
usci'
||
item
.
field
==
'registerDate'
||
item
.
field
==
'tradeStartDate'
||
item
.
field
==
'trad
eEndDate'
)
{
//在会员详情处获取。
}
else
if
(
item
.
field
==
'address'
||
item
.
field
==
'
socialCreditCode'
||
item
.
field
==
'registrationDate'
||
item
.
field
==
'businessLicenseStartDate'
||
item
.
field
==
'businessLicens
eEndDate'
)
{
//在会员详情处获取。
item
.
default
=
tenantDetail
.
value
[
item
.
field
];
}
else
if
(
item
.
field
==
'businessLicense'
)
{
}
else
if
(
item
.
field
==
'businessLicense
Json
'
)
{
item
.
default
=
tenantDetail
.
value
[
item
.
field
]
||
[];
if
(
!
item
.
default
.
length
)
{
item
.
visible
=
false
;
...
...
@@ -391,6 +391,7 @@ onActivated(() => {
})
onBeforeMount
(()
=>
{
restart
.
value
=
localStorage
.
getItem
(
'isRestart'
)?
true
:
false
;
if
(
guid
)
{
fullscreenLoading
.
value
=
true
;
getRegiaterDetail
({
guid
:
guid
}).
then
((
res
:
any
)
=>
{
...
...
@@ -955,7 +956,7 @@ const baseFormItems: any = ref([
block
:
true
,
field
:
"dataSensitivityLevel"
,
col
:
'other-group-flex'
,
default
:
[
1
],
default
:
[],
children
:
[
{
label
:
"公开数据"
,
...
...
@@ -1041,7 +1042,7 @@ const baseFormItems: any = ref([
type
:
"checkbox-group-row"
,
placeholder
:
""
,
field
:
"dataGetWay"
,
default
:
[
1
],
default
:
[],
col
:
'other-group-flex'
,
block
:
true
,
children
:
[
...
...
@@ -1093,7 +1094,7 @@ const baseFormItems: any = ref([
type
:
"checkbox-group-row"
,
placeholder
:
""
,
field
:
"updateFrequency"
,
default
:
[
3
],
default
:
[],
block
:
true
,
col
:
'other-group-flex'
,
children
:
[
...
...
@@ -1143,7 +1144,7 @@ const baseFormItems: any = ref([
placeholder
:
""
,
col
:
'other-group-flex'
,
field
:
"ownIndustry"
,
default
:
[
2
],
default
:
[],
children
:
[
{
label
:
"能源"
,
...
...
@@ -1181,7 +1182,7 @@ const baseFormItems: any = ref([
placeholder
:
""
,
col
:
'other-group-flex'
,
field
:
"bizOwn"
,
default
:
[
1
],
default
:
[],
children
:
[
{
label
:
"生产类业务数据"
,
...
...
@@ -1401,7 +1402,7 @@ const propertyFormItems: any = ref([
type
:
"checkbox-group-row"
,
placeholder
:
""
,
field
:
"propertyType"
,
default
:
[
3
],
default
:
[],
children
:
[
{
label
:
"数据资源持有权"
,
...
...
@@ -1424,7 +1425,7 @@ const propertyFormItems: any = ref([
placeholder
:
""
,
field
:
"rightsContent"
,
col
:
'col2'
,
default
:
[
5
],
default
:
[],
children
:
[
{
label
:
"可转让"
,
...
...
@@ -1600,10 +1601,10 @@ const propertyFormItems: any = ref([
label
:
'统一社会信用代码'
,
type
:
'input'
,
placeholder
:
'请输入'
,
field
:
'
usci
'
,
field
:
'
socialCreditCode
'
,
col
:
'mr8'
,
disabled
:
true
,
default
:
tenantDetail
.
value
.
usci
??
""
,
default
:
tenantDetail
.
value
.
socialCreditCode
??
""
,
required
:
false
},
{
...
...
@@ -1648,9 +1649,9 @@ const propertyFormItems: any = ref([
{
label
:
"注册日期"
,
type
:
"date"
,
field
:
"regist
er
Date"
,
field
:
"regist
ration
Date"
,
col
:
'mr8'
,
default
:
tenantDetail
.
value
.
regist
er
Date
??
""
,
default
:
tenantDetail
.
value
.
regist
ration
Date
??
""
,
placeholder
:
"请选择"
,
clearable
:
true
,
disabled
:
true
,
...
...
@@ -1660,9 +1661,9 @@ const propertyFormItems: any = ref([
label
:
'营业开始日期'
,
type
:
'date'
,
placeholder
:
'请输入'
,
field
:
'
trad
eStartDate'
,
field
:
'
businessLicens
eStartDate'
,
col
:
'mr8'
,
default
:
tenantDetail
.
value
.
trad
eStartDate
??
""
,
default
:
tenantDetail
.
value
.
businessLicens
eStartDate
??
""
,
unlink
:
true
,
disabled
:
true
,
clearable
:
true
,
...
...
@@ -1672,8 +1673,8 @@ const propertyFormItems: any = ref([
label
:
'营业结束日期'
,
type
:
'date'
,
placeholder
:
'无固定期限'
,
field
:
'
trad
eEndDate'
,
default
:
tenantDetail
.
value
.
trad
eEndDate
??
""
,
field
:
'
businessLicens
eEndDate'
,
default
:
tenantDetail
.
value
.
businessLicens
eEndDate
??
""
,
unlink
:
true
,
col
:
'no-margin-r'
,
disabled
:
true
,
...
...
@@ -1688,7 +1689,7 @@ const propertyFormItems: any = ref([
templateUrl
:
null
,
default
:
[],
visible
:
false
,
field
:
'businessLicense'
field
:
'businessLicense
Json
'
},
]);
...
...
@@ -2015,7 +2016,7 @@ const save = () => {
fullscreenLoading
.
value
=
true
;
if
(
draftDetailInfo
.
value
.
guid
)
{
params
.
guid
=
draftDetailInfo
.
value
.
guid
;
params
.
isRestart
=
restart
?
true
:
fals
e
;
params
.
isRestart
=
restart
.
valu
e
;
registerUpdate
(
params
).
then
((
res
:
any
)
=>
{
fullscreenLoading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
vite.config.ts
View file @
c22c077
...
...
@@ -40,6 +40,11 @@ export default ({ mode, command }) => {
changeOrigin
:
env
.
VITE_OPEN_PROXY
===
'true'
,
rewrite
:
path
=>
path
.
replace
(
/
\/
portal/
,
''
),
},
'/circulation'
:{
target
:
env
.
VITE_APP_CIRCULATION
,
changeOrigin
:
env
.
VITE_OPEN_PROXY
===
'true'
,
rewrite
:
path
=>
path
.
replace
(
/
\/
circulation/
,
''
),
},
'/obs'
:
{
target
:
'//csbr-daop.obs.cn-north-1.myhuaweicloud.com:443'
,
changeOrigin
:
env
.
VITE_OPEN_PROXY
===
'true'
,
...
...
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