| | |
| | | import {getDetail as getSupplementDetail} from "@/api/fireSupplement/fireSupplement" |
| | | import {mapGetters} from "vuex"; |
| | | import FireSupplieMent from "@/views/fire/fireSupplement"; |
| | | import {getLazyTree} from "@/api/base/region"; |
| | | |
| | | export default { |
| | | components: {FireSupplieMent}, |
| | |
| | | search: true, |
| | | searchSpan: 3, |
| | | }, |
| | | |
| | | { |
| | | label: "行政区域", |
| | | prop: "location", |
| | |
| | | label: 'title', |
| | | value: 'key' |
| | | }, |
| | | dicUrl: 'api/blade-system/region/lazy-tree', |
| | | dicData:[], |
| | | slot: true, |
| | | search:true, |
| | | hide:true, |
| | | searchSpan:3, |
| | | dicFormatter(res){ |
| | | res.data.shift() |
| | | return res.data |
| | | } |
| | | }, |
| | | { |
| | | label: "火灾等级", |
| | |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | 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 |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |