update
1.修改云坐席时,不显示地理位置相关 2.修改应急求助,单位部门字段互换 3.更新请求地址信息
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# 王昊地址
|
# 王昊地址
|
||||||
#VITE_GLOB_API_URL=http://192.168.1.98
|
#VITE_GLOB_API_URL=http://192.168.1.98
|
||||||
#开发环境
|
#开发环境
|
||||||
VITE_GLOB_API_URL=https://xjgateway.mcrm.vip:8888
|
VITE_GLOB_API_URL=https://api-jkglpt.iosp.ydpt.tech
|
||||||
#VITE_GLOB_API_URL=https://api.cqygjk.com
|
#VITE_GLOB_API_URL=https://api.cqygjk.com
|
||||||
#健康监测工具报警-websocket
|
#健康监测工具报警-websocket
|
||||||
#VITE_GLOB_API_YIN_JI=ws://cqyt.dev.yg.dt.io/health-watch/websocket/watchMonitor
|
#VITE_GLOB_API_YIN_JI=ws://cqyt.dev.yg.dt.io/health-watch/websocket/watchMonitor
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
#后台地址
|
#后台地址
|
||||||
VITE_GLOB_API_URL=https://api.xjygjk.com
|
VITE_GLOB_API_URL=http://api-xj.tri.dt.io
|
||||||
+4
-2
@@ -19,8 +19,10 @@
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
if (userStore.getToken) {
|
if (userStore.getToken) {
|
||||||
const { result } = await getEmergencyCenterApi();
|
const { code, result } = await getEmergencyCenterApi();
|
||||||
userStore.setCenterInfo(result);
|
if (code === 200) {
|
||||||
|
userStore.setCenterInfo(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
if (userStore.getUserInfo) {
|
if (userStore.getUserInfo) {
|
||||||
|
|||||||
@@ -13,11 +13,13 @@ export enum PageEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function setBaseLogin(baseLogin) {
|
export function setBaseLogin(baseLogin) {
|
||||||
localStorage.setItem('baseLogin', baseLogin);
|
// localStorage.setItem('baseLogin', baseLogin);
|
||||||
|
localStorage.setItem('baseLogin', '/login');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBaseLogin() {
|
export function getBaseLogin() {
|
||||||
return localStorage.getItem('baseLogin');
|
// return localStorage.getItem('baseLogin');
|
||||||
|
return '/login';
|
||||||
}
|
}
|
||||||
|
|
||||||
//根据当前路径跳转登录页
|
//根据当前路径跳转登录页
|
||||||
|
|||||||
@@ -17,11 +17,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="con-item">
|
<div class="con-item">
|
||||||
<span>单位:</span>
|
<span>单位:</span>
|
||||||
<span>{{ userInfo?.departName }}</span>
|
<span>{{ userInfo?.orgName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="con-item">
|
<div class="con-item">
|
||||||
<span>部门:</span>
|
<span>部门:</span>
|
||||||
<span>{{ userInfo?.orgName }}</span>
|
<span>{{ userInfo?.departName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="con-item">
|
<div class="con-item">
|
||||||
<span>电话:</span>
|
<span>电话:</span>
|
||||||
|
|||||||
+12
-6
@@ -89,11 +89,13 @@
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.dataIndex === 'd'">
|
<template v-if="column.dataIndex === 'd'">
|
||||||
<template v-if="record?.latitude && record?.longitude">
|
<template v-if="record?.emergencyType != 2">
|
||||||
<environment-outlined style="height: auto !important; color: #178ef2 !important" @click="forHelp(record)" />
|
<template v-if="record?.latitude && record?.longitude">
|
||||||
</template>
|
<environment-outlined style="height: auto !important; color: #178ef2 !important" @click="forHelp(record)" />
|
||||||
<template v-else>
|
</template>
|
||||||
<span style="color: red">未获取到位置信息</span>
|
<template v-else>
|
||||||
|
<span style="color: red">未获取到位置信息</span>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'cz'">
|
<template v-if="column.dataIndex === 'cz'">
|
||||||
@@ -489,7 +491,11 @@
|
|||||||
userData.value = data;
|
userData.value = data;
|
||||||
if (!data.lon || !data.lat) {
|
if (!data.lon || !data.lat) {
|
||||||
centerMapRef.value.newResetMap();
|
centerMapRef.value.newResetMap();
|
||||||
showMapBottom.value = true;
|
if (indexModalTitle.value === '今日应急' && data?.emergencyType == 2) {
|
||||||
|
showMapBottom.value = false;
|
||||||
|
} else {
|
||||||
|
showMapBottom.value = true;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Map.removeOverlayGroup();
|
Map.removeOverlayGroup();
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<div class="emer-item-d-t">{{ userData.phone }}</div>
|
<div class="emer-item-d-t">{{ userData.phone }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="emer-item-d">
|
<div class="emer-item-d" v-if="userData?.emergencyType != 2">
|
||||||
<div>当前位置:</div>
|
<div>当前位置:</div>
|
||||||
<div class="emer-item-d-t" :style="{ color: !userData?.lon || !userData?.lat ? '#F24439' : '' }">
|
<div class="emer-item-d-t" :style="{ color: !userData?.lon || !userData?.lat ? '#F24439' : '' }">
|
||||||
{{ !userData?.address ? (!userData?.lon || !userData?.lat ? '未获取到位置信息' : locationInfo) : userData?.address }}
|
{{ !userData?.address ? (!userData?.lon || !userData?.lat ? '未获取到位置信息' : locationInfo) : userData?.address }}
|
||||||
|
|||||||
Reference in New Issue
Block a user