订阅领域管理

This commit is contained in:
caoyang
2022-03-03 13:52:31 +08:00
parent 27bb674df1
commit f57164dbe3
2 changed files with 11 additions and 3 deletions
@@ -106,14 +106,22 @@
if(res.success){ if(res.success){
let data=res.result let data=res.result
this.treeData=this.addAttr(data) this.treeData=this.addAttr(data)
console.log('treeData',this.treeData)
} }
}) })
}, },
//获取用户的订阅 //获取用户的订阅
getSubscribtion(){ getSubscribtion(){
getAction(`domain/domainUserRel/queryList`,{}).then(res=> { postAction(`domain/domainUserRel/queryList`,{}).then(res=> {
if(res.success){ if(res.success){
let ids=[]
let data=res.result
data.forEach(res=>{
ids.push(res.domainId)
})
this.checkedKeys=[...ids]
// this.selectedKeys=this.checkedKeys
console.log('checkKeys',this.checkedKeys)
} }
}) })
}, },
@@ -50,7 +50,7 @@
title: '英文名称', title: '英文名称',
align: "center", align: "center",
width: 100, width: 100,
dataIndex: 'itemValue', dataIndex: 'enName',
}, },
{ {
title: '描述', title: '描述',