{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\heiorgmanager\\HtOrgTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\heiorgmanager\\HtOrgTree.vue","mtime":1675071993381},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport org from \"@/api/org.js\";\nimport utils from \"@/hotent-ui-util.js\";\nexport default {\n  name: \"ht-org-tree\",\n  props: {\n    orgId: {\n      type: String | Number,\n      required: true\n    },\n    supportFilter: {\n      type: Boolean,\n      default: false\n    },\n    highlightCurrent: {\n      type: Boolean,\n      default: false\n    },\n    defaultExpandAll: {\n      type: Boolean,\n      default: false\n    },\n    showCheckbox: {\n      type: Boolean,\n      default: false\n    },\n    renderContent: {\n      type: Function\n    },\n    lazy: {\n      type: Boolean,\n      default: true\n    }\n  },\n  data: function data() {\n    return {\n      treeData: [],\n      defaultProps: {\n        children: \"children\",\n        label: \"name\"\n      }\n    };\n  },\n  methods: {\n    handleNodeClick: function handleNodeClick(node) {\n      this.$emit(\"node-click\", node);\n    },\n    check: function check(data, checkedObj) {\n      this.$emit(\"check\", data, checkedObj);\n    },\n    loadData: function loadData(cb) {\n      var param = {\n        isOrgAuth: \"true\",\n        parentId: this.orgId,\n        deep: true\n      };\n      var this_ = this;\n      org.getByParentAndDem(param).then(function (data) {\n        this_.treeData = utils.tile2nest(data);\n        this_.treeData.forEach(function (item) {\n          if (this_.treeData.some(function (other) {\n            return other.id !== item.id && item.id == other.parentId;\n          })) {\n            item.leaf = false;\n            item.isParent = true;\n          } else {\n            item.isParent = false;\n            item.leaf = true;\n          }\n        });\n      }).finally(function () {\n        cb && cb();\n      });\n    },\n    load: function load(node, resolve) {\n      if (!node.data.id) {\n        org.get(this.orgId).then(function (data) {\n          resolve(data);\n        });\n        return;\n      }\n\n      org.getChildrenByOrgId(node.data.id).then(function (data) {\n        resolve(data);\n      });\n    }\n  },\n  mounted: function mounted() {\n    this.loadData();\n  }\n};",null]}