林火综合应急信息管理系统前端
guoshilong
2023-03-08 0b552eaf6d2ed42e1cd6b283ac5ac3d2b0b05fbe
优化火灾补录数据字典回显
1 files modified
13 ■■■■■ changed files
src/views/fire/fireSupplement.vue 13 ●●●●● patch | view | raw | blame | history
src/views/fire/fireSupplement.vue
@@ -66,6 +66,7 @@
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",
@@ -95,7 +96,8 @@
              label: 'title',
              value: 'key'
            },
            dicUrl: 'api/blade-system/region/lazy-tree',
            // dicUrl: 'api/blade-system/region/lazy-tree',
            dicData:[],
            slot: true
          },
          {
@@ -605,6 +607,15 @@
    }
  },
  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 {