2025-03-25 20:22:10 +08:00
|
|
|
<template>
|
2025-03-26 19:28:18 +08:00
|
|
|
<div class="default-main" style="position: relative">
|
2025-03-25 20:22:10 +08:00
|
|
|
<TableHeader date-picker>
|
|
|
|
|
<template v-slot:select>
|
|
|
|
|
<el-form-item label="对象类型">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="tableStore.table.params.supvObjType"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
placeholder="请选择对象类型"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in supvObjTypeList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-03-28 16:05:03 +08:00
|
|
|
<template v-slot:operation>
|
|
|
|
|
<el-button type="primary" class="ml10" @click="toggle" :icon="leftVisible ? 'el-icon-Hide' : 'el-icon-View'">
|
|
|
|
|
{{ leftVisible ? '隐藏' : '显示' }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
2025-03-25 20:22:10 +08:00
|
|
|
</TableHeader>
|
2025-03-26 14:47:22 +08:00
|
|
|
<Map />
|
|
|
|
|
|
2025-03-28 16:05:03 +08:00
|
|
|
<transition name="slide-left">
|
|
|
|
|
<div class="left" :style="height" v-if="leftVisible">
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="终端统计"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-zhongduantongji-xian"></span>
|
|
|
|
|
终端统计
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="终端运行评价"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-daipingjia"></span>
|
|
|
|
|
终端运行评价
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="最近一周终端评价趋势"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-a-qushi1"></span>
|
|
|
|
|
最近一周终端评价趋势
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
2025-03-25 20:22:10 +08:00
|
|
|
</div>
|
2025-03-28 16:05:03 +08:00
|
|
|
</transition>
|
|
|
|
|
|
|
|
|
|
<transition name="slide-right">
|
|
|
|
|
<div class="right" :style="height" v-if="rightVisible">
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box box-2"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="区域终端运行评价"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-a-ziyuan118"></span>
|
|
|
|
|
区域终端运行评价
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="终端运行评价详情"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-yunhangxiangqing"></span>
|
|
|
|
|
终端运行评价详情
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
2025-03-25 20:22:10 +08:00
|
|
|
</div>
|
2025-03-28 16:05:03 +08:00
|
|
|
</transition>
|
|
|
|
|
|
|
|
|
|
<transition name="slide-bottom">
|
|
|
|
|
<div class="center" :style="height3" v-if="centerVisible">
|
|
|
|
|
<BorderBox13
|
|
|
|
|
:color="[color[0], color[0]]"
|
|
|
|
|
class="box"
|
|
|
|
|
:backgroundColor="`${color[0]}24`"
|
|
|
|
|
title="异常终端详情"
|
|
|
|
|
>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span class="iconfont icon-yichangxiangqing-xian"></span>
|
|
|
|
|
异常终端详情
|
|
|
|
|
</div>
|
|
|
|
|
</BorderBox13>
|
2025-03-25 20:22:10 +08:00
|
|
|
</div>
|
2025-03-28 16:05:03 +08:00
|
|
|
</transition>
|
2025-03-25 20:22:10 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
2025-03-28 16:05:03 +08:00
|
|
|
import { ref, reactive, onMounted, provide } from 'vue'
|
2025-03-25 20:22:10 +08:00
|
|
|
import TableHeader from '@/components/table/header/index.vue'
|
|
|
|
|
import TableStore from '@/utils/tableStore'
|
|
|
|
|
import { useDictData } from '@/stores/dictData'
|
|
|
|
|
import { mainHeight } from '@/utils/layout'
|
2025-03-26 14:47:22 +08:00
|
|
|
import Map from './components/map.vue'
|
2025-03-28 16:05:03 +08:00
|
|
|
import { BorderBox13 } from '@kjgl77/datav-vue3'
|
2025-03-26 14:47:22 +08:00
|
|
|
import { useConfig } from '@/stores/config'
|
2025-03-26 19:28:18 +08:00
|
|
|
const config = useConfig()
|
2025-03-26 14:47:22 +08:00
|
|
|
const color = config.layout.elementUiPrimary
|
2025-03-25 20:22:10 +08:00
|
|
|
const dictData = useDictData()
|
2025-03-26 19:28:18 +08:00
|
|
|
const height = mainHeight(115)
|
|
|
|
|
const height3 = mainHeight(115, 3)
|
2025-03-25 20:22:10 +08:00
|
|
|
//字典获取监督对象类型
|
|
|
|
|
const supvObjTypeList = dictData.getBasicData('supv_obj_type')
|
|
|
|
|
const tableStore = new TableStore({
|
|
|
|
|
url: '/user-boot/user/getAllUserSimpleList',
|
|
|
|
|
method: 'GET',
|
|
|
|
|
isWebPaging: true,
|
|
|
|
|
showPage: false,
|
|
|
|
|
publicHeight: 480,
|
|
|
|
|
column: [
|
|
|
|
|
{ title: '序号', width: 80 },
|
|
|
|
|
{ title: '监测对象类型', field: 'name3' },
|
|
|
|
|
{ title: '监测对象名称', field: 'name4' },
|
|
|
|
|
{ title: '电压等级', field: 'name5' },
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
width: '120',
|
|
|
|
|
render: 'buttons',
|
|
|
|
|
buttons: [
|
|
|
|
|
{
|
|
|
|
|
name: 'edit',
|
|
|
|
|
title: '工单',
|
|
|
|
|
type: 'primary',
|
|
|
|
|
icon: 'el-icon-Plus',
|
|
|
|
|
render: 'basicButton',
|
|
|
|
|
click: row => {}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
loadCallback: () => {
|
|
|
|
|
tableStore.table.data = []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
provide('tableStore', tableStore)
|
2025-03-28 16:05:03 +08:00
|
|
|
const leftVisible = ref(true)
|
|
|
|
|
const rightVisible = ref(true)
|
|
|
|
|
const centerVisible = ref(true)
|
|
|
|
|
|
|
|
|
|
const toggle = () => {
|
|
|
|
|
leftVisible.value = !leftVisible.value
|
|
|
|
|
rightVisible.value = !rightVisible.value
|
|
|
|
|
centerVisible.value = !centerVisible.value
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-25 20:22:10 +08:00
|
|
|
onMounted(() => {
|
|
|
|
|
// 加载数据
|
|
|
|
|
tableStore.index()
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
2025-03-26 19:28:18 +08:00
|
|
|
.left,
|
|
|
|
|
.right {
|
2025-03-25 20:22:10 +08:00
|
|
|
display: flex;
|
2025-03-26 14:47:22 +08:00
|
|
|
position: absolute;
|
2025-03-26 19:28:18 +08:00
|
|
|
top: 80px;
|
|
|
|
|
width: 25%;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
z-index: 99;
|
2025-03-28 16:05:03 +08:00
|
|
|
transition: all 0.3s ease;
|
2025-03-26 19:28:18 +08:00
|
|
|
}
|
|
|
|
|
.left {
|
|
|
|
|
left: 15px;
|
|
|
|
|
}
|
|
|
|
|
.right {
|
|
|
|
|
right: 15px !important;
|
2025-03-25 20:22:10 +08:00
|
|
|
.box {
|
2025-03-26 19:28:18 +08:00
|
|
|
flex: 1; /* 占2份高度 */
|
2025-03-25 20:22:10 +08:00
|
|
|
}
|
|
|
|
|
.box-2 {
|
|
|
|
|
flex: 2; /* 占2份高度 */
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-26 19:28:18 +08:00
|
|
|
.box {
|
|
|
|
|
padding: 20px 10px 10px;
|
|
|
|
|
}
|
|
|
|
|
.center {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 16px;
|
2025-03-28 16:05:03 +08:00
|
|
|
left: 26%;
|
|
|
|
|
// transform: translateX(-50%);
|
2025-03-26 19:28:18 +08:00
|
|
|
width: 48%;
|
|
|
|
|
min-width: 480px;
|
|
|
|
|
.box {
|
|
|
|
|
flex: 1; /* 占2份高度 */
|
|
|
|
|
padding: 20px 10px 10px;
|
|
|
|
|
}
|
2025-03-28 16:05:03 +08:00
|
|
|
transition: all 0.3s ease;
|
2025-03-26 19:28:18 +08:00
|
|
|
}
|
|
|
|
|
.title {
|
|
|
|
|
// padding: 5px 5px 5px 10px;
|
|
|
|
|
background: linear-gradient(to right, var(--el-color-primary), #ffffff00);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.iconfont {
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
margin: 0 5px 0 10px;
|
2025-03-25 20:36:36 +08:00
|
|
|
}
|
2025-03-25 20:22:10 +08:00
|
|
|
}
|
2025-03-28 16:05:03 +08:00
|
|
|
.toggle-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.slide-left-enter-active,
|
|
|
|
|
.slide-left-leave-active {
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.slide-left-enter-from,
|
|
|
|
|
.slide-left-leave-to {
|
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
.slide-right-enter-active,
|
|
|
|
|
.slide-right-leave-active {
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.slide-right-enter-from,
|
|
|
|
|
.slide-right-leave-to {
|
|
|
|
|
transform: translateX(100%);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
.slide-bottom-enter-active,
|
|
|
|
|
.slide-bottom-leave-active {
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.slide-bottom-enter-from,
|
|
|
|
|
.slide-bottom-leave-to {
|
|
|
|
|
transform: translateY(100%);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
2025-03-25 20:22:10 +08:00
|
|
|
</style>
|