修改辽宁反馈问题
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
<div>
|
||||
<div class="vcl mt2">
|
||||
<p
|
||||
v-for="(item, i) in vList"
|
||||
:style="i == 0 ? 'width: 60px' : i == vList?.length - 1 ? 'width: 32px' : 'flex:1'"
|
||||
v-for="(item, i) in displayVList"
|
||||
:style="i == 0 ? 'width: 60px' : i == displayVList?.length - 1 ? IS_LN ? 'flex:1' : 'width: 32px' : 'flex:1'"
|
||||
>
|
||||
{{ item }}
|
||||
</p>
|
||||
@@ -43,7 +43,7 @@
|
||||
{{ item.title }}
|
||||
</p>
|
||||
<p
|
||||
v-for="(k, i) in vList?.slice(0, vList.length - 2)"
|
||||
v-for="(k, i) in dataVList"
|
||||
class="numOne"
|
||||
@click="LookMap(item.list[i].numOneList, item.list[i].numTwoList, 0)"
|
||||
>
|
||||
@@ -58,7 +58,7 @@
|
||||
<p class="numOne" @click="LookMap(item.list[3].numOneList, item.list[3].numTwoList, 0)">
|
||||
{{ item.list[3].numOne }}
|
||||
</p> -->
|
||||
<p
|
||||
<p v-if="!IS_LN"
|
||||
style="font-size: 12px; width: 32px; cursor: pointer; color: var(--el-color-primary)"
|
||||
@click.stop="open(i)"
|
||||
>
|
||||
@@ -165,7 +165,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref, provide } from 'vue'
|
||||
import { onMounted, reactive, ref, provide, computed } from 'vue'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { ArrowRight, View } from '@element-plus/icons-vue'
|
||||
@@ -180,6 +180,7 @@ import {
|
||||
getGridDiagramRunData, getAreaObjAlarm
|
||||
} from '@/api/device-boot/panorama'
|
||||
const emit = defineEmits(['LookMap', 'GridDiagram'])
|
||||
const IS_LN = import.meta.env.VITE_NAME == 'LN' || import.meta.env.VITE_NAME == 'LNqr'
|
||||
const dictData = useDictData()
|
||||
const show = ref(false)
|
||||
const standRef = ref()
|
||||
@@ -391,6 +392,10 @@ const legengList = [
|
||||
]
|
||||
const panoramicVoltage: any = dictData.getBasicData('Dev_Voltage_Stand')
|
||||
const vList = ref(['', '500kV', '220kV', '110kV', '35kV', ''])
|
||||
const displayVList = computed(() => (IS_LN && vList.value.length ? vList.value.slice(0, -1) : vList.value))
|
||||
const dataVList = computed(() =>
|
||||
IS_LN ? vList.value.slice(1, -1) : vList.value.slice(0, vList.value.length - 2)
|
||||
)
|
||||
const formRow: any = ref({})
|
||||
const height = mainHeight(30)
|
||||
const boxHeight = mainHeight(290, 2)
|
||||
|
||||
Reference in New Issue
Block a user