1 line
18 KiB
JSON
1 line
18 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\\add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\building\\add-or-update.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\timport {\n\t\tgetDictDataList\n\t} from '@/utils'\n\timport debounce from 'lodash/debounce'\n\timport buildingTree from '@/views/modules/building/building-tree'\n\timport ajax from '@/utils/login'\n\texport default {\n\t\tcomponents: {\n\t\t\tbuildingTree\n\t\t},\n \t\tinject: ['refresh'],\n\t\tdata() {\n\t\t\tconst validateType = (rule, value, UWBallback) => {\n\t\t\t\tif (value != '0' && !this.dataForm.dfParentName) {\n\t\t\t\t\tUWBallback(new Error('请选择楼层或房间上级'))\n\t\t\t\t} else {\n\t\t\t\t\tUWBallback()\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tshowFloorCascader: false, // 是否显示楼层的cascader(当选择楼层\"1\"时展示)\n\t\t\t\tuwbFloorList: [], // 楼栋、楼层\n\t\t\t\tdialogVisible: false,\n\t\t\t\tloading: false,\n\t\t\t\ttype: 'post',\n\t\t\t\tdfTypeList: getDictDataList('buildingType'),\n\t\t\t\tdfPurposeList: getDictDataList('purpose'),\n\t\t\t\tdataForm: {\n\t\t\t\t\tdfParentid: '0',\n\t\t\t\t\tdfParentName: '',\n\t\t\t\t\tdfType: '',\n\t\t\t\t\tuwbFloors: [],\n\t\t\t\t\tdfFloorname: '',\n\t\t\t\t\tdfPurpose: '',\n\t\t\t\t\tdfOrder: 0,\n\t\t\t\t\tdrCapacity: 1\n\t\t\t\t},\n\t\t\t\trules: {\n\t\t\t\t\tdfType: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidator: validateType,\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tuwbFloors: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}],\n\t\t\t\t\tdfPurpose: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tdfFloorname: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmax: 30,\n\t\t\t\t\t\t\tmessage: '最多 30 个字符',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tdfOrder: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tdrCapacity: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\t\t// 获取UWB楼栋和楼层的cascader\n\t\t\t\tajax({\n\t\t\t\t\turl:\"/map/map\",\n\t\t\t\t\t// url:\"/system/scdormitoryfloor/uwbbuildingtree\",\n\t\t\t\t\tmethod:\"get\"\n\t\t\t\t}).then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\t// status 200\n\t\t\t\t\tif (res.status !==200) {\n\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\t// this.uwbFloorList = res.data.map(item => {\n\t\t\t\t\t// \titem.children = item.children.map(item1 => {\n\t\t\t\t\t// \t\treturn {\n\t\t\t\t\t// \t\t\tlabel: item1.label,\n\t\t\t\t\t// \t\t\tvalue: item1.v
|