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

1 line
11 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these 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\\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":";;;;;;;;;;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;AAAA,YAAA,GAAA,SAAA,IAAA;;AACA,YAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,iBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,IAAA,CAAA;AACA,OAZA,EAYA,KAZA,CAYA,YAAA,CAAA,CAZA;AAaA,KA/DA;AAgEA,IAAA,aAhEA,yBAgEA,GAhEA,EAgEA;AACA,aAAA,YAAA,CAAA,cAAA,EAAA,GAAA,CAAA,MAAA,CAAA;AACA,KAlEA;AAmEA,IAAA,gBAnEA,4BAmEA,GAnEA,EAmEA;AACA,aAAA,YAAA,CAAA,SAAA,EAAA,GAAA,CAAA,SAAA,CAAA;AACA;AArEA;AArBA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill building-list\">\n <!-- <el-form ref=\"form\" :model=\"formData\" label-width=\"80px\" inline>\n <el-form-item label=\"名称\">\n <el-input v-model=\"formData.name\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\">查询</el-button>\n <el-button >重置</el-button>\n </el-form-item>\n </el-form>-->\n <el-row>\n <el-col>\n <el-button v-if=\"$hasPermission('system:scdormitoryfloor:save')\" type=\"primary\" @click=\"addHandle\">新增</el-button>\n </el-col>\n </el-row>\n <el-table\n :data=\"dataList\"\n :load=\"load\"\n lazy\n row-key=\"dfFloorid\"\n :tree-props=\"{children: 'children', hasChildren: 'hasChildren'}\"\n >\n <el-table-column prop=\"dfFloorname\" label=\"名称\"></el-table-column>\n <el-table-column prop=\"dfType\" label=\"类型\" :formatter=\"formatterType\"></el-table-column>\n <el-table-column prop=\"dfPurpose\" label=\"用途\" :formatter=\"formatterPurpose\"></el-table-column>\n <el-table-column label=\"操作\" width=\"200\">\n <template slot-scope=\"scope\">\n <div>\n <el-button v-if=\"$hasPermission('system:scdormitoryfloor:update')\" type=\"text\" @click=\"editHandle(scope.row)\">修改</el-button>\n <el-button v-if=\"$hasPermission('system:scdormitoryfloor:delete')\" type=\"text\" @click=\"deleteHandle(scope.row)\">删除</el-button>\n </div>\n </template>\n </el-table-column>\n </el-table>\n <!-- 新增 编辑 -->\n <add-or-update ref=\"addOrUpdate\"></add-or-update>\n </el-card>\n</template>\n\n<script>\nimport addOrUpdate from './add-or-update'\nimport { treeDataTranslate ,getDictLabel} from '@/utils'\nexport default {\n components:{\n addOrUpdate\n },\n inject: ['refresh'],\n 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(){\n this.initTree()\n },\n methods:{\n initTree(){\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(({data})=>{\n if(data.code==0){\n this.dataList = data.data\n }\n else{\n this.dataList=[]\n this.$message.error(data.msg)\n }\n })\n },\n // 编辑\n editHandle(row){\n this.$refs['addOrUpdate'].init(row.dfFloorid,row.dfType)\n },\n // 删除\n deleteHandle(row){\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('delete') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(()=>{\n this.$http({\n url:`/system/scdormitoryfloor/${row.dfFloorid}/${row.dfType}`,\n method:'delete',\n }).then(({data})=>{\n if(data.code==0){\n // this.initTree()\n\t\t\t\t\t\t\tthis.refresh();\n this.$message.success(data.msg)\n }\n else{\n this.$message.error(data.msg)\n }\n })\n })\n },\n addHandle(){\n this.$refs['addOrUpdate'].init()\n },\n load (tree, treeNode, resolve) {\n this.$http({\n url:\"/system/scdormitoryfloor/page\",\n method:'get',\n params:{\n pid:tree.dfFloorid,\n type:tree.dfType\n }\n }).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n resolve(res.data)\n }).catch(() => {})\n },\n formatterType(row){\n return getDictLabel('buildingType',row.dfType)\n },\n formatterPurpose(row){\n return getDictLabel('purpose',row.dfPurpose)\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.el-row {\n margin-bottom: 20px;\n}\n</style>\n"],"sourceRoot":"src/views/modules/building"}]}