update
1.修改大屏问题
This commit is contained in:
+30
-18
@@ -8,7 +8,7 @@
|
||||
<div class="sun-title-center">{{ getCenterInfo.screenTitle || '健康服务中心' }}</div>
|
||||
<div class="sun-title-right">
|
||||
<a-button class="top-right-button" @click="toZ">咨询服务平台</a-button>
|
||||
<a-button class="top-right-button" @click="toOther">健康监测大屏</a-button>
|
||||
<a-button class="top-right-button" @click="toOther" :loading="otherLoading">健康监测大屏</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sun-body-content">
|
||||
@@ -143,6 +143,7 @@
|
||||
nearResourcesApi,
|
||||
oneLApi,
|
||||
oneRApi,
|
||||
queryAnYanTokenApi,
|
||||
roomDetailApi,
|
||||
threeRModalApi,
|
||||
todayEmergencyListApi,
|
||||
@@ -156,6 +157,7 @@
|
||||
import ThreeLeftNew from '/@/views/indexSun/threeLeftNew.vue';
|
||||
import OneRightNew from '/@/views/indexSun/oneRightNew.vue';
|
||||
import TwoNewR from '/@/views/indexSun/twoNewR.vue';
|
||||
import { message } from 'ant-design-vue';
|
||||
//0:处置 1:处理 2:呼入 3:全部
|
||||
const phoneType = ref('');
|
||||
const phoneDialogTitle = ref('呼入电话');
|
||||
@@ -180,6 +182,7 @@
|
||||
const showMapBottom = ref(false);
|
||||
const userData = ref<object>({});
|
||||
const centerMapRef = ref();
|
||||
const otherLoading = ref<boolean>(false);
|
||||
|
||||
onMounted(() => {
|
||||
getTime();
|
||||
@@ -238,10 +241,22 @@
|
||||
}
|
||||
|
||||
function toOther() {
|
||||
window.open('http://aygc.jy.pc.iosp.ydpt.tech/envShow/envFullscreen', '_blank');
|
||||
otherLoading.value = true;
|
||||
queryAnYanTokenApi()
|
||||
.then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
otherLoading.value = false;
|
||||
window.open('http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=' + res?.result, '_blank');
|
||||
} else {
|
||||
message.error(res?.message);
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
otherLoading.value = false;
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
function toZ() {
|
||||
return;
|
||||
async function toZ() {
|
||||
const routeUrl = router.resolve({
|
||||
path: '/home2',
|
||||
}).href;
|
||||
@@ -415,11 +430,15 @@
|
||||
|
||||
async function confirmHelp(data: any) {
|
||||
Map.driveLine && Map.driveLine.clear();
|
||||
const res = await careUserApi({ userId: data?.userId });
|
||||
data['careLiaisonName'] = res?.result?.careLiaisonName;
|
||||
data['careLiaisonPhone'] = res?.result?.careLiaisonPhone;
|
||||
data['lifeguardName'] = res?.result?.lifeguardName;
|
||||
data['lifeguardPhone'] = res?.result?.lifeguardPhone;
|
||||
try {
|
||||
const res = await careUserApi({ userId: data?.userId });
|
||||
data['careLiaisonName'] = res?.result?.careLiaisonName;
|
||||
data['careLiaisonPhone'] = res?.result?.careLiaisonPhone;
|
||||
data['lifeguardName'] = res?.result?.lifeguardName;
|
||||
data['lifeguardPhone'] = res?.result?.lifeguardPhone;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
userData.value = data;
|
||||
if (!data.lon || !data.lat) {
|
||||
centerMapRef.value.newResetMap();
|
||||
@@ -468,22 +487,15 @@
|
||||
Map.createInfoModal({ option: val, content: infoContentSpecial(val) }, false);
|
||||
}
|
||||
const end = await Map.getAddressByPoint([val.lon, val.lat]);
|
||||
console.log(res);
|
||||
if (!data?.address) {
|
||||
data['address'] = await Map.getAddressByPoint([data.lon, data.lat]);
|
||||
}
|
||||
// Map.clearNaviLine();
|
||||
// Map.createNaviLine([data.lon, data.lat], [val.lon, val.lat]);
|
||||
centerMapRef.value.getSearch({
|
||||
startPosition: [data.lon, data.lat],
|
||||
endPosition: [val.lon, val.lat],
|
||||
start: data['address'],
|
||||
end,
|
||||
});
|
||||
// const viewBtn = document.getElementById(val.id);
|
||||
// viewBtn.onclick = () => {
|
||||
// handleClcikDetail(val);
|
||||
// };
|
||||
('');
|
||||
},
|
||||
true,
|
||||
@@ -667,8 +679,8 @@
|
||||
firstFormOne.value = [];
|
||||
const params = {
|
||||
centerId: centerId.value,
|
||||
startDate: '2000-01-01',
|
||||
endDate: '2030-12-31',
|
||||
// startDate: '2000-01-01',
|
||||
// endDate: '2030-12-31',
|
||||
};
|
||||
indexModalTitle.value = '今日应急';
|
||||
modalApi.value = todayEmergencyListApi;
|
||||
|
||||
Reference in New Issue
Block a user