Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
5739d0e193cc85fe8eef67cbd0be011835531dff
1 parent
b638ac35
文档管理列表模式增加复选框,多选授权
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
View file @
5739d0e
...
...
@@ -103,7 +103,7 @@
</el-row>
<cm-table-page
:columns=
"columns"
:dataList=
"dataList"
@
loaddata=
"getPage"
:showIndex=
"true"
:showBorder=
"false"
:showSelection=
"
false"
:showTools=
"isEditNam
e"
:showBorder=
"false"
:showSelection=
"
true"
:showTools=
"isEditName"
@
selectionChange=
"selectionChang
e"
:showPage=
"false"
:height=
"height - 84"
>
<template
#
default=
"{row,prop,column}"
>
<!--<div class="fileName-div" style="display: flex; align-items: center;" v-if="isEditName && prop == 'fileName'" @click="getFile(row)">
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
View file @
5739d0e
...
...
@@ -888,7 +888,32 @@ export default {
isInput
.
value
=
item
.
id
;
}
// Start 列表模式增加多选框 LSQ 2022/1/12
//表格全选事件
let
selectionChange
=
(
val
)
=>
{
let
tableDataList
=
dataList
.
value
;
tableDataList
.
map
((
v
,
i
)
=>
{
v
.
checked
=
false
;
})
let
selectData
=
val
;
if
(
selectData
.
length
>
0
){
selectData
.
map
((
item
,
index
)
=>
{
tableDataList
.
map
((
v
,
i
)
=>
{
if
(
item
.
id
==
v
.
id
){
v
.
checked
=
true
;
}
})
})
}
else
{
tableDataList
.
map
((
v
,
i
)
=>
{
v
.
checked
=
false
;
})
}
}
//End LSQ 2022/1/12
return
{
selectionChange
,
/* viewEdit,*/
breadcrumbList
,
editFileName
,
...
...
Please
register
or
login
to post a comment