diff --git a/public/statistical/data-analysis-title-bg.png b/public/statistical/data-analysis-title-bg.png new file mode 100644 index 00000000..b370c931 Binary files /dev/null and b/public/statistical/data-analysis-title-bg.png differ diff --git a/public/statistical/decline.png b/public/statistical/decline.png new file mode 100644 index 00000000..00b7d5bb Binary files /dev/null and b/public/statistical/decline.png differ diff --git a/public/statistical/down.png b/public/statistical/down.png new file mode 100644 index 00000000..b418dc0f Binary files /dev/null and b/public/statistical/down.png differ diff --git a/public/statistical/go-up.png b/public/statistical/go-up.png new file mode 100644 index 00000000..e36ab583 Binary files /dev/null and b/public/statistical/go-up.png differ diff --git a/public/statistical/huanbi.webp b/public/statistical/huanbi.webp new file mode 100644 index 00000000..55b29420 Binary files /dev/null and b/public/statistical/huanbi.webp differ diff --git a/public/statistical/right-title-bg.png b/public/statistical/right-title-bg.png new file mode 100644 index 00000000..11faa525 Binary files /dev/null and b/public/statistical/right-title-bg.png differ diff --git a/public/statistical/select-bg.png b/public/statistical/select-bg.png new file mode 100644 index 00000000..7863384e Binary files /dev/null and b/public/statistical/select-bg.png differ diff --git a/public/statistical/up.png b/public/statistical/up.png new file mode 100644 index 00000000..e94f4275 Binary files /dev/null and b/public/statistical/up.png differ diff --git a/src/api/statistical/index.ts b/src/api/statistical/index.ts index 5cde02eb..d87a2822 100644 --- a/src/api/statistical/index.ts +++ b/src/api/statistical/index.ts @@ -1,20 +1,46 @@ import { defHttp } from '@/utils/http/axios'; + enum Api { GetTrendData = '/api/DroneScreenDisplay/GetTrendData', GetTuBanSummary = '/api/DroneScreenDisplay/GetTuBanSummary', GetTotalAndAreaByType = '/api/DroneScreenDisplay/GetTotalAndAreaByType', - GetTotalAndArea = '/api/DroneScreenDisplay/GetTotalAndArea' + GetTotalAndArea = '/api/DroneScreenDisplay/GetTotalAndArea', + GetAnalysisData = '/api/DroneScreenDisplay/GetAnalysisData', + CaseOffenceEcharts = '/api/DroneScreenDisplay/CaseOffenceEcharts', + GetTrendEchartsData = '/api/DroneScreenDisplay/GetTrendEchartsData', } -export function GetTrendData(params:{countyid:string;type:string;datatype:number;begindate?:string;enddate?:string;}) { +export function GetTrendData(params: { + countyid: string; + type: string; + datatype: number; + begindate?: string; + enddate?: string; +}) { // datatype 0按天统计,1按月统计 return defHttp.get({ url: Api.GetTrendData, params }); } -export function GetTuBanSummary(params:{countyid:string;type:string;}) { +export function GetTuBanSummary(params: { countyid: string; type: string }) { return defHttp.get({ url: Api.GetTuBanSummary, params }); } -export function GetTotalAndAreaByType(params:{countyid:string;type:string;}) { +export function GetTotalAndAreaByType(params: { countyid: string; type: string }) { return defHttp.get({ url: Api.GetTotalAndAreaByType, params }); } -export function GetTotalAndArea(params:{countyid:string;type:string;}) { +export function GetTotalAndArea(params: { countyid: string; type: string }) { return defHttp.get({ url: Api.GetTotalAndArea, params }); -} \ No newline at end of file +} +export function getAnalysisData(params: { countyid: string; month: number }) { + return defHttp.get({ url: Api.GetAnalysisData, params }); +} + +export function caseOffenceEcharts(params: { type: number; month: number }) { + return defHttp.get({ url: Api.CaseOffenceEcharts, params }); +} +export function getTrendEchartsData(params: { + type: number; + month: number; + datatype: number; + begindate: string; + enddate: string; +}) { + return defHttp.get({ url: Api.GetTrendEchartsData, params }); +} diff --git a/src/components/Upload/src/components/ImageUpload.vue b/src/components/Upload/src/components/ImageUpload.vue index f0892341..a1734f1c 100644 --- a/src/components/Upload/src/components/ImageUpload.vue +++ b/src/components/Upload/src/components/ImageUpload.vue @@ -355,6 +355,7 @@ } :deep(.ant-image){ margin-right: 10px; + margin-bottom: 10px; } #process-form-container{ width:50%;height:500px;background:red; diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 5048972b..c0061dcb 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -86,7 +86,7 @@ export const SchemeRoute: AppRouteRecordRaw = { export const SubjectRoute: AppRouteRecordRaw = { path: '/subject', name: 'subject', - component: () => import('@/views/subject/index.vue'), + component: () => import('@/views/subject/subject/index.vue'), meta: { title: '主题', }, diff --git a/src/utils/global.ts b/src/utils/global.ts index 3301e2cb..f4c8b04a 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -138,3 +138,31 @@ export const nowStatusOptions = [ { label: '县级审核', value: '县级审核' }, { label: '已归档', value: '已归档' }, ]; +//获取近7个月的时间 +export const getMonth = () => { + //创建现在的时间 + const data = new Date(); + //获取年 + let year = data.getFullYear(); + //获取月 + let mon = data.getMonth() + 1; + let arry: any = []; + for (let i = 0; i < 6; i++) { + if (mon <= 0) { + year = year - 1; + mon = mon + 12; + } + arry.push({ + label: `${mon}月`, + value: mon, + }); + mon = mon - 1; + } + return arry.reverse(); +}; +export const monthOptions = getMonth(); +export const monthAllOptions = () => { + let arr: any = getMonth(); + arr.reverse().unshift({ label: '全部', value: 0 }); + return arr; +}; diff --git a/src/views/demo/caseoffence/index.vue b/src/views/demo/caseoffence/index.vue index 135ddbdd..9c0e9792 100644 --- a/src/views/demo/caseoffence/index.vue +++ b/src/views/demo/caseoffence/index.vue @@ -18,15 +18,15 @@ - + {{ record.xfmj == 0 ? 0 : record.xfmj.toFixed(2) }} - + - + {{ record.xfgdmj == 0 ? 0 : record.xfgdmj.toFixed(2) }} - + @@ -35,15 +35,15 @@ - + {{ record.hfmj == 0 ? 0 : record.hfmj.toFixed(2) }} - + - + {{ record.hfgdmj == 0 ? 0 : record.hfgdmj.toFixed(2) }} - + @@ -52,15 +52,15 @@ - + {{ record.wfmj == 0 ? 0 : record.wfmj.toFixed(2) }} - + - + {{ record.wfgdmj == 0 ? 0 : record.wfgdmj.toFixed(2) }} - + @@ -69,15 +69,15 @@ - + {{ record.fnhmj == 0 ? 0 : record.fnhmj.toFixed(2) }} - + - + {{ record.fnhgdmj == 0 ? 0 : record.fnhgdmj.toFixed(2) }} - + @@ -86,15 +86,15 @@ - + {{ record.flhmj == 0 ? 0 : record.flhmj.toFixed(2) }} - + - + {{ record.flhgdmj == 0 ? 0 : record.flhgdmj.toFixed(2) }} - + @@ -103,15 +103,15 @@ - + {{ record.qtmj == 0 ? 0 : record.qtmj.toFixed(2) }} - + - + {{ record.qtgdmj == 0 ? 0 : record.qtgdmj.toFixed(2) }} - + @@ -120,15 +120,15 @@ - + {{ record.bbsxmj == 0 ? 0 : record.bbsxmj.toFixed(2) }} - + - + {{ record.bbsxgdmj == 0 ? 0 : record.bbsxgdmj.toFixed(2) }} - + @@ -136,15 +136,15 @@ - + {{ record.ccmj == 0 ? 0 : record.ccmj.toFixed(2) }} - + - + {{ record.ccgdmj == 0 ? 0 : record.ccgdmj.toFixed(2) }} - + @@ -153,9 +153,9 @@ - + {{ record.hshxzwfgdgdmj == 0 ? 0 : record.hshxzwfgdgdmj.toFixed(2) }} - + @@ -163,9 +163,9 @@ - + {{ record.zghsywfgdgdmj == 0 ? 0 : record.zghsywfgdgdmj.toFixed(2) }} - + + +
{{t("sys.subject.header_title")}}
{{ t('sys.subject.header_title') }}
+
+
+ {{ data.xftbhb }}%
+
+
+ {{ data.gdmjhb }}%
+
+
+ {{ data.wftbhb }}%
+
+
+ {{ data.xzwfgdmjhb }}%
+