|
@@ -18,7 +18,7 @@ var vNode = {
|
|
|
pageNum: 0,
|
|
|
pageSize: 50,
|
|
|
scrollTop: 0,
|
|
|
- total: 0
|
|
|
+ count: 0
|
|
|
},
|
|
|
entFollowList: [],
|
|
|
loading: '',
|
|
@@ -31,7 +31,7 @@ var vNode = {
|
|
|
if (!recover) {
|
|
|
this.getPowerInfo()
|
|
|
}
|
|
|
-
|
|
|
+ this.getEntGroupList()
|
|
|
},
|
|
|
mounted: function () {
|
|
|
$(this.$refs.jList).scrollTop(this.listInfo.scrollTop)
|
|
@@ -117,9 +117,8 @@ var vNode = {
|
|
|
if (res.data.followMax) {
|
|
|
_this.conf.maxLength = res.data.followMax
|
|
|
}
|
|
|
- if(res.data.total) {
|
|
|
- _this.listInfo.total = res.data.total
|
|
|
- _this.getEntGroupList()
|
|
|
+ if(res.data.count) {
|
|
|
+ _this.listInfo.count = res.data.count
|
|
|
}
|
|
|
|
|
|
// 列表赋值
|
|
@@ -156,7 +155,7 @@ var vNode = {
|
|
|
// 设置企业分组数据
|
|
|
setEntGroupData (data) {
|
|
|
data.unshift({
|
|
|
- count: this.listInfo.total,
|
|
|
+ count: this.listInfo.count,
|
|
|
id: "",
|
|
|
isPut: 0,
|
|
|
name: "全部"
|
|
@@ -168,8 +167,11 @@ var vNode = {
|
|
|
this.groupingList = data
|
|
|
},
|
|
|
changeGrouping: function (item) {
|
|
|
- if (!item.count) return
|
|
|
const isAll = item.name === '全部'
|
|
|
+ if(isAll) {
|
|
|
+ item.count = this.listInfo.count
|
|
|
+ }
|
|
|
+ if (!item.count) return
|
|
|
if(item.active) {
|
|
|
if(isAll) {
|
|
|
this.selectGroupList = []
|