{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\components\\ren-dept-tree\\src\\ren-dept-tree.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\components\\ren-dept-tree\\src\\ren-dept-tree.vue","mtime":1581948664000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\nexport default {\n name: 'RenDeptTree',\n data: function data() {\n return {\n filterText: '',\n visibleDept: false,\n deptList: [],\n showDeptName: '',\n expandedKeys: null,\n defaultProps: {\n children: 'children',\n label: 'label'\n }\n };\n },\n props: {\n value: [Number, String],\n deptName: String,\n query: Boolean,\n placeholder: String\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n },\n deptName: function deptName(val) {\n this.showDeptName = val;\n }\n },\n methods: {\n deptDialog: function deptDialog() {\n this.expandedKeys = null;\n if (this.$refs.tree) {\n this.$refs.tree.setCurrentKey(null);\n }\n this.visibleDept = true;\n this.getDeptList(this.value);\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n getDeptList: function getDeptList(id) {\n var _this = this;\n return this.$http.get('/sys/dept/list').then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n _this.deptList = res.data;\n _this.$nextTick(function () {\n _this.$refs.tree.setCurrentKey(id);\n _this.expandedKeys = [id];\n });\n }).catch(function () {});\n },\n cancelHandle: function cancelHandle() {\n this.visibleDept = false;\n this.deptList = [];\n this.filterText = '';\n },\n clearHandle: function clearHandle() {\n this.$emit('input', '');\n this.$emit('update:deptName', '');\n this.showDeptName = '';\n this.visibleDept = false;\n this.deptList = [];\n this.filterText = '';\n },\n commitHandle: function commitHandle() {\n var node = this.$refs.tree.getCurrentNode();\n if (!node) {\n this.$message.error(this.$t('dept.chooseerror'));\n return;\n }\n this.$emit('input', node.id);\n this.$emit('update:deptName', node.name);\n this.showDeptName = node.name;\n this.visibleDept = false;\n this.deptList = [];\n this.filterText = '';\n }\n }\n};",{"version":3,"names":["name","data","filterText","visibleDept","deptList","showDeptName","expandedKeys","defaultProps","children","label","props","value","Number","String","deptName","query","Boolean","placeholder","watch","val","$refs","tree","filter","methods","deptDialog","setCurrentKey","getDeptList","filterNode","indexOf","id","_this","$http","get","then","_ref","res","code","$message","error","msg","$nextTick","catch","cancelHandle","clearHandle","$emit","commitHandle","node","getCurrentNode","$t"],"sources":["src/components/ren-dept-tree/src/ren-dept-tree.vue"],"sourcesContent":["\r\n\r\n"],"mappings":";;AAmCA;EACAA,IAAA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,UAAA;MACAC,WAAA;MACAC,QAAA;MACAC,YAAA;MACAC,YAAA;MACAC,YAAA;QACAC,QAAA;QACAC,KAAA;MACA;IACA;EACA;EACAC,KAAA;IACAC,KAAA,GAAAC,MAAA,EAAAC,MAAA;IACAC,QAAA,EAAAD,MAAA;IACAE,KAAA,EAAAC,OAAA;IACAC,WAAA,E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