{"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\\public\\dormitory-tree.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\public\\dormitory-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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { treeDataTranslateDis, treeDataTranslate } from '@/utils';\nexport default {\n props: {\n type: String\n },\n data: function data() {\n return {\n filterText: '',\n dataList: [],\n defaultCheckedKeysElectric: [],\n defaultCheckedKeysGoout: [],\n defaultCheckedKeysRoom: [],\n keyElectric: '',\n keyGoout: ''\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n mounted: function mounted() {\n this.initTree();\n },\n methods: {\n //第一级数据\n initTree: function initTree() {\n var _this = this;\n\n this.$http.get('/system/scdormitoryfloor/roomTree/0').then(function (_ref) {\n var res = _ref.data;\n\n if (res.code == 0) {\n var list = res.data.map(function (item) {\n return _objectSpread({}, item, {\n name: item.df_floorname,\n id: item.df_floorid,\n pid: item.df_parentid\n });\n });\n _this.dataList = treeDataTranslate(list); // 宿舍电流 展示第一栋 的 第一层 的 第一个房间\n\n _this.keyElectric = _this.dataList[0]['children'][0]['children'][0].id; //外出管理 展示第一栋 的 第一层\n\n _this.keyGoout = _this.dataList[0]['children'][0].id;\n var type = _this.dataList[0]['children'][0].df_type;\n var valGoout = {\n df_floorid: _this.keyGoout,\n df_type: type //宿舍房间 展示第一栋\n\n };\n _this.keyRoom = _this.dataList[0].id;\n var typeroom = _this.dataList[0].df_type;\n var valRoom = {\n df_floorid: _this.keyRoom,\n df_type: typeroom //树 默认展示 数组结构\n\n };\n\n _this.defaultCheckedKeysElectric.push(_this.keyElectric);\n\n _this.defaultCheckedKeysGoout.push(_this.keyGoout);\n\n _this.defaultCheckedKeysRoom.push(_this.keyRoom); //储存数据\n\n\n _this.$store.state.user.defaultCheckedKeys = _this.keyElectric;\n _this.$store.state.user.valGoout = valGoout;\n _this.$store.state.user.valRoom = valRoom; //默认展开 的 节点 标亮\n\n _this.$nextTick(function () {\n if (_this.type == 'electric') {\n _this.$refs.tree.setCurrentKey(_this.keyElectric);\n } else if (_this.type == 'goout') {\n _this.$refs.tree.setCurrentKey(_this.keyGoout);\n } else if (_this.type == 'room') {\n _this.$refs.tree.setCurrentKey(_this.keyRoom);\n }\n });\n } else {\n _this.dataList = [];\n\n _this.$message.error(data.msg);\n }\n });\n },\n handleNodeClick: function handleNodeClick(data) {\n var a = JSON.parse(JSON.stringify(data));\n var val = {\n df_floorid: a.df_floorid,\n df_type: a.df_type,\n df_floorname: a.df_floorname\n };\n this.$emit('treeFun', val);\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n }\n }\n};",{"version":3,"sources":["dormitory-tree.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,SAAA,oBAAA,EAAA,iBAAA,QAAA,SAAA;AACA,eAAA;AACA,EAAA,KAAA,EAAA;AACA,IAAA,IAAA,EAAA;AADA,GADA;AAIA,EAAA,IAJA,kBAIA;AACA,WAAA;AACA,MAAA,UAAA,EAAA,EADA;AAEA,MAAA,QAAA,EAAA,EAFA;AAGA,MAAA,0BAAA,EAAA,EAHA;AAIA,MAAA,uBAAA,EAAA,EAJA;AAKA,MAAA,sBAAA,EAAA,EALA;AAMA,MAAA,WAAA,EAAA,EANA;AAOA,MAAA,QAAA,EAAA;AAPA,KAAA;AASA,GAdA;AAeA,EAAA,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