update
This commit is contained in:
+3
-1
@@ -6,6 +6,7 @@ import { TOKEN_KEY } from '/@/enum/cacheEnum.ts';
|
|||||||
import { useMessage } from '/@/hooks/web/useMessage.ts';
|
import { useMessage } from '/@/hooks/web/useMessage.ts';
|
||||||
import { checkStatus } from '/@/api/checkStatus.ts';
|
import { checkStatus } from '/@/api/checkStatus.ts';
|
||||||
import router from '/@/router';
|
import router from '/@/router';
|
||||||
|
import { getBaseLogin } from '/@/enum/pageEnum.ts';
|
||||||
|
|
||||||
const { createMessage, createErrorModal } = useMessage();
|
const { createMessage, createErrorModal } = useMessage();
|
||||||
const { VITE_GLOB_API_URL } = getAppEnvConfig();
|
const { VITE_GLOB_API_URL } = getAppEnvConfig();
|
||||||
@@ -32,8 +33,9 @@ service.interceptors.response.use(
|
|||||||
if (error.response) {
|
if (error.response) {
|
||||||
switch (error.response.data.code) {
|
switch (error.response.data.code) {
|
||||||
case 401:
|
case 401:
|
||||||
|
let path = getBaseLogin();
|
||||||
router.replace({
|
router.replace({
|
||||||
path: '/login',
|
path: path,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export const Map = {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
AMap = res;
|
AMap = res;
|
||||||
const { zoom, center, mapStyle } = { ...defaultOption, ...option };
|
const { zoom, center, mapStyle } = { ...defaultOption, ...option };
|
||||||
|
console.log('option', option, center);
|
||||||
//基本地图加载
|
//基本地图加载
|
||||||
this.map = new AMap.Map(el, {
|
this.map = new AMap.Map(el, {
|
||||||
resizeEnable: true,
|
resizeEnable: true,
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// 地图默认配置
|
// 西安地图默认配置
|
||||||
export const defaultOption = {
|
export const defaultOption = {
|
||||||
center: [108.660704, 36.386058], //地图中心点
|
// center: [108.660704, 36.386058], //地图中心点
|
||||||
zoom: 6.5, //地图显示的缩放级别
|
zoom: 6.5, //地图显示的缩放级别
|
||||||
mapStyle: 'darkblue', //地图样式
|
mapStyle: 'darkblue', //地图样式
|
||||||
};
|
};
|
||||||
// 地图key
|
// 地图key
|
||||||
export const mapKey = '4bbcb216b889f2d612cbed05ae6979c8'
|
export const mapKey = '4bbcb216b889f2d612cbed05ae6979c8';
|
||||||
export const mapPlugin = ['AMap.ToolBar', 'AMap.Driving', 'AMap.GeoJSON', 'AMap.MarkerCluster', 'AMap.PlaceSearch'];
|
export const mapPlugin = ['AMap.ToolBar', 'AMap.Driving', 'AMap.GeoJSON', 'AMap.MarkerCluster', 'AMap.PlaceSearch'];
|
||||||
|
|
||||||
//根据数据量设置地图层级
|
//根据数据量设置地图层级
|
||||||
export function getZoom(list = []) {
|
export function getZoom(list = []) {
|
||||||
let len = list.length
|
let len = list.length;
|
||||||
// console.log('len', len)
|
// console.log('len', len)
|
||||||
if (len <= 5) {
|
if (len <= 5) {
|
||||||
return 7.5;
|
return 7.5;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setSpin(false);
|
setSpin(false);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
getList();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
async function getList() {
|
async function getList() {
|
||||||
setSpin(true);
|
setSpin(true);
|
||||||
try {
|
try {
|
||||||
const { code, result } = (await getDetail({ dataType: props.setting.dataType })) || {};
|
const { code, result } = (await getDetail({ dataType: props.setting.dataType, condition: selectIndex.value })) || {};
|
||||||
setSpin(!spinning.value);
|
setSpin(!spinning.value);
|
||||||
if (code != 200) {
|
if (code != 200) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -51,20 +51,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
document.addEventListener('visibilitychange', checkTabState);
|
|
||||||
init();
|
init();
|
||||||
});
|
});
|
||||||
onUnmounted(() => {
|
|
||||||
document.removeEventListener('visibilitychange', checkTabState);
|
|
||||||
});
|
|
||||||
const tabState = ref('');
|
|
||||||
|
|
||||||
function checkTabState() {
|
|
||||||
console.log('checkTabState', document.hidden);
|
|
||||||
tabState.value = document.hidden ? 'inactive' : 'active';
|
|
||||||
if (!document.hidden) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
getDepartOption();
|
getDepartOption();
|
||||||
|
|||||||
@@ -137,7 +137,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log('reload');
|
|
||||||
Map.initMap({ el: 'mapContainer' }).then(() => {
|
Map.initMap({ el: 'mapContainer' }).then(() => {
|
||||||
getMapData(tabList[0].type);
|
getMapData(tabList[0].type);
|
||||||
Map.map && Map.map.on('zoomend', setLevel);
|
Map.map && Map.map.on('zoomend', setLevel);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { nextTick, onMounted, ref, watch } from 'vue';
|
import { nextTick, ref, watch } from 'vue';
|
||||||
import { isFunction } from '/@/utils/is.ts';
|
import { isFunction } from '/@/utils/is.ts';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -81,6 +81,7 @@
|
|||||||
dataSource.value = result?.records;
|
dataSource.value = result?.records;
|
||||||
}
|
}
|
||||||
paginationProp.value = { ...paginationProp.value, ...result };
|
paginationProp.value = { ...paginationProp.value, ...result };
|
||||||
|
paginationProp.value.pageSize = result.size;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
tableLoading.value = false;
|
tableLoading.value = false;
|
||||||
|
|||||||
+12
-1
@@ -1,4 +1,15 @@
|
|||||||
export enum PageEnum {
|
export enum PageEnum {
|
||||||
// basic login path
|
// basic login path
|
||||||
BASE_LOGIN = '/login',
|
BASE_LOGIN = '/login', //西安登录页
|
||||||
|
BASE_HOME = '/home', //西安首页
|
||||||
|
BASE_LOGIN_YINCHUAN = '/screenLogin', //银川登录页
|
||||||
|
YINCHUAN_HOME = '/yinChuanHome', //银川
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setBaseLogin(baseLogin) {
|
||||||
|
sessionStorage.setItem('baseLogin', baseLogin);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getBaseLogin() {
|
||||||
|
return sessionStorage.getItem('baseLogin');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
component: () => import('/@/views/sys/login.vue'),
|
component: () => import('/@/views/sys/login.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/screenLogin',
|
||||||
|
name: 'screenLogin',
|
||||||
|
meta: {
|
||||||
|
title: '登录',
|
||||||
|
},
|
||||||
|
component: () => import('/@/views/sys/login.vue'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/home',
|
path: '/home',
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@@ -38,6 +46,14 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
component: () => import('/@/views/indexSon.vue'),
|
component: () => import('/@/views/indexSon.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/transfer',
|
||||||
|
name: 'transfer',
|
||||||
|
meta: {
|
||||||
|
title: '应急大屏',
|
||||||
|
},
|
||||||
|
component: () => import('/@/views/transfer.vue'),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const router: Router = createRouter({
|
const router: Router = createRouter({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { loginApi, getUserInfo, doLogout } from '/@/api/user.ts';
|
import { loginApi, getUserInfo, doLogout } from '/@/api/user.ts';
|
||||||
import { TOKEN_KEY, USER_INFO_KEY } from '/@/enum/cacheEnum.ts';
|
import { TOKEN_KEY, USER_INFO_KEY } from '/@/enum/cacheEnum.ts';
|
||||||
import { PageEnum } from '/@/enum/pageEnum.ts';
|
import { getBaseLogin, PageEnum } from '/@/enum/pageEnum.ts';
|
||||||
import { getAuthCache, setAuthCache } from '/@/utils/auth.ts';
|
import { getAuthCache, setAuthCache } from '/@/utils/auth.ts';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
@@ -94,7 +94,8 @@ export const useUserStore = defineStore({
|
|||||||
this.setUserInfo(null);
|
this.setUserInfo(null);
|
||||||
this.setLoginInfo(null);
|
this.setLoginInfo(null);
|
||||||
console.log('goLogin', goLogin);
|
console.log('goLogin', goLogin);
|
||||||
goLogin && router.replace({ path: PageEnum.BASE_LOGIN });
|
let path = getBaseLogin();
|
||||||
|
goLogin && router.replace({ path: path });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, nextTick, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import Dialog from '/@/components/dialog/Dialog.vue';
|
import Dialog from '/@/components/dialog/Dialog.vue';
|
||||||
import { useDialog } from '/@/views/components/dialogHooks.ts';
|
import { useDialog } from '/@/views/components/dialogHooks.ts';
|
||||||
import BasicTable from '/@/components/secondaryScreen/secondMap/components/basicTable/BasicTable.vue';
|
import BasicTable from '/@/components/secondaryScreen/secondMap/components/basicTable/BasicTable.vue';
|
||||||
@@ -91,15 +91,9 @@
|
|||||||
}));
|
}));
|
||||||
const { visible, title, closeDialog, openDialog } = useDialog({ title: props.title });
|
const { visible, title, closeDialog, openDialog } = useDialog({ title: props.title });
|
||||||
const registerTable = ref();
|
const registerTable = ref();
|
||||||
watch(
|
watch(props, () => {
|
||||||
props,
|
|
||||||
() => {
|
|
||||||
registerTable.value?.getRecords();
|
registerTable.value?.getRecords();
|
||||||
}
|
});
|
||||||
// {
|
|
||||||
// immediate: true,
|
|
||||||
// }
|
|
||||||
);
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
openDialog,
|
openDialog,
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
const tabState = ref('');
|
const tabState = ref('');
|
||||||
|
|
||||||
//判断窗口是否处于激活状态,切换浏览器tab会导致部门echarts显示不正常
|
//判断窗口是否处于激活状态,切换浏览器tab会导致部分echarts显示不正常
|
||||||
function checkTabState() {
|
function checkTabState() {
|
||||||
tabState.value = document.hidden ? 'inactive' : 'active';
|
tabState.value = document.hidden ? 'inactive' : 'active';
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-3
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="body-d">
|
<div class="body-d">
|
||||||
<div class="body-d-left">
|
<div class="body-d-left">
|
||||||
<screen-left :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<screen-left :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
</div>
|
</div>
|
||||||
<div class="body-d-middle">
|
<div class="body-d-middle">
|
||||||
<SecondMap :orgCode="orgCode" :type="type">
|
<SecondMap :orgCode="orgCode" :type="type">
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
</SecondMap>
|
</SecondMap>
|
||||||
</div>
|
</div>
|
||||||
<div class="body-d-right">
|
<div class="body-d-right">
|
||||||
<one-r :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<one-r :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
<two-r :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<two-r :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
<three-r :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<three-r :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
import { useUserStore } from '/@/store/modules/user.ts';
|
import { useUserStore } from '/@/store/modules/user.ts';
|
||||||
import { useRefresh } from '/@/hooks/autoRefresh';
|
import { useRefresh } from '/@/hooks/autoRefresh';
|
||||||
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
||||||
|
import { onUnmounted } from 'vue';
|
||||||
|
|
||||||
const { refreshState } = useRefresh(DEFAULT_TIME);
|
const { refreshState } = useRefresh(DEFAULT_TIME);
|
||||||
const useStore = useUserStore();
|
const useStore = useUserStore();
|
||||||
@@ -66,7 +67,18 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
init();
|
init();
|
||||||
|
document.addEventListener('visibilitychange', checkTabState);
|
||||||
});
|
});
|
||||||
|
onUnmounted(() => {
|
||||||
|
document.removeEventListener('visibilitychange', checkTabState);
|
||||||
|
});
|
||||||
|
const tabState = ref('');
|
||||||
|
|
||||||
|
//判断窗口是否处于激活状态,切换浏览器tab会导致部分echarts显示不正常
|
||||||
|
function checkTabState() {
|
||||||
|
tabState.value = document.hidden ? 'inactive' : 'active';
|
||||||
|
}
|
||||||
|
|
||||||
const { type, timeRangeOption } = useTimeType('week');
|
const { type, timeRangeOption } = useTimeType('week');
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|||||||
@@ -98,12 +98,14 @@
|
|||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { t } from '/@/hooks/locales/useLocales.ts';
|
import { t } from '/@/hooks/locales/useLocales.ts';
|
||||||
import { encipher } from '/@/utils/jsencrypt';
|
import { encipher } from '/@/utils/jsencrypt';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { getAuthCache } from '/@/utils/auth.ts';
|
import { getAuthCache } from '/@/utils/auth.ts';
|
||||||
import { TOKEN_KEY } from '/@/enum/cacheEnum.ts';
|
import { TOKEN_KEY } from '/@/enum/cacheEnum.ts';
|
||||||
|
import { PageEnum, setBaseLogin } from '/@/enum/pageEnum.ts';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
// console.log(t('login'));
|
const route = useRoute();
|
||||||
|
console.log('route', route);
|
||||||
const prefixCls = 'mini-login';
|
const prefixCls = 'mini-login';
|
||||||
const { notification, createMessage } = useMessage();
|
const { notification, createMessage } = useMessage();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
@@ -188,7 +190,10 @@
|
|||||||
description: `${t('login.loginSuccessDesc')}: ${userInfo.realname}`,
|
description: `${t('login.loginSuccessDesc')}: ${userInfo.realname}`,
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
router.replace({ path: '/home' });
|
|
||||||
|
let path = route.path == PageEnum.BASE_LOGIN_YINCHUAN ? PageEnum.YINCHUAN_HOME : PageEnum.BASE_HOME;
|
||||||
|
setBaseLogin(route.path);
|
||||||
|
router.replace({ path: path });
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notification.error({
|
notification.error({
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<template></template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
import { setBaseLogin } from '/@/enum/pageEnum.ts';
|
||||||
|
import { getUserInfo } from '/@/api/user.ts';
|
||||||
|
import { useUserStore } from '/@/store/modules/user.ts';
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
const router = useRouter();
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const { baseLogin, baseHome, msg } = JSON.parse(route.query.data);
|
||||||
|
setBaseLogin(baseLogin);
|
||||||
|
getUserInfo().then((res) => {
|
||||||
|
const { code, result } = res;
|
||||||
|
if (code == 200) {
|
||||||
|
userStore.setToken(msg);
|
||||||
|
userStore.setUserInfo(result.userInfo);
|
||||||
|
router.push(baseHome);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log('route', route);
|
||||||
|
</script>
|
||||||
|
<style scoped lang="less"></style>
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog :openVis="visible" width="50%" title="健康终端报警列表" @close="closeDialog" :maskClosable="false">
|
<Dialog :openVis="visible" width="50%" title="健康终端报警列表" @close="closeDialog" :maskClosable="false">
|
||||||
<template #container>
|
<template #container>
|
||||||
<BasicTable class="table-container" :columns="columns" :api="getPhoneList" :apiParams="formState"></BasicTable>
|
<BasicTable ref="registerTable" class="table-container" :columns="columns" :api="getMonitorList" :apiParams="formState"></BasicTable>
|
||||||
</template>
|
</template>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import Dialog from '/@/components/dialog/Dialog.vue';
|
import Dialog from '/@/components/dialog/Dialog.vue';
|
||||||
import { useDialog } from '/@/views/components/dialogHooks.ts';
|
import { useDialog } from '/@/views/components/dialogHooks.ts';
|
||||||
import BasicTable from '/@/components/secondaryScreen/secondMap/components/basicTable/BasicTable.vue';
|
import BasicTable from '/@/components/secondaryScreen/secondMap/components/basicTable/BasicTable.vue';
|
||||||
import { SexType, sexTypeList } from '/@/utils/settings.ts';
|
import { getMonitorList } from '/@/components/body-d-right/right.api.ts';
|
||||||
import { getPhoneList } from '/@/views/yinChuan/yinChuan.api.ts';
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
record: Object,
|
record: Object,
|
||||||
@@ -26,47 +25,52 @@
|
|||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '姓名',
|
title: '姓名',
|
||||||
dataIndex: 'name',
|
dataIndex: 'realName',
|
||||||
key: 'name',
|
key: 'realName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '二级单位',
|
title: '二级单位',
|
||||||
dataIndex: 'department',
|
dataIndex: 'orgName1',
|
||||||
key: 'department',
|
key: 'orgName1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
dataIndex: 'sex',
|
dataIndex: 'phone',
|
||||||
key: 'sex',
|
key: 'phone',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '异常事件',
|
title: '异常事件',
|
||||||
dataIndex: 'time',
|
dataIndex: 'eventType_dictText',
|
||||||
key: 'time',
|
key: 'eventType_dictText',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '异常值',
|
title: '异常值',
|
||||||
dataIndex: 'time',
|
dataIndex: 'dataValue',
|
||||||
key: 'time',
|
key: 'dataValue',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '发生时间',
|
title: '发生时间',
|
||||||
dataIndex: 'time',
|
dataIndex: 'warnTime',
|
||||||
key: 'time',
|
key: 'warnTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '发生地点',
|
title: '发生地点',
|
||||||
dataIndex: 'time',
|
dataIndex: 'address',
|
||||||
key: 'time',
|
key: 'address',
|
||||||
|
customRender: ({ record }) => {
|
||||||
|
return record?.address || record?.gpsErrorMsg;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const formState = ref({
|
const formState = computed(() => ({
|
||||||
sex: SexType.all,
|
|
||||||
dataType: props.setting.dataType,
|
dataType: props.setting.dataType,
|
||||||
phoneType: props.phoneType,
|
orgCode: props.setting?.orgCode,
|
||||||
|
}));
|
||||||
|
const { visible, closeDialog, openDialog } = useDialog({ title: props.title });
|
||||||
|
const registerTable = ref();
|
||||||
|
watch(props, () => {
|
||||||
|
registerTable.value?.getRecords();
|
||||||
});
|
});
|
||||||
const { visible, title, closeDialog, openDialog } = useDialog({ title: props.title });
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
openDialog,
|
openDialog,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { get } from '/@/api/request';
|
|||||||
export enum Api {
|
export enum Api {
|
||||||
phoneList = '/health-emergency/emergency/tblUserHelp/phoneList',
|
phoneList = '/health-emergency/emergency/tblUserHelp/phoneList',
|
||||||
getWorkDaily = '/health-emergency/emergency/ycLargeScreen/medicalCenter',
|
getWorkDaily = '/health-emergency/emergency/ycLargeScreen/medicalCenter',
|
||||||
getTeamHealth = '/health-archives/archives/groupUserA/getGroupUserAInfo',
|
getTeamHealth = '/health-emergency/emergency/ycLargeScreen/userHealthCenter',
|
||||||
}
|
}
|
||||||
|
|
||||||
// 呼入电话、受理电话
|
// 呼入电话、受理电话
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
import { basicPath, emergencyPath, useSocket } from '/@/utils/socket.ts';
|
import { basicPath, emergencyPath, useSocket } from '/@/utils/socket.ts';
|
||||||
import { useRefresh } from '/@/hooks/autoRefresh';
|
import { useRefresh } from '/@/hooks/autoRefresh';
|
||||||
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
||||||
// import { useUserStore } from '/@/store/modules/user.ts';
|
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { DataType, getSettings } from '/@/utils/settings.ts';
|
import { DataType, getSettings } from '/@/utils/settings.ts';
|
||||||
import { ServerDetailType } from '/@/components/body-d-left/bodyLeftHooks.ts';
|
import { ServerDetailType } from '/@/components/body-d-left/bodyLeftHooks.ts';
|
||||||
@@ -57,14 +56,6 @@
|
|||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const setting = getSettings(DataType.yinChuan);
|
const setting = getSettings(DataType.yinChuan);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// const userStore = useUserStore();
|
|
||||||
// let data = JSON.parse(route.query.data as string);
|
|
||||||
// if (data.token) {
|
|
||||||
// localStorage.setItem('token', data.token);
|
|
||||||
// userStore.setToken(data.token);
|
|
||||||
// userStore.setUserInfo(data.userInfo);
|
|
||||||
// console.log(useUserStore);
|
|
||||||
// }
|
|
||||||
init();
|
init();
|
||||||
document.addEventListener('visibilitychange', checkTabState);
|
document.addEventListener('visibilitychange', checkTabState);
|
||||||
});
|
});
|
||||||
@@ -74,7 +65,7 @@
|
|||||||
});
|
});
|
||||||
const tabState = ref('');
|
const tabState = ref('');
|
||||||
|
|
||||||
//判断窗口是否处于激活状态,切换浏览器tab会导致部门echarts显示不正常
|
//判断窗口是否处于激活状态,切换浏览器tab会导致部分echarts显示不正常
|
||||||
function checkTabState() {
|
function checkTabState() {
|
||||||
tabState.value = document.hidden ? 'inactive' : 'active';
|
tabState.value = document.hidden ? 'inactive' : 'active';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user