6 changed files with 78 additions and 184 deletions
@ -1,156 +0,0 @@ |
|||
import type { CheckEvaluationRow, CheckEvaluationTypeStatVo } from '@/api/efcode/report/statistics-check-evaluation'; |
|||
|
|||
/** 模拟数据:接口未就绪时用于页面预览 */ |
|||
|
|||
/** 执法反馈总数(与设计稿一致) */ |
|||
export const MOCK_FEEDBACK_TOTAL = 867; |
|||
|
|||
const defaultFeedback = { |
|||
feedbackContent: '执法人员出示执法证件,检查程序规范,未影响企业正常生产经营。', |
|||
satisfactionLevel: 3, |
|||
satisfactionLevelText: '非常满意', |
|||
linkman: '张经理', |
|||
linkmanTel: '13800001234', |
|||
problem1: 0, |
|||
problem2: 0, |
|||
problem3: 0, |
|||
problem4: 0, |
|||
problem5: 0 |
|||
}; |
|||
|
|||
/** Tab1 执法反馈列表 */ |
|||
export const mockFeedbackRows: CheckEvaluationRow[] = [ |
|||
{ |
|||
id: 'mock-1', |
|||
districtName: '罗湖区', |
|||
bureauDeptName: '深圳市罗湖区住房和建设局', |
|||
lawEnforcerDisplay: '王振鹏,杨飞', |
|||
enforcementTime: '2026-09-18 11:33:17', |
|||
enterpriseName: '上海建工集团股份有限公司', |
|||
lawEnforcementItemText: '治安检查', |
|||
feedbackTime: '2026-09-18 11:33:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-2', |
|||
districtName: '福田区', |
|||
bureauDeptName: '深圳市福田区应急管理局', |
|||
lawEnforcerDisplay: '李志明', |
|||
enforcementTime: '2026-09-18 10:46:17', |
|||
enterpriseName: '深圳市强达电路股份有限公司', |
|||
lawEnforcementItemText: '安全生产检查', |
|||
feedbackTime: '2026-09-18 10:46:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-3', |
|||
districtName: '南山区', |
|||
bureauDeptName: '深圳市南山区城市管理和综合执法局', |
|||
lawEnforcerDisplay: '张海峰', |
|||
enforcementTime: '2026-09-18 09:59:17', |
|||
enterpriseName: '深圳康泰生物制品股份有限公司', |
|||
lawEnforcementItemText: '消防安全检查', |
|||
feedbackTime: '2026-09-18 09:59:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-4', |
|||
districtName: '宝安区', |
|||
bureauDeptName: '深圳市宝安区卫生健康局', |
|||
lawEnforcerDisplay: '陈晓东', |
|||
enforcementTime: '2026-09-18 09:12:17', |
|||
enterpriseName: '欧姆龙电子部件(深圳)有限公司', |
|||
lawEnforcementItemText: '环境保护检查', |
|||
feedbackTime: '2026-09-18 09:12:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-5', |
|||
districtName: '龙岗区', |
|||
bureauDeptName: '深圳市龙岗区生态环境局', |
|||
lawEnforcerDisplay: '刘洋', |
|||
enforcementTime: '2026-09-18 08:25:17', |
|||
enterpriseName: '吉田拉链(深圳)有限公司公明工厂', |
|||
lawEnforcementItemText: '市容市貌检查', |
|||
feedbackTime: '2026-09-18 08:25:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-6', |
|||
districtName: '龙华区', |
|||
bureauDeptName: '深圳市龙华区应急管理局', |
|||
lawEnforcerDisplay: '黄敏', |
|||
enforcementTime: '2026-09-18 07:38:17', |
|||
enterpriseName: '深圳市深水龙岗污水处理有限公司', |
|||
lawEnforcementItemText: '治安检查', |
|||
feedbackTime: '2026-09-18 07:38:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-7', |
|||
districtName: '盐田区', |
|||
bureauDeptName: '深圳市盐田区文化广电旅游体育局', |
|||
lawEnforcerDisplay: '林小峰', |
|||
enforcementTime: '2026-09-18 06:51:17', |
|||
enterpriseName: '深圳农牧美益肉业有限公司', |
|||
lawEnforcementItemText: '安全生产检查', |
|||
feedbackTime: '2026-09-18 06:51:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-8', |
|||
districtName: '坪山区', |
|||
bureauDeptName: '深圳市坪山区水务局', |
|||
lawEnforcerDisplay: '周建军', |
|||
enforcementTime: '2026-09-18 06:04:17', |
|||
enterpriseName: '深圳市里程食品有限公司', |
|||
lawEnforcementItemText: '消防安全检查', |
|||
feedbackTime: '2026-09-18 06:04:17', |
|||
...defaultFeedback |
|||
}, |
|||
{ |
|||
id: 'mock-9', |
|||
districtName: '光明区', |
|||
bureauDeptName: '深圳市光明区教育局', |
|||
lawEnforcerDisplay: '吴娟', |
|||
enforcementTime: '2026-09-18 05:17:17', |
|||
enterpriseName: '上海建工集团股份有限公司', |
|||
lawEnforcementItemText: '环境保护检查', |
|||
feedbackTime: '2026-09-18 05:17:17', |
|||
...defaultFeedback |
|||
} |
|||
]; |
|||
|
|||
/** Tab2 投诉类型统计 */ |
|||
export const mockTypeStatList: CheckEvaluationTypeStatVo[] = [ |
|||
{ name: '治安检查', count: 174, percentage: '20.07%' }, |
|||
{ name: '安全生产检查', count: 174, percentage: '20.07%' }, |
|||
{ name: '消防安全检查', count: 173, percentage: '19.95%' }, |
|||
{ name: '环境保护检查', count: 173, percentage: '19.95%' }, |
|||
{ name: '市容市貌检查', count: 173, percentage: '19.95%' } |
|||
]; |
|||
|
|||
/** Tab2 全市区域统计 */ |
|||
export const mockAreaStatList: CheckEvaluationTypeStatVo[] = [ |
|||
{ name: '罗湖区', count: 174, percentage: '20.07%' }, |
|||
{ name: '福田区', count: 173, percentage: '19.95%' }, |
|||
{ name: '南山区', count: 173, percentage: '19.95%' }, |
|||
{ name: '宝安区', count: 173, percentage: '19.95%' }, |
|||
{ name: '龙岗区', count: 174, percentage: '20.07%' } |
|||
]; |
|||
|
|||
/** Tab2 街道统计 */ |
|||
export const mockStreetStatList: CheckEvaluationTypeStatVo[] = [ |
|||
{ name: '南湖街道', count: 174, percentage: '20.07%' }, |
|||
{ name: '福田街道', count: 173, percentage: '19.95%' }, |
|||
{ name: '粤海街道', count: 173, percentage: '19.95%' }, |
|||
{ name: '新安街道', count: 173, percentage: '19.95%' }, |
|||
{ name: '坂田街道', count: 174, percentage: '20.07%' } |
|||
]; |
|||
|
|||
/** 按类型返回模拟统计 */ |
|||
export const getMockTypeStat = (type: string): CheckEvaluationTypeStatVo[] => { |
|||
if (type === '') return mockAreaStatList; |
|||
if (type === 'type') return mockTypeStatList; |
|||
return mockStreetStatList; |
|||
}; |
|||
Loading…
Reference in new issue