1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/4a4940886d4a856ee2033c4bb6f...

1 line
8.2 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\\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","sourceRoot":"src/views/modules/building","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"]}]}