Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ai_web_page_prod
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
ai_web_page_prod
Commits
4bb0c461
Commit
4bb0c461
authored
May 16, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bb6af5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/components/Admin/table.vue
+8
-2
No files found.
src/components/Admin/table.vue
View file @
4bb0c461
...
...
@@ -8,7 +8,11 @@
:loading=
"loading"
>
<template
#
check_all
>
<TCheckbox
class=
"check-all-box"
@
change=
"CheckAll"
></TCheckbox>
<TCheckbox
class=
"check-all-box"
v-model=
"is_check_all"
@
change=
"CheckAll"
></TCheckbox>
</
template
>
<
template
#
checkbox=
"{ row }"
>
<TCheckbox
v-model=
"row.is_check"
class=
"check-all-box"
></TCheckbox>
...
...
@@ -69,6 +73,8 @@ const loading = ref(false);
const
pageNum
=
ref
<
number
>
(
getPage
());
const
pageSize
=
ref
<
number
>
(
10
);
const
total
=
ref
<
number
>
(
0
);
// 是否选择全部
const
is_check_all
=
ref
(
false
);
const
tableList
=
reactive
({
list
:
[],
});
...
...
@@ -82,7 +88,7 @@ const pageChange = (value: number) => {
// 选择全部
const
CheckAll
=
()
=>
{
tableList
.
list
.
forEach
((
item
:
any
)
=>
{
item
.
is_check
=
!
item
.
is_check
;
item
.
is_check
=
is_check_all
.
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