消息发送

This commit is contained in:
liuye
2022-06-24 21:47:52 +08:00
parent 8e807e785f
commit ac3f5d2eff
5 changed files with 55 additions and 55 deletions

View File

@@ -75,18 +75,18 @@ export default {
this.treeList = this.allData.filter(e => !e.parentid)
this.selectDeptPath = [{name: "可选范围", id: ''}]
},
itemClick({id, name}) {
let index = this.selectDeptPath.findIndex(e => e.id == id)
itemClick({id, name, corpId}) {
let index = this.selectDeptPath.findIndex(e => e.id == id && e.corpId == corpId)
if (index == -1) {
this.selectDeptPath.push({name, id})
this.getDeptsAndUsersByParent(id)
this.selectDeptPath.push({name, id, corpId})
this.getDeptsAndUsersByParent(id, corpId)
}
},
getDeptsAndUsersByParent(departmentId) {
this.treeList = this.allData.filter(e => e.parentid == departmentId)
getDeptsAndUsersByParent(departmentId, corpId) {
this.treeList = this.allData.filter(e => e.parentid == departmentId && e.corpId == corpId)
this.userList = []
this.$http.post(`/app/wxcp/wxuser/listByDeptId`, null, {
params: {departmentId, status: 1}
params: {departmentId, status: 1, cid: corpId}
}).then(res => {
if (res?.data) {
this.userList = res.data.map(e => ({...e, isChecked: this.isSelected(e.id)}))