|
@@ -1,31 +1,50 @@
|
|
|
-// import {getDeptList} from "@/api/modules/dept";
|
|
|
-// import {dictDataType} from "@/api/modules/dict";
|
|
|
import { dictionary, dictionaryDefine } from './dictionary-define'
|
|
|
+import iconHAJC from '@/assets/images/gis-layout/gis-layout-tools_example-hajc.png'
|
|
|
+import iconJSJ from '@/assets/images/gis-layout/gis-layout-tools_example-jsj.png'
|
|
|
+import iconWGY from '@/assets/images/gis-layout/gis-layout-tools_example-wgy.png'
|
|
|
+import iconWXCL from '@/assets/images/gis-layout/gis-layout-tools_example-wxcl.png'
|
|
|
+import iconGALSB from '@/assets/images/gis-layout/gis-layout-tools_example-galsb.png'
|
|
|
+import iconSHLSB from '@/assets/images/gis-layout/gis-layout-tools_example-shlsb.png'
|
|
|
+import iconMYLSB from '@/assets/images/gis-layout/gis-layout-tools_example-mylsb.png'
|
|
|
+import iconLGSZYJKSCSB from '@/assets/images/gis-layout/gis-layout-tools_example-lgszyjkscsb.png'
|
|
|
+import iconJGZZMGS from '@/assets/images/gis-layout/gis-layout-tools_example-jgzzmgs.png'
|
|
|
+import iconLGSJKYFL from '@/assets/images/gis-layout/gis-layout-tools_example-lgsjkyfl.png'
|
|
|
+import iconJQ from '@/assets/images/gis-layout/gis-layout-tools_example-jq.png'
|
|
|
+import iconLG from '@/assets/images/gis-layout/gis-layout-tools_example-lg.png'
|
|
|
+import iconCZW from '@/assets/images/gis-layout/gis-layout-tools_example-czw.png'
|
|
|
+import iconHCZ from '@/assets/images/gis-layout/gis-layout-tools_example-hcz.png'
|
|
|
+import iconFZS from '@/assets/images/gis-layout/gis-layout-tools_example-fzs.png'
|
|
|
+import iconAXCBYPYJ from '@/assets/images/gis-layout/gis-layout-tools_example-axcbypyj.png'
|
|
|
+import iconGGCSFXYF from '@/assets/images/gis-layout/gis-layout-tools_example-ggcsfxyf.png'
|
|
|
+import iconXFJY from '@/assets/images/gis-layout/gis-layout-tools_example-xfjy.png'
|
|
|
+import iconQYFXFK from '@/assets/images/gis-layout/gis-layout-tools_example-qyfxfk.png'
|
|
|
+import iconSHZLFXFK from '@/assets/images/gis-layout/gis-layout-tools_example-shzlfxfk.png'
|
|
|
+import iconAJ from '@/assets/images/gis-layout/gis-layout-tools_example-aj.png'
|
|
|
|
|
|
const state = {
|
|
|
...dictionary,
|
|
|
elementTypeList: [
|
|
|
- {dictLabel: '海岸警察', dictValue: 'hajc'},
|
|
|
- {dictLabel: '缉私警', dictValue: 'jsj'},
|
|
|
- {dictLabel: '网格员', dictValue: 'wgy'},
|
|
|
- {dictLabel: '危险车辆', dictValue: 'wxcl'},
|
|
|
- {dictLabel: '公安类设备', dictValue: 'gal', dictType: 'sb', geoType: 'mysqlGeo:gis_sb_gal'},
|
|
|
- {dictLabel: '社会类设备', dictValue: 'shl', dictType: 'sb', geoType: 'mysqlGeo:gis_sb_shl'},
|
|
|
- {dictLabel: '民用类设备', dictValue: 'myl', dictType: 'sb', geoType: 'mysqlGeo:gis_sb_myl'},
|
|
|
- {dictLabel: '零关税自用进口生产设备', dictValue: 'lgszyjkscsb', dictType: 'qy', geoType: 'mysqlGeo:gis_qy_lgszyjkscsb'},
|
|
|
- {dictLabel: '加工增值免关税', dictValue: 'jgzzmgs', dictType: 'qy', geoType: 'mysqlGeo:gis_qy_jgzzmgs'},
|
|
|
- {dictLabel: '零关税进口原辅料', dictValue: 'lgsjkyfl', dictType: 'qy', geoType: 'mysqlGeo:gis_qy_lgsjkyfl'},
|
|
|
- {dictLabel: '景区', dictValue: 'jq'},
|
|
|
- {dictLabel: '旅馆', dictValue: 'lg'},
|
|
|
- {dictLabel: '出租屋', dictValue: 'czw'},
|
|
|
- {dictLabel: '火车站', dictValue: 'hcz'},
|
|
|
- {dictLabel: '线索(反走私)', dictValue: 'fzs'},
|
|
|
- {dictLabel: '线索(岸线船舶研判预警)', dictValue: 'axcbypyj'},
|
|
|
- {dictLabel: '线索(公共场所风险预防)', dictValue: 'ggcsfxyf'},
|
|
|
- {dictLabel: '线索(消防救援)', dictValue: 'xfjy'},
|
|
|
- {dictLabel: '线索(企业风险防控)', dictValue: 'qyfxfk'},
|
|
|
- {dictLabel: '线索(社会治理风险防控)', dictValue: 'shzlfxfk'},
|
|
|
- {dictLabel: '案件', dictValue: 'aj'},
|
|
|
+ {dictLabel: '海岸警察', dictValue: 'hajc', icon: iconHAJC},
|
|
|
+ {dictLabel: '缉私警', dictValue: 'jsj', icon: iconJSJ},
|
|
|
+ {dictLabel: '网格员', dictValue: 'wgy', icon: iconWGY},
|
|
|
+ {dictLabel: '危险车辆', dictValue: 'wxcl', icon: iconWXCL},
|
|
|
+ {dictLabel: '公安类设备', dictValue: 'gal', icon: iconGALSB, dictType: 'sb', geoType: 'mysqlGeo:gis_sb_gal'},
|
|
|
+ {dictLabel: '社会类设备', dictValue: 'shl', icon: iconSHLSB, dictType: 'sb', geoType: 'mysqlGeo:gis_sb_shl'},
|
|
|
+ {dictLabel: '民用类设备', dictValue: 'myl', icon: iconMYLSB, dictType: 'sb', geoType: 'mysqlGeo:gis_sb_myl'},
|
|
|
+ {dictLabel: '零关税自用进口生产设备', dictValue: 'lgszyjkscsb', icon: iconLGSZYJKSCSB, dictType: 'qy', geoType: 'mysqlGeo:gis_qy_lgszyjkscsb'},
|
|
|
+ {dictLabel: '加工增值免关税', dictValue: 'jgzzmgs', icon: iconJGZZMGS, dictType: 'qy', geoType: 'mysqlGeo:gis_qy_jgzzmgs'},
|
|
|
+ {dictLabel: '零关税进口原辅料', dictValue: 'lgsjkyfl', icon: iconLGSJKYFL, dictType: 'qy', geoType: 'mysqlGeo:gis_qy_lgsjkyfl'},
|
|
|
+ {dictLabel: '景区', dictValue: 'jq', icon: iconJQ},
|
|
|
+ {dictLabel: '旅馆', dictValue: 'lg', icon: iconLG},
|
|
|
+ {dictLabel: '出租屋', dictValue: 'czw', icon: iconCZW},
|
|
|
+ {dictLabel: '火车站', dictValue: 'hcz', icon: iconHCZ},
|
|
|
+ {dictLabel: '线索(反走私)', dictValue: 'fzs', icon: iconFZS},
|
|
|
+ {dictLabel: '线索(岸线船舶研判预警)', dictValue: 'axcbypyj', icon: iconAXCBYPYJ},
|
|
|
+ {dictLabel: '线索(公共场所风险预防)', dictValue: 'ggcsfxyf', icon: iconGGCSFXYF},
|
|
|
+ {dictLabel: '线索(消防救援)', dictValue: 'xfjy', icon: iconXFJY},
|
|
|
+ {dictLabel: '线索(企业风险防控)', dictValue: 'qyfxfk', icon: iconQYFXFK},
|
|
|
+ {dictLabel: '线索(社会治理风险防控)', dictValue: 'shzlfxfk', icon: iconSHZLFXFK},
|
|
|
+ {dictLabel: '案件', dictValue: 'aj', icon: iconAJ},
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -37,10 +56,10 @@ const getters = {
|
|
|
})
|
|
|
return map
|
|
|
},
|
|
|
- elementTypeMapGeo: (state) => {
|
|
|
+ elementTypeMapObj: (state) => {
|
|
|
const map = new Map()
|
|
|
state.elementTypeList.forEach(v => {
|
|
|
- map.set(v.dictValue, v.geoType)
|
|
|
+ map.set(v.dictValue, v)
|
|
|
})
|
|
|
return map
|
|
|
}
|