update 地图接口调整
This commit is contained in:
@@ -2,36 +2,30 @@ import { get, post } from '/@/api/request.ts';
|
|||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
server = '/health-emergency/emergency/tblUserHelp/statistics',
|
server = '/health-emergency/emergency/tblUserHelp/statistics',
|
||||||
getWorkDaily = '/health-emergency/emergency/ycLargeScreen/medicalCenter',
|
|
||||||
getTeamHealth = '/health-emergency/emergency/ycLargeScreen/userHealthCenter',
|
|
||||||
getDetail = '/health-medical/medical/hospital/getMedicalHospital',
|
getDetail = '/health-medical/medical/hospital/getMedicalHospital',
|
||||||
phoneList = '/health-emergency/emergency/tblUserHelp/phoneList',
|
|
||||||
getMonitorList = '/health-watch/watch/watchMonitorData/getMonitorList',
|
getMonitorList = '/health-watch/watch/watchMonitorData/getMonitorList',
|
||||||
statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew',
|
statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew',
|
||||||
phoneListNew = '/health-emergency/emergency/LargeScreenNew/phoneListNew',
|
phoneListNew = '/health-emergency/emergency/LargeScreenNew/phoneListNew',
|
||||||
medicalCenterNew = '/health-emergency/emergency/LargeScreenNew/medicalCenterNew',
|
medicalCenterNew = '/health-emergency/emergency/LargeScreenNew/medicalCenterNew',
|
||||||
userHealthCenterNew = '/health-emergency/emergency/LargeScreenNew/userHealthCenterNew',
|
userHealthCenterNew = '/health-emergency/emergency/LargeScreenNew/userHealthCenterNew',
|
||||||
getAllListNew = '/health-emergency/emergency/LargeScreenNew/getAllListNew',
|
getAllList = '/health-emergency/emergency/LargeScreenNew/getAllListNew',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 服务详情数据
|
* @description: 服务详情数据
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
// export const serverApi = (params: any) => get(Api.server, params);
|
|
||||||
export const statisticsNewApi = (params: any) => post(Api.statisticsNew, params);
|
export const statisticsNewApi = (params: any) => post(Api.statisticsNew, params);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 一线医疗点每日工作动态
|
* @description 一线医疗点每日工作动态
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
// export const getWorkDaily = (params: any) => get(Api.getWorkDaily, params);
|
|
||||||
export const medicalCenterNew = (params: any) => post(Api.medicalCenterNew, params);
|
export const medicalCenterNew = (params: any) => post(Api.medicalCenterNew, params);
|
||||||
/**
|
/**
|
||||||
* @description 员工队伍健康状况
|
* @description 员工队伍健康状况
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
// export const getTeamHealthApi = (params: any) => get(Api.getTeamHealth, params);
|
|
||||||
|
|
||||||
export const userHealthCenterNew = (params: any) => get(Api.userHealthCenterNew, params);
|
export const userHealthCenterNew = (params: any) => get(Api.userHealthCenterNew, params);
|
||||||
/**
|
/**
|
||||||
@@ -48,5 +42,8 @@ export const getPhoneList = (params: any) => post(Api.phoneListNew, params);
|
|||||||
//健康终端报警
|
//健康终端报警
|
||||||
export const getMonitorList = (params: any) => get(Api.getMonitorList, params);
|
export const getMonitorList = (params: any) => get(Api.getMonitorList, params);
|
||||||
|
|
||||||
//获取所有资源
|
/**
|
||||||
export const getAllListNew = (params: any) => post(Api.getAllListNew, params);
|
* @description 获取地图所有资源
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
export const getMapListApi = (params: any) => post(Api.getAllList, params);
|
||||||
|
|||||||
@@ -42,13 +42,12 @@
|
|||||||
<PhysicalExaminationData :key="tabState" :refreshState="refreshState" :setting="setting" />
|
<PhysicalExaminationData :key="tabState" :refreshState="refreshState" :setting="setting" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-d">
|
<div class="bottom-d"> </div>
|
||||||
<!--呼入电话、受理电话-->
|
<!--呼入电话、受理电话-->
|
||||||
<PhoneDialog ref="phoneDialogRef" :phoneType="phoneType" :setting="setting" :title="phoneDialogTitle" :useForm="true" />
|
<PhoneDialog ref="phoneDialogRef" :phoneType="phoneType" :setting="setting" :title="phoneDialogTitle" :useForm="true" />
|
||||||
<!--健康终端查看详情-->
|
<!--健康终端查看详情-->
|
||||||
<TerminakAlarmDialog ref="terminalAlarmDialogRef" :setting="setting" />
|
<TerminakAlarmDialog ref="terminalAlarmDialogRef" :setting="setting" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, onUnmounted, ref, nextTick } from 'vue';
|
import { onMounted, onUnmounted, ref, nextTick } from 'vue';
|
||||||
@@ -127,7 +126,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const terminalAlarmDialogRef = ref();
|
const terminalAlarmDialogRef = ref();
|
||||||
|
|
||||||
//终端预警列表弹窗
|
//终端预警列表弹窗
|
||||||
function handleEmployeeDialog() {
|
function handleEmployeeDialog() {
|
||||||
terminalAlarmDialogRef.value.openDialog();
|
terminalAlarmDialogRef.value.openDialog();
|
||||||
|
|||||||
@@ -83,10 +83,10 @@
|
|||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import { RedoOutlined } from '@ant-design/icons-vue';
|
import { RedoOutlined } from '@ant-design/icons-vue';
|
||||||
import { Map } from '/@/assets/mapUtils/map';
|
import { Map } from '/@/assets/mapUtils/map';
|
||||||
import { getKmStr, getTimeStr, mapApiSwitch, tabList, TabType } from '/@/components/chinaMap/chinaHooks';
|
import { getKmStr, getTimeStr, tabList, TabType } from '/@/components/chinaMap/chinaHooks';
|
||||||
import { useDetailStore } from '/@/store/modules/detailData.ts';
|
import { useDetailStore } from '/@/store/modules/detailData.ts';
|
||||||
import RoutePanel from '/@/components/chinaMap/components/routePanel.vue';
|
import RoutePanel from '/@/components/chinaMap/components/routePanel.vue';
|
||||||
import { legendList } from '/@/views/centralScreen/components/centerMapHooks.ts';
|
import { legendList, mapApiSwitch } from '/@/views/centralScreen/components/centerMapHooks.ts';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
//是否展示底部统计
|
//是否展示底部统计
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
import { TabType } from '/@/components/chinaMap/chinaHooks.ts';
|
||||||
|
import { getMapListApi } from '/@/views/centralScreen/centralScreen.api.ts';
|
||||||
|
|
||||||
export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href;
|
export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href;
|
||||||
export const legend2 = new URL('/@/assets/img/legend2.png', import.meta.url).href;
|
export const legend2 = new URL('/@/assets/img/legend2.png', import.meta.url).href;
|
||||||
export const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href;
|
export const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href;
|
||||||
@@ -12,3 +15,14 @@ export const legendList = [
|
|||||||
{ img: legend4, text: '合作医院' },
|
{ img: legend4, text: '合作医院' },
|
||||||
{ img: legend5, text: '地方医院' },
|
{ img: legend5, text: '地方医院' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export function mapApiSwitch(type: string, params: any) {
|
||||||
|
const basicParams = {
|
||||||
|
lat: 34, //纬度34
|
||||||
|
lon: 108, //经度
|
||||||
|
};
|
||||||
|
// 全部 油田 医疗点 合作医院
|
||||||
|
if ([TabType.all, TabType.youTianYiYuan, TabType.yiLiaoDian, TabType.heZuoYiYuan, TabType.jiuHuChe, TabType.jiuHuChe].includes(type)) {
|
||||||
|
return getMapListApi({ ...basicParams, ...params });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user