{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\dialog\\HtTreeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\dialog\\HtTreeDialog.vue","mtime":1675232038652},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nconst HtTree = () => import(\"@/components/HtTree.vue\");\r\nexport default {\r\n  name: \"ht-tree-dialog\",\r\n  components: {\r\n    HtTree\r\n  },\r\n  props: {\r\n    dialogTitle:{\r\n      type:String,\r\n      default: \"请选择\"\r\n    },\r\n    appendToBody: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    data: Array,\r\n    load: {\r\n      type: Function\r\n    },\r\n    lazy: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    accordion: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    showCheckbox: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    defaultExpandAll: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    props: {\r\n      type: Object,\r\n      default: function() {\r\n        return {\r\n          children: \"children\",\r\n          label: \"label\"\r\n        };\r\n      }\r\n    },\r\n    supportFilter: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    iconClass: {\r\n      type: String\r\n    },\r\n    nodeKey: {\r\n      type: String\r\n    },\r\n    defaultExpandedKeys: {\r\n      type: Array\r\n    },\r\n    highlightCurrent: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    renderAfterExpand: {\r\n      type: Boolean,\r\n      default: true\r\n    },\r\n    renderContent: {\r\n      type: Function\r\n    },\r\n    checkOnClickNode: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    autoExpandParent: {\r\n      type: Boolean,\r\n      default: true\r\n    },\r\n    checkStrictly: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    currentNodeKey: {\r\n      type: [String, Number]\r\n    },\r\n    indent: {\r\n      type: Number,\r\n      default: 16\r\n    },\r\n    draggable: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    allowDrag: {\r\n      type: Function\r\n    },\r\n    allowDrop: {\r\n      type: Function\r\n    },\r\n    expandOnClickNode: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    defaultCheckedKeys: {\r\n      type: Array,\r\n      default() {\r\n        return [];\r\n      }\r\n    },\r\n    // showCheck 为true时 是否只返回叶子节点\r\n    leafOnly: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    // showCheck 为true时 是否只返回包含半选中的叶子节点\r\n    includeHalfChecked: {\r\n      type: Boolean,\r\n      default: false\r\n    },\r\n    destroyOnClose: {\r\n      type: Boolean,\r\n      default: false\r\n    }\r\n  },\r\n  data() {\r\n    return {\r\n      dialogVisible: false,\r\n      selectedNode: null\r\n    };\r\n  },\r\n  methods: {\r\n    showDialog() {\r\n      this.dialogVisible = true;\r\n    },\r\n    handleClose() {\r\n      this.dialogVisible = false;\r\n    },\r\n    onConfirm() {\r\n      let resultNodes = null;\r\n      if (this.$refs.htTree.showCheckbox) {\r\n        resultNodes = this.$refs.htTree.$refs.elTree.getCheckedNodes(\r\n          this.leafOnly,\r\n          this.includeHalfChecked\r\n        );\r\n        if (!resultNodes || resultNodes.length <= 0) {\r\n          this.$message.error(\"请选择\");\r\n          return;\r\n        }\r\n      } else {\r\n        resultNodes = this.$refs.htTree.$refs.elTree.getCurrentNode();\r\n      }\r\n      if (!resultNodes) {\r\n        this.$message.error(\"请选择\");\r\n        return;\r\n      }\r\n      this.dialogVisible = false;\r\n      this.$emit(\"onConfirm\", resultNodes);\r\n    }\r\n  }\r\n};\r\n",null]}