Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
00060f56
Commit
00060f56
authored
Dec 05, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据要素-数据集-公共数据集,bug修改,按钮调整
parent
7592cbff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
14 deletions
+42
-14
index.vue
...s/mallResourceDevelopment/dataSet/commonDataSet/index.vue
+42
-14
No files found.
src/views/mallResourceDevelopment/dataSet/commonDataSet/index.vue
View file @
00060f56
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"path"
>
资源编目
</div>
<div
class=
"path"
>
资源编目
</div>
</div>
</div>
<div
class=
"buttonGroup"
>
<div
class=
"buttonGroup"
>
<Segmented
v-model:value=
"value"
:options=
"data"
>
<Segmented
@
change=
"segmentedChange"
v-model:value=
"value"
:options=
"data"
>
<template
#
label=
"
{ payload, value: segmentValue }">
<template
#
label=
"
{ payload, value: segmentValue }">
<div
class=
"icon-container"
>
<div
class=
"icon-container"
>
<Icon
<Icon
...
@@ -23,8 +23,12 @@
...
@@ -23,8 +23,12 @@
</div>
</div>
</
template
>
</
template
>
</Segmented>
</Segmented>
<a-button
type=
"primary"
@
click=
"handleBulkDownload"
>
批量下载
</a-button>
<a-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"handleBulkDownload"
<a-button
type=
"primary"
@
click=
"pushNotifications"
>
批量推送
</a-button>
>
批量下载
</a-button
>
<a-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"pushNotifications"
>
批量推送
</a-button
>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -44,6 +48,8 @@
...
@@ -44,6 +48,8 @@
{ label: '有条件共享', value: 'true' },
{ label: '有条件共享', value: 'true' },
{ label: '无条件共享', value: 'false' },
{ label: '无条件共享', value: 'false' },
]"
]"
allowClear
placeholder=
"共享条件"
v-model:value=
"selectValue"
v-model:value=
"selectValue"
style=
"width: 150px; margin-left: 10px"
style=
"width: 150px; margin-left: 10px"
@
change=
"onSearch"
@
change=
"onSearch"
...
@@ -171,9 +177,10 @@
...
@@ -171,9 +177,10 @@
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRouter
();
const
route
=
useRouter
();
const
value
=
ref
(
'cardList'
);
const
value
=
ref
(
'cardList'
);
const
params
=
ref
(
''
);
const
params
=
ref
(
undefined
);
const
selectValue
=
ref
(
''
);
const
selectValue
=
ref
(
undefined
);
const
sortOrder
=
ref
(
'latest'
);
const
sortOrder
=
ref
(
'latest'
);
const
isDisabled
=
ref
();
const
selectedCard
=
reactive
([]
as
any
[]);
const
selectedCard
=
reactive
([]
as
any
[]);
const
cardListData
=
ref
([]);
const
cardListData
=
ref
([]);
const
workSpaceName
=
ref
(
'党建建设'
);
const
workSpaceName
=
ref
(
'党建建设'
);
...
@@ -196,9 +203,14 @@
...
@@ -196,9 +203,14 @@
const
[
registerTable
,
{
reload
,
getRowSelection
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
getRowSelection
}]
=
useTable
({
api
:
async
()
=>
{
api
:
async
()
=>
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
const
titleMatch
=
item
.
title
.
toLowerCase
().
includes
(
params
.
value
.
toLowerCase
());
const
titleMatch
=
ref
(
true
);
if
(
params
.
value
!==
undefined
)
{
titleMatch
.
value
=
item
.
title
.
includes
(
params
.
value
);
}
const
shareMatch
=
const
shareMatch
=
selectValue
.
value
===
''
?
true
:
item
.
isShare
.
toString
()
===
selectValue
.
value
;
selectValue
.
value
===
''
||
selectValue
.
value
===
undefined
?
true
:
item
.
isShare
.
toString
()
===
selectValue
.
value
;
const
workspaceMatch
=
const
workspaceMatch
=
workSpaceName
.
value
===
''
||
workSpaceName
.
value
===
''
||
workSpaceName
.
value
===
'公共数据集'
||
workSpaceName
.
value
===
'公共数据集'
||
...
@@ -227,7 +239,10 @@
...
@@ -227,7 +239,10 @@
return
{
...
response
};
return
{
...
response
};
},
},
columns
:
Columns
,
columns
:
Columns
,
rowSelection
:
true
,
rowSelection
:
{
type
:
'checkbox'
,
onChange
:
onSelectionChange
,
},
showTableSetting
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
pagination
:
false
,
pagination
:
false
,
...
@@ -253,6 +268,10 @@
...
@@ -253,6 +268,10 @@
}
}
}
}
function
segmentedChange
()
{
isDisabled
.
value
=
true
;
}
function
toggleAllSelection
()
{
function
toggleAllSelection
()
{
if
(
selectedCard
.
length
===
cardListData
.
value
.
length
)
{
if
(
selectedCard
.
length
===
cardListData
.
value
.
length
)
{
selectedCard
.
length
=
0
;
selectedCard
.
length
=
0
;
...
@@ -262,6 +281,14 @@
...
@@ -262,6 +281,14 @@
}
}
}
}
function
isCardSelected
(
item
:
any
)
{
isDisabled
.
value
=
selectedCard
.
length
<=
0
;
return
selectedCard
.
includes
(
item
);
}
function
onSelectionChange
()
{
isDisabled
.
value
=
getRowSelection
().
selectedRowKeys
<=
0
;
}
function
information
(
item
)
{
function
information
(
item
)
{
const
title
=
item
.
title
;
const
title
=
item
.
title
;
if
(
title
===
'党建工作总结'
)
{
if
(
title
===
'党建工作总结'
)
{
...
@@ -296,10 +323,6 @@
...
@@ -296,10 +323,6 @@
}
}
}
}
function
isCardSelected
(
item
:
any
)
{
return
selectedCard
.
includes
(
item
);
}
function
handleBulkDownload
()
{}
function
handleBulkDownload
()
{}
/**批量推送推送*/
/**批量推送推送*/
...
@@ -312,9 +335,14 @@
...
@@ -312,9 +335,14 @@
function
onSearch
()
{
function
onSearch
()
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
const
titleMatch
=
item
.
title
.
toLowerCase
().
includes
(
params
.
value
.
toLowerCase
());
const
titleMatch
=
ref
(
true
);
if
(
params
.
value
!==
undefined
)
{
titleMatch
.
value
=
item
.
title
.
includes
(
params
.
value
);
}
const
shareMatch
=
const
shareMatch
=
selectValue
.
value
===
''
?
true
:
item
.
isShare
.
toString
()
===
selectValue
.
value
;
selectValue
.
value
===
''
||
selectValue
.
value
===
undefined
?
true
:
item
.
isShare
.
toString
()
===
selectValue
.
value
;
const
workspaceMatch
=
const
workspaceMatch
=
workSpaceName
.
value
===
''
||
workSpaceName
.
value
===
''
||
workSpaceName
.
value
===
'公共数据集'
||
workSpaceName
.
value
===
'公共数据集'
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment