添加部分钩子函数,便于代码维护
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { riskAreaIcon } from '@/assets';
|
||||
|
||||
export const useRiskPoint = () => {
|
||||
// 信息框标题
|
||||
const informationBoxTitle = '风险区域';
|
||||
|
||||
const field = {
|
||||
riskName: '风险区名称',
|
||||
unitCode: '统一编号',
|
||||
housing: '住房(间)',
|
||||
permanentPopulation: '常住人口(人)',
|
||||
residentCounts: '居民户数(户)',
|
||||
riskProperty: '威胁财产(万元)',
|
||||
inspectorName: '巡查员姓名',
|
||||
inspectorTele: '巡查员手机号',
|
||||
position: '位置',
|
||||
lon: '经度',
|
||||
lat: '纬度',
|
||||
};
|
||||
|
||||
function getDisasterIcon(): string {
|
||||
return riskAreaIcon;
|
||||
}
|
||||
|
||||
return { informationBoxTitle, field, getDisasterIcon };
|
||||
};
|
||||
Reference in New Issue
Block a user