| | |
| | | import {add} from "@/api/fireSupplement/fireSupplement"; |
| | | import OpenLayersMap from "@/components/OpenLayersMap/index"; |
| | | import {getAll} from "@/api/fire/fire"; |
| | | import {getLazyTree} from "@/api/base/region"; |
| | | |
| | | export default { |
| | | name: "fireSupplieMent", |
| | |
| | | label: 'title', |
| | | value: 'key' |
| | | }, |
| | | dicUrl: 'api/blade-system/region/lazy-tree', |
| | | // dicUrl: 'api/blade-system/region/lazy-tree', |
| | | dicData:[], |
| | | slot: true |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | //手动加载区域的数据字典,使用dicUrl会使其他数据字典回显更慢 |
| | | getLazyTree().then(res=>{ |
| | | if (res.data.code == 200){ |
| | | let data = res.data.data |
| | | data.shift() |
| | | const column = this.findObject(this.option.column, "location"); |
| | | column.dicData = data |
| | | } |
| | | }) |
| | | if (this.info) { |
| | | this.initDetail() |
| | | } else { |