vue的treeselect获取选中节点的父节点 elementui中tree找父节点_3d

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <script src="./element-ui/index.js"></script>
    <!-- <link rel="stylesheet" href="./node_modules/element-ui/"> -->
    <style>
      .el-tree-node__label {
        position: relative;
      }
      .el-tree-node__label:before {
        content: "";
        width: 20px;
        height: 20px;
        display: block;
        position: absolute;
        top: 0px;
        left: -24px;
        z-index: 999;
      }
      .el-checkbox__inner {
        top: 0;
      }
    </style>
    <title>element-ui οؼ</title>
  </head>
  <body>
    <div id="app">
      <el-tree
        :data="props"
        :props="defaultProps"
        
        show-checkbox
        node-key="label"
        check-on-click-node
        :default-expand-all="true"
        :check-strictly="true"
        :expand-on-click-node="false"
        @node-click="nodeClick"
      >
      </el-tree>
    </div>
    <script>
      let vm = new Vue({
        el: "#app",
        data: {
          nodeParentArr: [],
          defaultProps: {
            children: "child",
            label: "dictName"
          },
          props: [
        {
          dataFlow: "042361cfcf3a47fb849eacdf8a6c4501",
          dictType: "standardDept",
          dictValue: "01",
          dictName: "预防保健科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 1,
          createdTime: "2021-08-30T09:44:00.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:44:00.000+0000",
          updatedBy: "1",
          child: [],
        },
        {
          dataFlow: "a320205c62bb4c95a31eff00f49409fc",
          dictType: "standardDept",
          dictValue: "02",
          dictName: "全科医疗科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 2,
          createdTime: "2021-08-30T09:44:19.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:44:19.000+0000",
          updatedBy: "1",
          child: [],
        },
        {
          dataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
          dictType: "standardDept",
          dictValue: "03",
          dictName: "内科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 3,
          createdTime: "2021-08-30T09:44:30.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:44:30.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "e906b30702714945ae38c7d3441cfe46",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "呼吸内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-30T09:51:18.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:51:18.000+0000",
              updatedBy: "1",
              child: [
                {
                  dataFlow: "e6e64d04ff1d47f995a5f186060361f7",
                  dictType: "standardDept",
                  dictValue: "50",
                  dictName: "呼吸监护室(RICU)",
                  dictDesc: null,
                  parentDataFlow: "e906b30702714945ae38c7d3441cfe46",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 1,
                  createdTime: "2021-08-30T09:55:45.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:55:45.000+0000",
                  updatedBy: "1",
                  child: [],
                },
              ],
            },
            {
              dataFlow: "c75624a7e3dd44a3906c6b2f3905a4e2",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "消化内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-30T09:52:41.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:52:41.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "df6a0e238f0e44d3ada3abde87580a02",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "神经内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-30T09:52:53.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:52:53.000+0000",
              updatedBy: "1",
              child: [
                {
                  dataFlow: "c232b216a6fd41e38f5c76b45a320dd4",
                  dictType: "standardDept",
                  dictValue: "50",
                  dictName: "神经内科ICU",
                  dictDesc: null,
                  parentDataFlow: "df6a0e238f0e44d3ada3abde87580a02",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 1,
                  createdTime: "2021-08-30T09:56:02.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:56:02.000+0000",
                  updatedBy: "1",
                  child: [],
                },
              ],
            },
            {
              dataFlow: "6caabafb3aec4ddea8394266e3247982",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "心血管内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-30T09:53:06.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:53:06.000+0000",
              updatedBy: "1",
              child: [
                {
                  dataFlow: "7dc7d6882f1d4fb0ae997cf095b6eb74",
                  dictType: "standardDept",
                  dictValue: "50",
                  dictName: "心脏监护室(CCU)",
                  dictDesc: null,
                  parentDataFlow: "6caabafb3aec4ddea8394266e3247982",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 1,
                  createdTime: "2021-08-30T09:56:26.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:56:26.000+0000",
                  updatedBy: "1",
                  child: [],
                },
              ],
            },
            {
              dataFlow: "a1d6d0724ac14407946b8d667d27d1a3",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "血液内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-30T09:53:21.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:53:21.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "ad03a9b0820d49d7aef28349d0c27752",
              dictType: "standardDept",
              dictValue: "06",
              dictName: "肾脏内科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 6,
              createdTime: "2021-08-30T09:53:34.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:53:34.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "6c64761db0f444b8b0fd7e5e3980c5ff",
              dictType: "standardDept",
              dictValue: "07",
              dictName: "内分泌科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 7,
              createdTime: "2021-08-30T09:53:49.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:53:49.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "62cd4c467a5e4a9086bdebd8102a02cf",
              dictType: "standardDept",
              dictValue: "08",
              dictName: "风湿免疫科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 8,
              createdTime: "2021-08-30T09:54:04.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:54:04.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "f8681da624644813b94664dd7e5fcf29",
              dictType: "standardDept",
              dictValue: "09",
              dictName: "变态反应科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 9,
              createdTime: "2021-08-30T09:54:16.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:54:16.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "2d62053c8b97423d9c3af8547df743ee",
              dictType: "standardDept",
              dictValue: "10",
              dictName: "老年病科",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 10,
              createdTime: "2021-08-30T09:54:35.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:54:35.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "ca1caa027cea4da59229d94b466621fd",
              dictType: "standardDept",
              dictValue: "11",
              dictName: "内科重症监护室(MICU)",
              dictDesc: null,
              parentDataFlow: "be3d4b755c3a475a91a99e69be4d05bb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 11,
              createdTime: "2021-08-30T09:55:03.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:55:03.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "d7018eaa280e44d89bf08b63b9138947",
          dictType: "standardDept",
          dictValue: "04",
          dictName: "外科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 4,
          createdTime: "2021-08-30T09:44:43.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:44:43.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "484d1c779d1d44808d67175fbc078c31",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "普通外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-30T09:56:51.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:56:51.000+0000",
              updatedBy: "1",
              child: [
                {
                  dataFlow: "a3a4900a119b4190b775b442cb352c2a",
                  dictType: "standardDept",
                  dictValue: "50",
                  dictName: "肝胆外科",
                  dictDesc: null,
                  parentDataFlow: "484d1c779d1d44808d67175fbc078c31",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 1,
                  createdTime: "2021-08-30T09:57:08.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:57:08.000+0000",
                  updatedBy: "1",
                  child: [],
                },
                {
                  dataFlow: "9f0b2e9c221045139bfe8767924020f1",
                  dictType: "standardDept",
                  dictValue: "51",
                  dictName: "胃肠外科",
                  dictDesc: null,
                  parentDataFlow: "484d1c779d1d44808d67175fbc078c31",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 2,
                  createdTime: "2021-08-30T09:57:21.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:57:21.000+0000",
                  updatedBy: "1",
                  child: [],
                },
                {
                  dataFlow: "5befec0af08b47a08375666a0286057f",
                  dictType: "standardDept",
                  dictValue: "52",
                  dictName: "血管外科",
                  dictDesc: null,
                  parentDataFlow: "484d1c779d1d44808d67175fbc078c31",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 3,
                  createdTime: "2021-08-30T09:57:36.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:57:36.000+0000",
                  updatedBy: "1",
                  child: [],
                },
                {
                  dataFlow: "2e6723a92b9d43ea85e691d0de1e25e8",
                  dictType: "standardDept",
                  dictValue: "53",
                  dictName: "疝气",
                  dictDesc: null,
                  parentDataFlow: "484d1c779d1d44808d67175fbc078c31",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 4,
                  createdTime: "2021-08-30T09:57:55.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:57:55.000+0000",
                  updatedBy: "1",
                  child: [],
                },
                {
                  dataFlow: "43b4f0f47e464f8a90b44463afaa4948",
                  dictType: "standardDept",
                  dictValue: "54",
                  dictName: "乳腺科",
                  dictDesc: null,
                  parentDataFlow: "484d1c779d1d44808d67175fbc078c31",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 5,
                  createdTime: "2021-08-30T09:58:07.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-30T09:58:07.000+0000",
                  updatedBy: "1",
                  child: [],
                },
              ],
            },
            {
              dataFlow: "b8e433aead6743a1ba0eadad902344e0",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "神经外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-30T09:58:22.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:58:22.000+0000",
              updatedBy: "1",
              child: [
                {
                  dataFlow: "692ac5c653284f8e99a00a8c54357436",
                  dictType: "standardDept",
                  dictValue: "50",
                  dictName: "脑外伤",
                  dictDesc: null,
                  parentDataFlow: "b8e433aead6743a1ba0eadad902344e0",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 1,
                  createdTime: "2021-08-31T01:06:31.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-31T01:06:31.000+0000",
                  updatedBy: "1",
                  child: [],
                },
                {
                  dataFlow: "3b1710f11bbc4de78611e98fa0d40933",
                  dictType: "standardDept",
                  dictValue: "51",
                  dictName: "脑肿瘤",
                  dictDesc: null,
                  parentDataFlow: "b8e433aead6743a1ba0eadad902344e0",
                  orgFlow: null,
                  systemId: "zp",
                  systemName: "住培系统",
                  recordStatus: "Y",
                  sortNo: 2,
                  createdTime: "2021-08-31T01:07:06.000+0000",
                  createdBy: "1",
                  updatedTime: "2021-08-31T01:07:06.000+0000",
                  updatedBy: "1",
                  child: [],
                },
              ],
            },
            {
              dataFlow: "3634bfc9aeb54e0faa13b46048eb6af1",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "骨科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-30T09:58:39.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:58:39.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "7a823e685cb7403b8e095c13df08a94d",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "泌尿外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-30T09:58:51.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:58:51.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "3babfc6c34564aee8356eba0e5fe2fff",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "心胸外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-30T09:59:02.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:59:02.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "1a715df66cc74e8e9e54d53e3a5e0985",
              dictType: "standardDept",
              dictValue: "06",
              dictName: "心血管外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 6,
              createdTime: "2021-08-30T09:59:29.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:59:29.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "fea7be8224a64bf1b3d3715db646e58a",
              dictType: "standardDept",
              dictValue: "07",
              dictName: "烧伤整形外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 7,
              createdTime: "2021-08-30T09:59:46.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T09:59:46.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "2049d5f2fb4e4392be08d8786c9dd26f",
              dictType: "standardDept",
              dictValue: "08",
              dictName: "外科重症监护室(SICU)",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 8,
              createdTime: "2021-08-30T10:00:09.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T10:00:09.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "48ca514b9c49449894d23a45fc6708dd",
              dictType: "standardDept",
              dictValue: "09",
              dictName: "胸外科",
              dictDesc: null,
              parentDataFlow: "d7018eaa280e44d89bf08b63b9138947",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 9,
              createdTime: "2021-08-30T10:00:22.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-30T10:00:22.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
          dictType: "standardDept",
          dictValue: "05",
          dictName: "妇产科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 5,
          createdTime: "2021-08-30T09:44:56.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:44:56.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "e76ec8f6848249798bef59456a80abac",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "妇科",
              dictDesc: null,
              parentDataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:07:41.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:07:41.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "bde66c22332146a9b775ed8fcf2b1438",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "产科",
              dictDesc: null,
              parentDataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:07:55.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:07:55.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "5a470f66df9d4ad89335e466615bd018",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "计划生育",
              dictDesc: null,
              parentDataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:08:06.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:08:06.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "7876a766cb03468590b4cc77f73ebfdb",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "优生学",
              dictDesc: null,
              parentDataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:08:17.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:08:17.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "71eae8d83f9d46138b9d2bc1151cb217",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "生殖健康与不孕症",
              dictDesc: null,
              parentDataFlow: "a8a1ee311d374c59bc7644d57f600d7e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-31T01:08:36.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:08:36.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "f1b30216d5a045489fa70be7aad17eeb",
          dictType: "standardDept",
          dictValue: "06",
          dictName: "妇女保健科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 6,
          createdTime: "2021-08-30T09:45:10.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:45:10.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "271e87dedcf44d0daf72fbdfe9ab5cad",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "青春期保健",
              dictDesc: null,
              parentDataFlow: "f1b30216d5a045489fa70be7aad17eeb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:08:58.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:08:58.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "9987076c9d7a4cb09ff751e7c468dee2",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "围产期保健",
              dictDesc: null,
              parentDataFlow: "f1b30216d5a045489fa70be7aad17eeb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:09:23.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:09:23.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "da4d08498db44c08865a004588afa427",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "更年期保健",
              dictDesc: null,
              parentDataFlow: "f1b30216d5a045489fa70be7aad17eeb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:09:38.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:09:38.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "dc9a2ffbd8bb4321893df05e1f501561",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "妇女心理卫生",
              dictDesc: null,
              parentDataFlow: "f1b30216d5a045489fa70be7aad17eeb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:09:51.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:09:51.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "52dcafc046e4444aaa0193af662c2705",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "妇女营养",
              dictDesc: null,
              parentDataFlow: "f1b30216d5a045489fa70be7aad17eeb",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-31T01:10:02.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:10:02.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
          dictType: "standardDept",
          dictValue: "07",
          dictName: "儿科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 7,
          createdTime: "2021-08-30T09:45:20.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:45:20.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "e8f28a6edc404b9fb26fab0e01eab73b",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "新生儿",
              dictDesc: null,
              parentDataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:10:29.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:10:29.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "25ce3c14266c49f3886cf6e5a3d0d243",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "小儿传染科",
              dictDesc: null,
              parentDataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:10:43.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:10:43.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "82923c2426cb4faea8b71a4b017559ee",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "小儿消化科",
              dictDesc: null,
              parentDataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:10:58.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:10:58.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "f54b174306364a8195e336984cce9fe6",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "小儿呼吸科",
              dictDesc: null,
              parentDataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:11:13.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:11:13.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "5eca668cc6934fa388f20e6a6cec077e",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "小儿心血管",
              dictDesc: null,
              parentDataFlow: "1e78df1fbb3544c887dfdeaa795448ab",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-31T01:11:25.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:11:25.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
          dictType: "standardDept",
          dictValue: "08",
          dictName: "儿外科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 8,
          createdTime: "2021-08-30T09:45:32.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:45:32.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "81be639264ec4b28b6206862ccee349f",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "小儿普通外科",
              dictDesc: null,
              parentDataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:11:46.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:11:46.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "663120009013439faa114ca835eaeeeb",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "小儿骨科",
              dictDesc: null,
              parentDataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:11:55.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:11:55.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "42dfd70f28e14febb348494decf15638",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "小儿泌尿外科",
              dictDesc: null,
              parentDataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:12:14.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:12:14.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "7bad5cbdf5734ad1856ec48edd8445c4",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "小儿胸心外科",
              dictDesc: null,
              parentDataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:12:37.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:12:37.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "113a5156599144bba955a8ce876800b1",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "小儿神经外科",
              dictDesc: null,
              parentDataFlow: "d1978eeec1cf4f50b2e4506d99c1dc12",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-31T01:12:53.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:12:53.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "5dc4926317314e6daf6a11e80a1d184e",
          dictType: "standardDept",
          dictValue: "09",
          dictName: "儿童保健科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 9,
          createdTime: "2021-08-30T09:45:50.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:45:50.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "6c232b096bd04393883ca0c128c82b82",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "儿童生长发育",
              dictDesc: null,
              parentDataFlow: "5dc4926317314e6daf6a11e80a1d184e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:13:18.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:13:18.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "b2599698668b481da3ad41a902f41bea",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "儿童营养",
              dictDesc: "",
              parentDataFlow: "5dc4926317314e6daf6a11e80a1d184e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:14:00.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:14:01.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "04d9418804cf44cca46793391161de5e",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "儿童心理卫生",
              dictDesc: null,
              parentDataFlow: "5dc4926317314e6daf6a11e80a1d184e",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:14:24.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:14:24.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "ec27be9364c04aada8f7f2fff0154e31",
          dictType: "standardDept",
          dictValue: "10",
          dictName: "眼科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 10,
          createdTime: "2021-08-30T09:46:01.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:46:01.000+0000",
          updatedBy: "1",
          child: [],
        },
        {
          dataFlow: "df7f0a0e711c488c8b2cf00120014448",
          dictType: "standardDept",
          dictValue: "11",
          dictName: "耳鼻咽喉科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 11,
          createdTime: "2021-08-30T09:46:28.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:46:28.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "a9ccf01dea3e4013babce59f34919c9b",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "耳科",
              dictDesc: null,
              parentDataFlow: "df7f0a0e711c488c8b2cf00120014448",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:14:45.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:14:45.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "c45d85eae07c4e8d95714990218ea8a1",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "鼻科",
              dictDesc: null,
              parentDataFlow: "df7f0a0e711c488c8b2cf00120014448",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:15:01.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:15:01.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "17bdd0e111f54c308a771cd13b0f1424",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "咽喉科",
              dictDesc: null,
              parentDataFlow: "df7f0a0e711c488c8b2cf00120014448",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:15:10.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:15:10.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "56cd0f1ae9d24254a215dfa2867cc5eb",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "头颈外科",
              dictDesc: null,
              parentDataFlow: "df7f0a0e711c488c8b2cf00120014448",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:15:22.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:15:22.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "f5bbc76ba83342809386772c8a804b2b",
          dictType: "standardDept",
          dictValue: "12",
          dictName: "口腔科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 12,
          createdTime: "2021-08-30T09:46:44.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:46:44.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "646506f2be554f479015a152d98c61e5",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "口腔内科",
              dictDesc: null,
              parentDataFlow: "f5bbc76ba83342809386772c8a804b2b",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:15:42.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:15:42.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "6712a93504fa43af8316d558a98f2e2e",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "口腔颌面外科",
              dictDesc: null,
              parentDataFlow: "f5bbc76ba83342809386772c8a804b2b",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:15:56.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:15:56.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "1972183d527740e9b631b7e12b65b1a6",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "正畸科",
              dictDesc: null,
              parentDataFlow: "f5bbc76ba83342809386772c8a804b2b",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:16:12.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:16:12.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        },
        {
          dataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
          dictType: "standardDept",
          dictValue: "13",
          dictName: "皮肤科",
          dictDesc: null,
          parentDataFlow: "0",
          orgFlow: null,
          systemId: "zp",
          systemName: "住培系统",
          recordStatus: "Y",
          sortNo: 13,
          createdTime: "2021-08-30T09:46:56.000+0000",
          createdBy: "1",
          updatedTime: "2021-08-30T09:46:56.000+0000",
          updatedBy: "1",
          child: [
            {
              dataFlow: "2f6b83f6261b48098c33d745b49a7fa3",
              dictType: "standardDept",
              dictValue: "01",
              dictName: "皮肤病科",
              dictDesc: null,
              parentDataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 1,
              createdTime: "2021-08-31T01:16:29.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:16:29.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "4e47c7ef2edd46daaad9b03651a27009",
              dictType: "standardDept",
              dictValue: "02",
              dictName: "性传播疾病科",
              dictDesc: null,
              parentDataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 2,
              createdTime: "2021-08-31T01:16:49.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:16:49.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "42c2fd05362b4674b4e554048a01d676",
              dictType: "standardDept",
              dictValue: "03",
              dictName: "临床检验室",
              dictDesc: null,
              parentDataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 3,
              createdTime: "2021-08-31T01:17:06.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:17:06.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "960adcca39d44a82a51154ff538e9750",
              dictType: "standardDept",
              dictValue: "04",
              dictName: "皮肤病理室",
              dictDesc: null,
              parentDataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 4,
              createdTime: "2021-08-31T01:17:26.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:17:26.000+0000",
              updatedBy: "1",
              child: [],
            },
            {
              dataFlow: "b063869b18d84b8790c7643f2a337d71",
              dictType: "standardDept",
              dictValue: "05",
              dictName: "皮肤病治疗室",
              dictDesc: null,
              parentDataFlow: "61ba1b8d36924aaeb7727afbfb3acbee",
              orgFlow: null,
              systemId: "zp",
              systemName: "住培系统",
              recordStatus: "Y",
              sortNo: 5,
              createdTime: "2021-08-31T01:17:43.000+0000",
              createdBy: "1",
              updatedTime: "2021-08-31T01:17:43.000+0000",
              updatedBy: "1",
              child: [],
            },
          ],
        }
      ]},
        methods: {
          nodeClick(data, node) {
            console.log(data, node);
            this.nodeParentArr = [];
            vm.childNodesChange(node);
            vm.parentNodesChange(node);
          },
          parentNodesChange(node) {
            if (node.parent) {
              for (let key in node) {
                if (key == "parent") {
                  // 父节点集合nodeParentArr
                  this.nodeParentArr.push(node[key]);

                  node[key].checked = true;
                  vm.parentNodesChange(node[key]);
                }
              }
            } else {
              console.log(this.nodeParentArr);
              let parentId = [];
              let lenArr = this.nodeParentArr.length;
              for (let i = 0; i < lenArr - 1; i++) {
                parentId.push(this.nodeParentArr[i].label);
              }
              console.log(parentId);
            }
          },
          childNodesChange(node) {
            let len = node.childNodes.length;
            for (let i = 0; i < len; i++) {
              node.childNodes[i].checked = false;
              vm.childNodesChange(node.childNodes[i]);
            }
          }
        }
      });
    </script>
  </body>
</html>