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",
          });
        });
    },
posted @ 2021-06-16 17:43  诡道也  阅读(69)  评论(0编辑  收藏  举报