forked from zhurui/management
1 line
11 KiB
JSON
1 line
11 KiB
JSON
|
{"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 getDict
|