Commit 079104a1 by xiaohai

删除插件测试代码

parent 13f3f6f4
......@@ -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(',');
......
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment