|
@@ -37,7 +37,7 @@ import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { FormInstance } from 'element-plus';
|
|
|
import { defaultDate } from '@/utils/constants';
|
|
|
import Other from '@/utils/other';
|
|
|
-import { getSSPStatisticsHotSpotTypeExport } from '@/api/snapshot/statistics';
|
|
|
+import { getSSPStatisticsHotSpotType, getSSPStatisticsHotSpotTypeExport } from '@/api/snapshot/statistics';
|
|
|
|
|
|
const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
|
|
|
// 定义变量内容
|
|
@@ -107,33 +107,7 @@ const queryList = async () => {
|
|
|
requestParams.value.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
|
requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
Reflect.deleteProperty(requestParams.value, 'crTime');
|
|
|
- // const { result } = await centerSatisfaction(requestParams.value);
|
|
|
- const result = [
|
|
|
- {
|
|
|
- name: '公共服务',
|
|
|
- orderCount: 0,
|
|
|
- },
|
|
|
- {
|
|
|
- name: '社会保障',
|
|
|
- orderCount: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- name: '医疗卫生',
|
|
|
- orderCount: 22,
|
|
|
- },
|
|
|
- {
|
|
|
- name: '教育文体',
|
|
|
- orderCount: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- name: '社区服务',
|
|
|
- orderCount: 0,
|
|
|
- },
|
|
|
- {
|
|
|
- name: '其他',
|
|
|
- orderCount: 0,
|
|
|
- },
|
|
|
- ];
|
|
|
+ const { result } = await getSSPStatisticsHotSpotType(requestParams.value);
|
|
|
state.tableData = result ?? [];
|
|
|
gridOptions.data = result ?? [];
|
|
|
const legendData = state.tableData.map((item: any) => {
|