This commit is contained in:
GGJ
2025-04-10 14:08:12 +08:00
parent 02053ac58f
commit 9496ca709e
2 changed files with 68 additions and 15 deletions

View File

@@ -1126,7 +1126,9 @@
clearable
>
<el-option
v-for="option in (newStationIdArr.filter(item => item.stationId == AddProjectBO.subIndex))"
v-for="option in newStationIdArr.filter(
item => item.stationId == AddProjectBO.subIndex
)"
:key="option.id"
:label="option.projectName"
:value="option.id"
@@ -2824,7 +2826,6 @@ const selectChanged = (value: any) => {
if (value === '3d68ceef26a579efe2fe0cdc654911b7') {
setTheDefaultValue(10, 0.38 * 1000, 0.38 * 100)
//750kv
} else if (value === '4cf2d844c47a15a1c16a65b4bbfd1b0e') {
setTheDefaultValue(7000, 750 * 1000, 750 * 100)
@@ -2868,10 +2869,8 @@ const selectChanged = (value: any) => {
//1000kv
} else if (value === '674cf02fb3fcfd9f99fd786cfca090df') {
setTheDefaultValue(9000, 1000 * 1000, 1000 * 100)
} else {
setTheDefaultValue(10, 10, 10)
}
setvoltageDev(voltageLevelArr.filter(item => item.id == value)[0].value)
@@ -2956,7 +2955,7 @@ const area = () => {
deviceBODetail.value.thisTimeCheck = year + '-' + month + '-' + day
deviceBODetail.value.loginTime = year + '-' + month + '-' + day
deviceBODetail.value.updateTime = year + '-' + month + '-' + day
deviceBODetail.value.nextTimeCheck = year + 1 + '-' + month + '-' + (day - 1 > 10 ? day - 1 : '0' + (day - 1))
deviceBODetail.value.nextTimeCheck = year + 1 + '-' + month + '-' + (day - 1 >= 10 ? day - 1 : '0' + (day - 1))
}
const setDown = () => {
selectUserList({}).then(res => {

View File

@@ -1,6 +1,6 @@
<template>
<div class="default-main" style="position: relative">
<TableHeader date-picker>
<TableHeader date-picker >
<template v-slot:select>
<el-form-item label="对象类型">
<el-select
@@ -124,6 +124,19 @@
</el-tooltip>
</template>
</TableHeader>
<div class="mapBox" >
<el-form :inline="true" class="demo-form-inline">
<el-form-item>
<Area ref="areaRef" :show-all-levels="false" v-model="tableStore.table.params.orgNo" style="width: 100px"
/>
</el-form-item>
</el-form>
</div>
<Map />
<transition name="slide-left">
@@ -237,6 +250,7 @@ import TableHeader from '@/components/table/header/index.vue'
import TableStore from '@/utils/tableStore'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
import Area from '@/components/form/area/index.vue'
import Map from './components/map.vue'
import { BorderBox13 } from '@kjgl77/datav-vue3'
import { useConfig } from '@/stores/config'
@@ -290,6 +304,7 @@ const tableStore = new TableStore({
tableStore.table.data = []
}
})
provide('tableStore', tableStore)
const leftVisible = ref(true)
const rightVisible = ref(true)
@@ -419,4 +434,43 @@ onMounted(() => {
color: #ccc;
}
}
:deep(.mapBox) {
position: absolute;
top: 80px;
left: calc(50% + 45px);
z-index: 1;
.el-select {
min-width: 100px;
.el-select__wrapper {
height: 46px !important;
border-radius: 8px;
}
}
.Icon {
height: 46px;
width: 46px;
background-color: #fff;
border-radius: 8px;
text-align: center;
line-height: 50px;
cursor: pointer;
.fa-refresh {
color: var(--el-color-primary) !important;
}
}
.el-input__wrapper {
height: 46px;
border-radius: 8px;
}
.el-form-item {
margin-right: 15px;
}
}
</style>