el-tree
getTableList() {
this.$axios
.get(
`/apis/hmcsSecurity/v2/department/getTree?areaLayer=${this.areaLayer}&appId=1`
)
.then((res) => {
if (res.data.success) {
// console.log(res, "sssssss");
res.data.result.map((item) => {
this.initOrgMembers(item);
});
console.log(res.data.result);
this.dataList = res.data.result;
}
})
.catch((error) => {
this.$message({
showClose: true,
message: "获取组织架构失败,请刷新再试!",
type: "warning",
});
});
},
加班万岁!