Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
fd8cfe06
Commit
fd8cfe06
authored
Nov 09, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组织管理列表
parent
9c88e63e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
src/components/apass-list.vue
src/components/apass-list.vue
+8
-5
src/components/organization-list/organization-list.vue
src/components/organization-list/organization-list.vue
+5
-5
src/pages/authority/organization/organization.vue
src/pages/authority/organization/organization.vue
+2
-0
No files found.
src/components/apass-list.vue
View file @
fd8cfe06
...
@@ -149,19 +149,21 @@ export default {
...
@@ -149,19 +149,21 @@ export default {
type
:
String
,
type
:
String
,
default
:
()
=>
"
请输入关键字
"
,
default
:
()
=>
"
请输入关键字
"
,
},
},
listSelect
:
{
pageSize
:
{
type
:
Boolean
,
type
:
Number
,
default
:
false
,
default
:
()
=>
10
,
},
pageSizes
:
{
type
:
Array
,
default
:
()
=>
[
10
,
20
,
50
],
},
},
},
},
data
:
()
=>
({
data
:
()
=>
({
showListFilter
:
false
,
showListFilter
:
false
,
filter
:
{},
filter
:
{},
searchValue
:
""
,
searchValue
:
""
,
pageSize
:
10
,
currentPage
:
1
,
currentPage
:
1
,
timer
:
null
,
timer
:
null
,
pageSizes
:
[
10
,
20
,
50
],
selectFilter
:
[],
selectFilter
:
[],
}),
}),
watch
:
{
watch
:
{
...
@@ -241,6 +243,7 @@ export default {
...
@@ -241,6 +243,7 @@ export default {
},
},
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
pageSize
);
this
.
initOtherFilter
();
this
.
initOtherFilter
();
this
.
listAction
();
this
.
listAction
();
},
},
...
...
src/components/organization-list/organization-list.vue
View file @
fd8cfe06
...
@@ -41,16 +41,16 @@ export default {
...
@@ -41,16 +41,16 @@ export default {
this
.
$emit
(
"
delete-action
"
,
item
);
this
.
$emit
(
"
delete-action
"
,
item
);
},
},
pageResize
()
{
pageResize
()
{
let
listWidth
=
this
.
$refs
.
container
.
clientWidth
;
//
let listWidth = this.$refs.container.clientWidth;
this
.
rowNum
=
Math
.
floor
(
listWidth
/
310
);
//
this.rowNum = Math.floor(listWidth / 310);
},
},
},
},
mounted
()
{
mounted
()
{
this
.
pageResize
();
//
this.pageResize();
window
.
addEventListener
(
"
resize
"
,
this
.
pageResize
);
//
window.addEventListener("resize", this.pageResize);
},
},
destroyed
()
{
destroyed
()
{
window
.
removeEventListener
(
"
resize
"
,
this
.
pageResize
);
//
window.removeEventListener("resize", this.pageResize);
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/authority/organization/organization.vue
View file @
fd8cfe06
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<div
class=
"organization_list"
>
<div
class=
"organization_list"
>
<apass-list
<apass-list
@
list-action=
"initDatas"
@
list-action=
"initDatas"
:page-size=
"20"
:page-sizes=
"[20, 50]"
search-placeholder=
"请输入关键字"
search-placeholder=
"请输入关键字"
:list-total=
"listTotal"
:list-total=
"listTotal"
>
>
...
...
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