Commit 6618f163 by 胡悦

修改一客一群

1 parent 8feb4be4
......@@ -375,7 +375,8 @@ export default {
},
// 成员弹窗
handleConfirm() {
this.basicForm.userList = this.$refs.membersForm.innerTags
// this.basicForm.userList = this.$refs.membersForm.innerTags
this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags)
this.selectData = this.basicForm.userList
this.openMembers()
},
......
......@@ -13,7 +13,7 @@
<GLTable
:key="key"
v-if="dialogVisible"
ref="table"
ref="followTable"
:layout="layout"
:tableData="tableData"
:hasNum="false"
......@@ -86,8 +86,8 @@ export default {
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
pageSize: this.$refs.followTable.page.pageSize,
pageNum: this.$refs.followTable.page.pageNum
}
this.$apis.groupGuest.getFollower(params).then(res => {
this.tableData = res.data
......@@ -98,24 +98,20 @@ export default {
this.tableData.forEach(item => {
this.selectEmp.forEach((itm, index) => {
if (itm.staffId == item.id) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
this.selectEmp.splice(index, 1)
this.$refs.followTable.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
console.log( this.checkSelect)
this.tableParams.checkSelectVal = this.checkSelect
this.key = new Date()
if (this.checkSelect) this.tableParams.checkSelectVal = this.checkSelect
})
})
},
init(item, checkMember) {
console.log(checkMember)
this.checkSelect = checkMember
this.tableSearchForm = {}
this.selectEmp = JSON.parse(JSON.stringify(item))
this.dialogVisible = true
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.$refs.followTable.page.pageNum = 1
this.getFollower()
})
},
......@@ -130,11 +126,11 @@ export default {
},
rowClick(row) {
if (this.checkSelect.find(i => i == row.id)) return
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(row)
this.$refs.followTable.$refs.salelistMutiTable.toggleRowSelection(row)
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
this.$refs.followTable.$refs.salelistMutiTable.clearSelection()
}, 300),
handleSelect: utils.debounce(function() {
this.loading = true
......@@ -152,7 +148,7 @@ export default {
this.loading = false
this.dialogVisible = false
this.$emit('selectTable', this.selectItem.concat(selectEmp))
this.$refs.table.$refs.salelistMutiTable.clearSelection()
this.$refs.followTable.$refs.salelistMutiTable.clearSelection()
}, 300)
}
}
......
......@@ -185,8 +185,8 @@ export default {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
})
}
this.tableParams.checkSelectVal = this.followData
this.key = new Date()
if (this.followData) this.tableParams.checkSelectVal = this.followData
// this.key = new Date()
} else {
this.treeData = []
}
......
......@@ -272,7 +272,8 @@ export default {
})
},
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
// this.$history.push('/settings/enterpriseWechat/index')
this.$history.push('/home/enterpriseWechat/index')
},
//搜索表格
searchTable() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!