management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/c40ffc91c9ac79fa153860d066d...

1 line
15 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

{"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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A,KAAA,CAAA,OAAA;AACA;AAEA,WATA;AAUA,SAlDA,MAmDA;AACA,UAAA,KAAA,CAAA,QAAA,GAAA,EAAA;;AACA,UAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,IAAA,CAAA,GAAA;AACA;AACA,OAxDA;AAyDA,KA5DA;AA6DA,IAAA,eA7DA,2BA6DA,IA7DA,EA6DA;AACA,UAAA,CAAA,GAAA,IAAA,CAAA,KAAA,CAAA,IAAA,CAAA,SAAA,CAAA,IAAA,CAAA,CAAA;AACA,UAAA,GAAA,GAAA;AACA,QAAA,UAAA,EAAA,CAAA,CAAA,UADA;AAEA,QAAA,OAAA,EAAA,CAAA,CAAA,OAFA;AAGA,QAAA,YAAA,EAAA,CAAA,CAAA;AAHA,OAAA;AAKA,WAAA,KAAA,CAAA,SAAA,EAAA,GAAA;AACA,KArEA;AAsEA,IAAA,UAtEA,sBAsEA,KAtEA,EAsEA,IAtEA,EAsEA;AACA,UAAA,CAAA,KAAA,EAAA,OAAA,IAAA;AACA,aAAA,IAAA,CAAA,IAAA,CAAA,OAAA,CAAA,KAAA,MAAA,CAAA,CAAA;AACA;AAzEA;AAvBA,CAAA","sourcesContent":["<template>\n <div>\n <el-input\n v-if=\"type!='goout'\"\n placeholder=\"请输入\"\n clearable\n v-model=\"filterText\">\n <i slot=\"suffix\" class=\"el-input__icon el-icon-search\"></i>\n </el-input>\n <p class=\"title\"></p>\n <el-tree \n v-if=\"type=='room'\"\n :data=\"dataList\" \n :props=\"{ label: 'df_floorname', children: 'children'}\"\n highlight-current \n accordion \n node-key=\"df_floorid\" \n ref=\"tree\" \n check-on-click-node\n :default-expanded-keys=\"defaultCheckedKeysRoom\"\n :default-checked-keys=\"defaultCheckedKeysRoom\"\n :filter-node-method=\"filterNode\" \n @check=\"handleNodeClick\">\n </el-tree>\n <el-tree \n v-else-if=\"type=='electric'\"\n :data=\"dataList\" \n :props=\"{ label: 'df_floorname', children: 'children'}\"\n accordion \n highlight-current \n node-key=\"df_floorid\" \n ref=\"tree\" \n check-on-click-node\n :default-expanded-keys=\"defaultCheckedKeysElectric\"\n :default-checked-keys=\"defaultCheckedKeysElectric\"\n :filter-node-method=\"filterNode\" \n @check=\"handleNodeClick\">\n </el-tree>\n <el-tree \n class=\"gooutTree\"\n v-else-if=\"type=='goout'\"\n :data=\"dataList\" \n :props=\"{ label: 'df_floorname', children: 'children'}\"\n accordion \n highlight-current \n node-key=\"df_floorid\" \n ref=\"tree\" \n check-on-click-node\n :default-expanded-keys=\"defaultCheckedKeysGoout\"\n :default-checked-keys=\"defaultCheckedKeysGoout\"\n :filter-node-method=\"filterNode\" \n @check=\"handleNodeClick\">\n </el-tree> \n </div>\n</template>\n\n<script>\nimport { treeDataTranslateDis,treeDataTranslate } from '@/utils'\n export default {\n props: {\n type: String\n },\n data(){\n return{\n filterText:'',\n dataList: [],\n defaultCheckedKeysElectric:[],\n defaultCheckedKeysGoout:[],\n defaultCheckedKeysRoom:[],\n keyElectric:'',\n keyGoout:'',\n }\n },\n watch: {\n filterText (val) {\n this.$refs.tree.filter(val);\n },\n },\n mounted(){\n this.initTree(); \n },\n methods:{\n //第一级数据\n initTree(){\n this.$http.get('/system/scdormitoryfloor/roomTree/0').then(({data:res})=>{\n if(res.code==0){\n let list=res.data.map(item=>{\n return {\n ...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 //外出管理 展示第一栋 的 第一层\n this.keyGoout=this.dataList[0]['children'][0].id;\n let type=this.dataList[0]['children'][0].df_type;\n let valGoout={\n df_floorid:this.keyGoout,\n df_type:type\n }\n\n //宿舍房间 展示第一栋\n this.keyRoom=this.dataList[0].id;\n let typeroom=this.dataList[0].df_type;\n let valRoom={\n df_floorid:this.keyRoom,\n df_type:typeroom\n }\n\n //树 默认展示 数组结构\n this.defaultCheckedKeysElectric.push(this.keyElectric);\n this.defaultCheckedKeysGoout.push(this.keyGoout);\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 //默认展开 的 节点 标亮\n this.$nextTick(()=>{\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 })\n }\n else{\n this.dataList=[]\n this.$message.error(data.msg)\n }\n })\n },\n handleNodeClick(data){\n let a=JSON.parse(JSON.stringify(data));\n let 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(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n.title{\n color:#fff\n}\n/* 滚动条 */\n.el-tree::-webkit-scrollbar-track{\n -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.3);\n border-radius: 15px;\n background-color: rgba(255,255,255,0.8);\n}\n.el-tree::-webkit-scrollbar{\n width: 5px;\n background-color: rgba(179, 174, 174, 0);\n}\n.el-tree::-webkit-scrollbar-thumb{\n border-radius: 15px;\n -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.3);\n background-color: #555;\n}\n/deep/.el-tree-node__label{\n\tfont-size: 18px;\n}\n</style>"],"sourceRoot":"src/components/public"}]}