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
d7f62632
authored
2025-12-10 18:22:00 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决产品新增编辑问题
1 parent
c001699e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
15 deletions
src/store/modules/dataRegisterCatalog.ts
src/views/data_asset/registerCatalogCreate.vue
src/views/data_asset/registerCatalogDetail.vue
src/views/data_asset/registerCatalogManagement.vue
src/views/data_smart_contract/actionLogManage.vue
src/store/modules/dataRegisterCatalog.ts
0 → 100644
View file @
d7f6263
const
useDataRegisterCatalogStore
=
defineStore
(
'isRefresh'
,
()
=>
{
const
isRefresh
=
ref
<
boolean
>
(
false
)
function
set
(
v
:
boolean
)
{
isRefresh
.
value
=
v
;
}
return
{
isRefresh
,
set
,
}
},
)
export
default
useDataRegisterCatalogStore
\ No newline at end of file
src/views/data_asset/registerCatalogCreate.vue
View file @
d7f6263
...
...
@@ -30,7 +30,7 @@ import {
import
{
ContentWrap
}
from
'@/components/ContentWrap'
;
import
importTableField
from
"./importTableField.vue"
;
import
{
useValidator
}
from
'@/hooks/useValidator'
;
import
useData
AssetStore
from
"@/store/modules/dataAsset
"
;
import
useData
RegisterCatalogStore
from
"@/store/modules/dataRegisterCatalog
"
;
import
{
handleContentWrapView
,
scrollLastRowToView
,
changeNum
}
from
'@/utils/common'
;
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
{
CirclePlus
}
from
'@element-plus/icons-vue'
;
...
...
@@ -38,7 +38,7 @@ import { CirclePlus } from '@element-plus/icons-vue';
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
{
required
,
checkExistName
}
=
useValidator
();
const
userStore
=
useUserStore
();
const
assetStore
=
useDataAsset
Store
();
const
registerStore
=
useDataRegisterCatalog
Store
();
const
router
=
useRouter
();
const
route
=
useRoute
();
const
fullPath
=
route
.
fullPath
;
...
...
@@ -1090,8 +1090,8 @@ const save = () => {
// name: 'registerCatalogManagement'
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog'
:
'/data-asset/register-catalog'
});
assetStore
.
setDamCatalogRefresh
(
true
);
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
registerStore
.
set
(
true
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -1117,8 +1117,8 @@ const save = () => {
// name: 'registerCatalogManagement'
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog'
:
'/data-asset/register-catalog'
});
assetStore
.
setDamCatalogRefresh
(
true
);
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
registerStore
.
set
(
true
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
...
...
src/views/data_asset/registerCatalogDetail.vue
View file @
d7f6263
...
...
@@ -27,7 +27,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import
{
passFlowData
,
rejectFlowData
,
revokeFlowData
,
isMyFirstNode
}
from
"@/api/modules/workFlowService"
;
import
{
onUploadFilePreview
,
onUploadFileDownload
}
from
'@/api/modules/common'
;
import
{
CircleCloseFilled
}
from
'@element-plus/icons-vue'
import
useData
AssetStore
from
"@/store/modules/dataAsset
"
;
import
useData
RegisterCatalogStore
from
"@/store/modules/dataRegisterCatalog
"
;
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
{
downloadTableData
,
...
...
@@ -40,7 +40,7 @@ const router = useRouter();
const
route
=
useRoute
();
const
userStore
=
useUserStore
();
const
userData
=
JSON
.
parse
(
userStore
.
userData
)
const
assetStore
=
useDataAsset
Store
();
const
registerStore
=
useDataRegisterCatalog
Store
();
const
fullPath
=
route
.
fullPath
;
const
catalogGuid
=
route
.
query
.
guid
;
const
evaGuid
=
route
.
query
.
evaGuid
;
...
...
@@ -378,7 +378,7 @@ const strategyDetail = ref([]);
const
strategyContentLoading
=
ref
(
false
);
onBeforeMount
(()
=>
{
if
(
!
assetStore
.
isRefreshDamCatalog
)
{
if
(
!
registerStore
.
isRefresh
)
{
getDetailInfo
();
}
if
(
route
.
query
.
useGuid
)
{
...
...
@@ -403,9 +403,9 @@ onActivated(() => {
tab
.
meta
.
title
=
foundMode
.
value
==
'download'
?
`下载详情-
${
route
.
query
.
name
}
`
:
((
foundMode
.
value
==
'read'
||
foundMode
.
value
==
'readAndDown'
)
?
`查看详情-
${
route
.
query
.
name
}
`
:
`详情-
${
route
.
query
.
name
}
`
);
}
}
if
(
assetStore
.
isRefreshDamCatalog
)
{
if
(
registerStore
.
isRefresh
)
{
getDetailInfo
();
assetStore
.
setDamCatalogRefresh
(
false
);
registerStore
.
set
(
false
);
}
});
...
...
src/views/data_asset/registerCatalogManagement.vue
View file @
d7f6263
...
...
@@ -14,14 +14,14 @@ import {
getDataReceiveContract
}
from
"@/api/modules/dataAsset"
;
import
{
commonPageConfig
}
from
"@/utils/enum"
;
import
useData
AssetStore
from
"@/store/modules/dataAsset
"
;
import
useData
RegisterCatalogStore
from
"@/store/modules/dataRegisterCatalog
"
;
import
useUserStore
from
"@/store/modules/user"
;
import
deliverUploadDialog
from
"./components/deliverUploadDialog.vue"
;
const
userStore
=
useUserStore
();
const
userData
=
JSON
.
parse
(
userStore
.
userData
);
const
assetStore
=
useDataAsset
Store
();
const
registerStore
=
useDataRegisterCatalog
Store
();
const
props
=
defineProps
({
dataSources
:
{
...
...
@@ -271,11 +271,11 @@ const pageChange = (info) => {
};
onActivated
(()
=>
{
if
(
assetStore
.
isRefreshDamCatalog
)
{
if
(
registerStore
.
isRefresh
)
{
//如果是首次加载,则不需要调用
pageInfo
.
value
.
curr
=
1
;
getTableData
();
assetStore
.
setDamCatalogRefresh
(
false
);
registerStore
.
set
(
false
);
}
});
...
...
@@ -376,7 +376,7 @@ const handleClickUploadBtn = (item) => {
const
handleUploadClose
=
(
itemGuid
)
=>
{
deliverUploadVisible
.
value
=
false
if
(
itemGuid
)
{
assetStore
.
setDamCatalogRefresh
(
true
);
registerStore
.
set
(
true
);
router
.
push
({
path
:
props
.
dataSources
==
1
?
'/data-asset/authordata-catalog/register-catalog-detail'
:
'/data-asset/register-catalog/register-catalog-detail'
,
//name: "registerCatalogDetail",
...
...
src/views/data_smart_contract/actionLogManage.vue
View file @
d7f6263
...
...
@@ -67,7 +67,7 @@ const processTableInfo = ref({
{
label
:
"操作时间"
,
field
:
"operatingTime"
,
width
:
170
},
{
label
:
"操作类型"
,
field
:
"operatingType"
,
width
:
110
,
getName
:
(
scope
)
=>
{
let
typeMap
=
{
1
:
'
新增
'
,
1
:
'
提交
'
,
2
:
'修改'
,
3
:
'删除'
}
...
...
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