{"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\\views\\modules\\building\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\building\\index.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":["//\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 addOrUpdate from \"./add-or-update\";\nimport { treeDataTranslate, getDictLabel } from '@/utils';\nexport default {\n components: {\n addOrUpdate: addOrUpdate\n },\n inject: ['refresh'],\n data: function data() {\n return {\n formData: {\n name: '',\n total: 0,\n pageNo: 1,\n pageSize: 10\n },\n dataList: [],\n expandList: [],\n allData: []\n };\n },\n created: function created() {\n this.initTree();\n },\n methods: {\n initTree: function initTree() {\n var _this = this;\n\n //type 0:楼栋 1:房间\n this.$http({\n url: \"/system/scdormitoryfloor/page\",\n methods: \"get\",\n params: {\n pid: '0',\n type: 0\n }\n }).then(function (_ref) {\n var data = _ref.data;\n\n if (data.code == 0) {\n _this.dataList = data.data;\n } else {\n _this.dataList = [];\n\n _this.$message.error(data.msg);\n }\n });\n },\n // 编辑\n editHandle: function editHandle(row) {\n this.$refs['addOrUpdate'].init(row.dfFloorid, row.dfType);\n },\n // 删除\n deleteHandle: function deleteHandle(row) {\n var _this2 = this;\n\n this.$confirm(this.$t('prompt.info', {\n 'handle': this.$t('delete')\n }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(function () {\n _this2.$http({\n url: \"/system/scdormitoryfloor/\".concat(row.dfFloorid, \"/\").concat(row.dfType),\n method: 'delete'\n }).then(function (_ref2) {\n var data = _ref2.data;\n\n if (data.code == 0) {\n // this.initTree()\n _this2.refresh();\n\n _this2.$message.success(data.msg);\n } else {\n _this2.$message.error(data.msg);\n }\n });\n });\n },\n addHandle: function addHandle() {\n this.$refs['addOrUpdate'].init();\n },\n load: function load(tree, treeNode, resolve) {\n var _this3 = this;\n\n this.$http({\n url: \"/system/scdormitoryfloor/page\",\n method: 'get',\n params: {\n pid: tree.dfFloorid,\n type: tree.dfType\n }\n }).then(function (_ref3) {\n var res = _ref3.data;\n\n if (res.code !== 0) {\n return _this3.$message.error(res.msg);\n }\n\n resolve(res.data);\n }).catch(function () {});\n },\n formatterType: function formatterType(row) {\n return getDictLabel('buildingType', row.dfType);\n },\n formatterPurpose: function formatterPurpose(row) {\n return getDictLabel('purpose', row.dfPurpose);\n }\n }\n};",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAA,WAAA;AACA,SAAA,iBAAA,EAAA,YAAA,QAAA,SAAA;AACA,eAAA;AACA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA;AADA,GADA;AAIA,EAAA,MAAA,EAAA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