forked from zhurui/management
1 line
8.2 KiB
JSON
1 line
8.2 KiB
JSON
|
{"remainingRequest":"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//\n\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",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRo
|