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=https://xjgateway.mcrm.vip:8888
|
||||
VITE_GLOB_API_URL=https://api-jkglpt.iosp.ydpt.tech
|
||||
#VITE_GLOB_API_URL=https://api.cqygjk.com
|
||||
#健康监测工具报警-websocket
|
||||
#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 () => {
|
||||
try {
|
||||
if (userStore.getToken) {
|
||||
const { result } = await getEmergencyCenterApi();
|
||||
userStore.setCenterInfo(result);
|
||||
const { code, result } = await getEmergencyCenterApi();
|
||||
if (code === 200) {
|
||||
userStore.setCenterInfo(result);
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
if (userStore.getUserInfo) {
|
||||
|
||||
@@ -13,11 +13,13 @@ export enum PageEnum {
|
||||
}
|
||||
|
||||
export function setBaseLogin(baseLogin) {
|
||||
localStorage.setItem('baseLogin', baseLogin);
|
||||
// localStorage.setItem('baseLogin', baseLogin);
|
||||
localStorage.setItem('baseLogin', '/login');
|
||||
}
|
||||
|
||||
export function getBaseLogin() {
|
||||
return localStorage.getItem('baseLogin');
|
||||
// return localStorage.getItem('baseLogin');
|
||||
return '/login';
|
||||
}
|
||||
|
||||
//根据当前路径跳转登录页
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
</div>
|
||||
<div class="con-item">
|
||||
<span>单位:</span>
|
||||
<span>{{ userInfo?.departName }}</span>
|
||||
<span>{{ userInfo?.orgName }}</span>
|
||||
</div>
|
||||
<div class="con-item">
|
||||
<span>部门:</span>
|
||||
<span>{{ userInfo?.orgName }}</span>
|
||||
<span>{{ userInfo?.departName }}</span>
|
||||
</div>
|
||||
<div class="con-item">
|
||||
<span>电话:</span>
|
||||
|
||||
+12
-6
@@ -89,11 +89,13 @@
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'd'">
|
||||
<template v-if="record?.latitude && record?.longitude">
|
||||
<environment-outlined style="height: auto !important; color: #178ef2 !important" @click="forHelp(record)" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: red">未获取到位置信息</span>
|
||||
<template v-if="record?.emergencyType != 2">
|
||||
<template v-if="record?.latitude && record?.longitude">
|
||||
<environment-outlined style="height: auto !important; color: #178ef2 !important" @click="forHelp(record)" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: red">未获取到位置信息</span>
|
||||
</template>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'cz'">
|
||||
@@ -489,7 +491,11 @@
|
||||
userData.value = data;
|
||||
if (!data.lon || !data.lat) {
|
||||
centerMapRef.value.newResetMap();
|
||||
showMapBottom.value = true;
|
||||
if (indexModalTitle.value === '今日应急' && data?.emergencyType == 2) {
|
||||
showMapBottom.value = false;
|
||||
} else {
|
||||
showMapBottom.value = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
Map.removeOverlayGroup();
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="emer-item-d-t">{{ userData.phone }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="emer-item-d">
|
||||
<div class="emer-item-d" v-if="userData?.emergencyType != 2">
|
||||
<div>当前位置:</div>
|
||||
<div class="emer-item-d-t" :style="{ color: !userData?.lon || !userData?.lat ? '#F24439' : '' }">
|
||||
{{ !userData?.address ? (!userData?.lon || !userData?.lat ? '未获取到位置信息' : locationInfo) : userData?.address }}
|
||||
|
||||
Reference in New Issue
Block a user