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
27f17df7
Commit
27f17df7
authored
Dec 06, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改公共文件
parent
52c99836
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
12 deletions
+51
-12
index.vue
src/views/mallResourceDevelopment/file/commonFile/index.vue
+51
-12
No files found.
src/views/mallResourceDevelopment/file/commonFile/index.vue
View file @
27f17df7
...
...
@@ -12,7 +12,7 @@
<!--
<div
class=
"path"
>
资源编目
</div>
-->
</div>
<div
class=
"buttonGroup"
>
<Segmented
v-model:value=
"value"
:options=
"data"
>
<Segmented
@
change=
"segmentedChange"
v-model:value=
"value"
:options=
"data"
>
<template
#
label=
"
{ payload, value: segmentValue }">
<div
class=
"icon-container"
>
<Icon
...
...
@@ -23,8 +23,12 @@
</div>
</
template
>
</Segmented>
<a-button
type=
"primary"
@
click=
"handleBulkDownload"
>
批量下载
</a-button>
<a-button
type=
"primary"
@
click=
"handleBatchPush"
>
批量推送
</a-button>
<a-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"handleBulkDownload"
>
批量下载
</a-button
>
<a-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"pushNotifications(selectedCard)"
>
批量推送
</a-button
>
</div>
</div>
</template>
...
...
@@ -108,11 +112,17 @@
<span
v-if=
"item.isShare"
>
有条件共享
</span>
<span
v-else
>
无条件共享
</span>
<div>
<a-button
style=
"padding: 0; border: none; box-shadow: none"
>
<a-button
style=
"padding: 0; border: none; box-shadow: none"
@
click=
"information(item)"
>
<Icon
icon=
"icon-park-outline:eyes"
/>
{{
item
.
view
}}
</a-button
>
<Divider
type=
"vertical"
/>
<a-button
style=
"padding: 0; border: none; box-shadow: none"
>
<a-button
style=
"padding: 0; border: none; box-shadow: none"
@
click=
"pushNotifications(item)"
>
<Icon
icon=
"icon-park-outline:hand-up"
/>
{{
item
.
edit
}}
</a-button
>
</div>
...
...
@@ -137,6 +147,8 @@
show-size-changer
show-quick-jumper
/>
<ApplyForPushNotificationsModal
@
register=
"registerApplyForPushNotificationsModal"
/>
<EditModal
@
register=
"registerEditModal"
/>
</PageWrapper>
</div>
</template>
...
...
@@ -164,6 +176,9 @@
import
{
useRouter
}
from
'vue-router'
;
import
GroupTree
from
'./GroupTree.vue'
;
import
{
Columns
}
from
'./commonDataSet.data'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
ApplyForPushNotificationsModal
from
'@/views/mallResourceDevelopment/dataSet/commonDataSet/applyForPushNotificationsModal.vue'
;
import
EditModal
from
'@/views/mallResourceDevelopment/dataSet/commonDataSet/editModal.vue'
;
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRouter
();
...
...
@@ -174,7 +189,7 @@
const
selectedCard
=
reactive
([]
as
any
[]);
const
cardListData
=
ref
([]);
const
workSpaceName
=
ref
(
'党建建设'
);
const
isDisabled
=
ref
();
const
data
=
ref
([
{
value
:
'cardList'
,
...
...
@@ -190,6 +205,12 @@
},
]);
const
[
registerApplyForPushNotificationsModal
,
{
openModal
:
openApplyForPushNotificationsModal
},
]
=
useModal
();
const
[
registerEditModal
,
{
openModal
:
openEditModal
}]
=
useModal
();
const
[
registerTable
,
{
reload
,
getRowSelection
}]
=
useTable
({
api
:
async
()
=>
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
...
...
@@ -225,7 +246,10 @@
return
{
...
response
,
data
:
cardListData
.
value
};
},
columns
:
Columns
,
rowSelection
:
true
,
rowSelection
:
{
type
:
'checkbox'
,
onChange
:
onSelectionChange
,
},
showTableSetting
:
false
,
showIndexColumn
:
false
,
pagination
:
false
,
...
...
@@ -243,6 +267,23 @@
}
}
function
segmentedChange
()
{
isDisabled
.
value
=
true
;
}
function
isCardSelected
(
item
:
any
)
{
isDisabled
.
value
=
selectedCard
.
length
<=
0
;
return
selectedCard
.
includes
(
item
);
}
function
onSelectionChange
()
{
isDisabled
.
value
=
getRowSelection
().
selectedRowKeys
<=
0
;
}
/**批量推送推送*/
function
pushNotifications
(
record
)
{
openApplyForPushNotificationsModal
(
true
,
record
);
}
function
handleNewModal
(
scene
:
string
)
{}
function
handleSelectCard
(
item
:
any
)
{
...
...
@@ -262,13 +303,11 @@
}
}
function
isCardSelected
(
item
:
any
)
{
return
selectedCard
.
includes
(
item
);
}
function
handleBulkDownload
()
{}
function
handleBatchPush
()
{}
function
information
(
item
)
{
openEditModal
(
true
,
item
);
}
function
onSearch
()
{
let
filteredList
=
cardList
.
filter
((
item
)
=>
{
...
...
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