Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df14012a
authored
Feb 21, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
42ac445d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
src/components/menu.vue
src/components/menu.vue
View file @
df14012a
...
...
@@ -241,7 +241,7 @@
</el-table>
<div
class=
"row verCenter bothSide"
>
<div
style=
"margin-left: 13px;"
>
<el-checkbox
v-model=
"checked"
@
change=
"selectAll
"
></el-checkbox>
<el-checkbox
@
change=
"selectAll"
v-model=
"checkAll"
:indeterminate=
"isIndeterminate
"
></el-checkbox>
<el-button
type=
"primary"
@
click=
"getNewsStatus(0)"
style=
"margin-left: 10px;"
>
未读
</el-button>
<el-button
type=
"primary"
@
click=
"getNewsStatus(1)"
>
已读
</el-button>
</div>
...
...
@@ -293,7 +293,6 @@ export default {
return
{
supplier_id
:
Number
(
localStorage
.
getItem
(
'supplier_id'
))
||
0
,
seconds
:
10
,
checked
:
false
,
activeName
:
"all"
,
userinfo
:
{},
collapse
:
false
,
...
...
@@ -301,6 +300,8 @@ export default {
tabSure
:
""
,
tabs
:
""
,
width
:
""
,
isIndeterminate
:
false
,
//对el-checkbox控制不完整的全选状态
checkAll
:
false
,
//标记是否全选
dialogVisible
:
false
,
//改密码
dialogNewsVisible
:
false
,
//消息通知
dialogNoticeVisible
:
false
,
//系统公告
...
...
@@ -522,11 +523,13 @@ export default {
/**
* 全选
*/
selectAll
(
val
)
{
const
row
=
this
.
$refs
.
table
.
data
row
.
forEach
(
row
=>
{
this
.
$refs
.
table
.
toggleAllSelection
(
row
)
})
selectAll
()
{
if
(
this
.
$refs
.
table
.
selection
.
length
<
this
.
tableData
.
length
)
{
this
.
checkAll
=
true
;
}
else
{
this
.
checkAll
=
false
;
}
this
.
$refs
.
table
.
toggleAllSelection
();
},
/**
* 获取tab的数量
...
...
@@ -664,7 +667,7 @@ export default {
this
.
msg_category_id
=
9
;
}
this
.
page
=
1
;
this
.
msg_status
=
''
;
this
.
msg_status
=
''
;
this
.
getNotReadCount
();
this
.
getNews
();
},
...
...
@@ -674,6 +677,15 @@ export default {
*/
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
if
(
val
.
length
<
this
.
tableData
.
length
&&
val
.
length
>
0
)
{
this
.
isIndeterminate
=
true
;
}
else
if
(
val
.
length
==
this
.
tableData
.
length
)
{
this
.
isIndeterminate
=
false
;
this
.
checkAll
=
true
;
}
else
if
(
val
.
length
==
0
)
{
this
.
isIndeterminate
=
false
;
this
.
checkAll
=
false
;
}
},
/**
* 分页条数切换
...
...
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