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
6dbdc3cb
authored
2025-02-12 12:22:36 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
f95ccf4e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
12 deletions
src/api/modules/dataProduct.ts
src/views/data_product/productListingDetail.vue
src/views/data_transaction/components/Table/index.vue
src/views/data_transaction/entryManagement.vue
src/views/indexNewBigScreen.vue
src/api/modules/dataProduct.ts
View file @
6dbdc3c
...
...
@@ -15,9 +15,8 @@ export const getProductList = (params) => request({
* path: /dam-catalog-table/data-exchange/get-table-select
*/
export
const
getDataExchangeProductList
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/dam-catalog-table/data-exchange/get-table-select`
,
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/dam-catalog-table/data-exchange/get-table-select
?exchangeGuid=
${
params
.
exchangeGuid
}
`
,
method
:
'get'
,
params
})
/** 获取已添加的数据产品列表 */
...
...
src/views/data_product/productListingDetail.vue
View file @
6dbdc3c
...
...
@@ -704,14 +704,16 @@ const getProducts = () => {
}
const
getTableInfo
=
()
=>
{
getDataExchangeProductList
({}).
then
((
res
:
any
)
=>
{
getDataExchangeProductList
({
exchangeGuid
:
route
.
query
.
exchangeGuid
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
let
data
=
res
.
data
||
[];
// 进行去重 去掉data 中在pageLIstInfo.value中已有的数据
data
=
data
.
filter
((
item
:
any
)
=>
{
return
!
pageLIstInfo
.
value
.
find
((
pageItem
:
any
)
=>
pageItem
.
damGuid
==
item
.
damGuid
)
})
//
data = data.filter((item: any) => {
//
return !pageLIstInfo.value.find((pageItem: any) => pageItem.damGuid == item.damGuid)
//
})
formInfo
.
value
.
items
[
0
].
options
=
data
;
}
})
...
...
src/views/data_transaction/components/Table/index.vue
View file @
6dbdc3c
...
...
@@ -40,7 +40,6 @@ const selectRef = ref()
const
columnEdit
=
(
row
)
=>
{
if
(
!
tableInfo
.
value
.
isEdit
)
{
columnInfo
.
value
=
{
...
row
}
emits
(
"columnEdit"
,
{
...
row
})
}
...
...
src/views/data_transaction/entryManagement.vue
View file @
6dbdc3c
...
...
@@ -180,8 +180,12 @@ const toSearch = (val: any, clear: boolean = false) => {
}
else
{
page
.
value
.
daName
=
val
.
daName
;
}
tableRef
.
value
.
columnInfo
=
{}
tableInfo
.
value
.
isEdit
=
false
if
(
tableInfo
.
value
.
isEdit
)
{
tableInfo
.
value
.
isEdit
=
false
tableInfo
.
value
.
currentId
=
"0"
columnInfoReset
()
tableInfo
.
value
.
flag
=
'create'
}
getTableData
();
};
// 查公司
...
...
@@ -240,6 +244,7 @@ const getTableData = () => {
}
const
createOneData
=
()
=>
{
if
(
companyOption
.
value
.
length
>
0
)
{
findTab
(
true
)
columnInfoReset
()
...
...
@@ -247,7 +252,7 @@ const createOneData = () => {
const
currentDate
=
dayjs
().
format
(
'YYYY-MM-DD'
);
tableInfo
.
value
.
flag
=
"create"
//const arr:any = []
tableInfo
.
value
.
data
.
unshift
(
{
const
newData
=
{
guid
:
BASE_ID
,
companyName
:
""
,
daName
:
""
,
...
...
@@ -260,7 +265,9 @@ const createOneData = () => {
companyGuid
:
""
,
registerGuid
:
""
,
damGuid
:
""
})
};
tableInfo
.
value
.
data
=
[
newData
,
...
tableInfo
.
value
.
data
];
console
.
log
(
'新建了嘛'
,
tableInfo
.
value
.
data
,
columnInfo
.
value
)
//tableInfo.value.data = arr
tableInfo
.
value
.
currentId
=
BASE_ID
tableInfo
.
value
.
isEdit
=
true
...
...
src/views/indexNewBigScreen.vue
View file @
6dbdc3c
...
...
@@ -896,7 +896,7 @@ const handleChangeTime = (val) => {
<div
class=
"left-pd"
></div>
<div
class=
"header-title"
>
数据服务资产情况
</div>
</div>
<div
style=
"height: calc(100% -
4
0px);"
>
<div
style=
"height: calc(100% -
8
0px);"
>
<Table
class=
"drak-table"
ref=
"assetTableRef"
v-show=
"!assetTableInfo.loading1"
:tableInfo=
"assetTableInfo"
@
tableBtnClick=
"tableBtnClick"
/>
<el-skeleton
v-show=
"assetTableInfo.loading1"
:rows=
"6"
animated
/>
...
...
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