Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memberTag
memberTag-web
Commits
079104a1
Commit
079104a1
authored
Nov 15, 2018
by
xiaohai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除插件测试代码
parent
13f3f6f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
groupTransfer.vue
src/components/groupTransfer.vue
+14
-5
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+3
-4
No files found.
src/components/groupTransfer.vue
View file @
079104a1
...
...
@@ -168,7 +168,8 @@
selectedData
:
[],
// 穿梭窗已选入数据
selectionToTransfer
:
[],
// 穿梭窗选入数据
selectionToRemove
:
[],
// 已选的将要删除的选入数据
countOfCoverTotal
:
0
countOfCoverTotal
:
0
,
totalCount
:
0
};
},
directives
:
{
...
...
@@ -184,7 +185,7 @@
* 如果元素滚动到底, 下面等式返回true, 没有则返回false:
* ele.scrollHeight - ele.scrollTop === ele.clientHeight;
*/
let
sign
=
80
;
// 定义默认的向上滚于乡下滚的边界
let
sign
=
1
;
// 定义默认的向上滚于乡下滚的边界
const
CONDITION
=
((
this
.
scrollHeight
-
this
.
scrollTop
===
this
.
clientHeight
)
&&
this
.
scrollTop
>
sign
)
// 注意: && this.scrollTop
...
...
@@ -206,8 +207,11 @@
},
methods
:
{
loadmore
()
{
this
.
currentPage
+=
1
;
this
.
getGroupList
();
console
.
log
(
'loadmore'
);
if
(
this
.
currentPage
*
this
.
pageSize
<
this
.
totalCount
)
{
this
.
currentPage
+=
1
;
this
.
getGroupList
();
}
},
/**
...
...
@@ -219,6 +223,7 @@
.
then
(
res
=>
{
if
(
res
.
data
.
errorCode
==
1
)
{
that
.
tableData
=
that
.
tableData
.
concat
(
res
.
data
.
result
.
result
);
that
.
totalCount
=
res
.
data
.
result
.
totalCount
;
return
;
}
that
.
$message
.
error
({
...
...
@@ -285,8 +290,12 @@
*/
getMemberCountByGroups
()
{
const
that
=
this
;
let
selectedData
=
that
.
selectedData
;
if
(
selectedData
.
length
<
1
)
{
return
false
;
}
let
idsArr
=
[];
that
.
selectedData
.
forEach
(
group
=>
{
selectedData
.
forEach
(
group
=>
{
idsArr
.
push
(
group
.
memberTagGroupId
);
});
let
ids
=
idsArr
.
join
(
','
);
...
...
src/view/memberGroup/memberGroupList.vue
View file @
079104a1
<
template
>
<div
class=
"memberGroupList-wrap common-wrap"
>
<nav-crumb
:navpath=
"navpath"
></nav-crumb>
<group-transfer></group-transfer>
<div
class=
"right-content"
>
<div
class=
"right-box"
>
<div
class=
"common-wrap__opt"
>
...
...
@@ -155,7 +154,7 @@
import
timeFormat
from
'@/common/js/timeFormat'
;
import
{
_debounce
}
from
"@/common/js/public"
;
import
{
getRequest
,
postRequest
,
postJson
,
postForm
}
from
'@/api/api'
;
import
groupTransfer
from
'@/components/groupTransfer'
;
//
import groupTransfer from '@/components/groupTransfer';
export
default
{
name
:
'memberGroupList'
,
data
()
{
...
...
@@ -427,8 +426,8 @@
that
.
getGroupList
()
},
components
:
{
navCrumb
,
groupTransfer
// groupTransfer
,
navCrumb
}
}
</
script
>
...
...
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