{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-region-tree\\src\\ren-region-tree.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-region-tree\\src\\ren-region-tree.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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\";\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//\n//\n//\n//\n//\n//\nimport { treeDataTranslate } from '@/utils';\nexport default {\n name: 'RenRegionTree',\n data: function data() {\n return {\n filterText: '',\n visibleTree: false,\n dataList: [],\n showName: '',\n expandedKeys: null,\n defaultProps: {\n children: 'children',\n label: 'name'\n }\n };\n },\n props: {\n value: [Number, String],\n parentName: String,\n placeholder: String\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n },\n parentName: function parentName(val) {\n this.showName = val;\n }\n },\n methods: {\n treeDialog: function treeDialog() {\n this.expandedKeys = null;\n\n if (this.$refs.tree) {\n this.$refs.tree.setCurrentKey(null);\n }\n\n this.visibleTree = true;\n this.getDataList(this.value);\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n getDataList: function getDataList(id) {\n var _this = this;\n\n return this.$http.get('/sys/region/tree').then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n\n _this.dataList = treeDataTranslate(res.data);\n\n _this.$nextTick(function () {\n _this.$refs.tree.setCurrentKey(id);\n\n _this.expandedKeys = [id];\n });\n }).catch(function () {});\n },\n cancelHandle: function cancelHandle() {\n this.visibleTree = false;\n this.dataList = [];\n this.filterText = '';\n },\n clearHandle: function clearHandle() {\n this.$emit('input', '0');\n this.$emit('update:parentName', '');\n this.showName = '';\n this.visibleTree = false;\n this.dataList = [];\n this.filterText = '';\n },\n commitHandle: function commitHandle() {\n var node = this.$refs.tree.getCurrentNode();\n\n if (!node) {\n this.$message.error(this.$t('choose'));\n return;\n }\n\n this.$emit('input', node.id);\n this.$emit('update:parentName', node.name);\n this.showName = node.name;\n this.visibleTree = false;\n this.dataList = [];\n this.filterText = '';\n }\n }\n};",{"version":3,"sources":["ren-region-tree.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAA,iBAAA,QAAA,SAAA;AACA,eAAA;AACA,EAAA,IAAA,EAAA,eADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,UAAA,EAAA,EADA;AAEA,MAAA,WAAA,EAAA,KAFA;AAGA,MAAA,QAAA,EAAA,EAHA;AAIA,MAAA,QAAA,EAAA,EAJA;AAKA,MAAA,YAAA,EAAA,IALA;AAMA,MAAA,YAAA,EAAA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,UAAA,KAAA,CAAA,KAAA,CAAA,IAAA,CAAA,aAAA,CAAA,EAAA;;AACA,UAAA,KAAA,CAAA,YAAA,GAAA,CAAA,EAAA,CAAA;AACA,SAHA;AAIA,OATA,EASA,KATA,CASA,YAAA,CAAA,CATA,CAAA;AAUA,KAxBA;AAyBA,IAAA,YAzBA,0BAyBA;AACA,WAAA,WAAA,GAAA,KAAA;AACA,WAAA,QAAA,GAAA,EAAA;AACA,WAAA,UAAA,GAAA,EAAA;AACA,KA7BA;AA8BA,IAAA,WA9BA,yBA8BA;AACA,WAAA,KAAA,CAAA,OAAA,EAAA,GAAA;AACA,WAAA,KAAA,CAAA,mBAAA,EAAA,EAAA;AACA,WAAA,QAAA,GAAA,EAAA;AACA,WAAA,WAAA,GAAA,KAAA;AACA,WAAA,QAAA,GAAA,EAAA;AACA,WAAA,UAAA,GAAA,EAAA;AACA,KArCA;AAsCA,IAAA,YAtCA,0BAsCA;AACA,UAAA,IAAA,GAAA,KAAA,KAAA,CAAA,IAAA,CAAA,cAAA,EAAA;;AACA,UAAA,CAAA,IAAA,EAAA;AACA,aAAA,QAAA,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA,QAAA,CAAA;AACA;AACA;;AACA,WAAA,KAAA,CAAA,OAAA,EAAA,IAAA,CAAA,EAAA;AACA,WAAA,KAAA,CAAA,mBAAA,EAAA,IAAA,CAAA,IAAA;AACA,WAAA,QAAA,GAAA,IAAA,CAAA,IAAA;AACA,WAAA,WAAA,GAAA,KAAA;AACA,WAAA,QAAA,GAAA,EAAA;AACA,WAAA,UAAA,GAAA,EAAA;AACA;AAlDA;AA5BA,CAAA","sourcesContent":["\n \n \n \n \n \n \n \n \n \n \n \n {{ $t('query') }}\n \n \n \n \n \n {{ $t('cancel') }}\n {{ $t('clear') }}\n {{ $t('confirm') }}\n \n \n \n\n\n\n"],"sourceRoot":"src/components/ren-region-tree/src"}]}