修改云南曲靖项目

This commit is contained in:
guanj
2026-01-08 14:52:01 +08:00
parent 54517c0d5f
commit 6c3037f19b
20 changed files with 47 additions and 36 deletions

View File

@@ -7,7 +7,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onBeforeUnmount, ref, watch, onMounted, defineEmits } from 'vue' import { onBeforeUnmount, ref, watch, onMounted, } from 'vue'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import 'echarts-gl' import 'echarts-gl'
import 'echarts-liquidfill' import 'echarts-liquidfill'
@@ -19,14 +19,22 @@ const myCharts = ref()
const showCircle = ref(false) const showCircle = ref(false)
const fetchConfig = async (name: string) => { const fetchConfig = async (name: string) => {
const res = await import(`../../assets/map/${name.replace(/市$/, "")}.json`) try {
return res.default // 处理城市名称(去掉末尾的"市")并尝试导入对应文件
const res = await import(`../../assets/map/${name.replace(/市$/, '')}.json`)
return res.default
} catch (error) {
const chinaRes = await import(`../../assets/map/中国.json`) // 请确认中国文件的实际命名
return chinaRes.default
}
// const res = await import(`../../assets/map/${name.replace(/市$/, "")}.json`)
// return res.default
// GetEchar(res.default) // GetEchar(res.default)
} }
// fetchConfig() // fetchConfig()
const emit = defineEmits(['getRegionByRegion', 'eliminate', 'clickMap']) const emit = defineEmits(['getRegionByRegion', 'eliminate', 'clickMap'])
onMounted(() => { }) onMounted(() => {})
const GetEchar = async (name: string) => { const GetEchar = async (name: string) => {
let chartDom = document.getElementById('chartMap') let chartDom = document.getElementById('chartMap')

View File

@@ -301,7 +301,7 @@ const options1 = [
const height = mainHeight(20) const height = mainHeight(20)
const heightB = mainHeight(448) const heightB = mainHeight(448)
const heightA = mainHeight(180) const heightA = mainHeight(180)
const size = ref(23) const size = ref(19)
const TableHeaderRef = ref() const TableHeaderRef = ref()
const detailRef = ref() const detailRef = ref()
const dotList: any = ref({}) const dotList: any = ref({})

View File

@@ -321,7 +321,7 @@ const options1 = [
] ]
const height = mainHeight(20) const height = mainHeight(20)
const heightB = mainHeight(445) const heightB = mainHeight(445)
const size = ref(23) const size = ref(19)
const TableHeaderRef = ref() const TableHeaderRef = ref()
const detailRef = ref() const detailRef = ref()
const dotList: any = ref({}) const dotList: any = ref({})

View File

@@ -205,7 +205,7 @@ const props = defineProps(['rowList'])
const harmonic = harmonicOptions.filter(item => item.value < 26) const harmonic = harmonicOptions.filter(item => item.value < 26)
const currentLod = ref(false) const currentLod = ref(false)
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const size = ref(23) const size = ref(19)
const dictData = useDictData() const dictData = useDictData()
const datePickerRef = ref() const datePickerRef = ref()
const height = mainHeight(80).height const height = mainHeight(80).height

View File

@@ -1694,7 +1694,7 @@ import { useDictData } from '@/stores/dictData'
import { ref, reactive, onMounted } from 'vue' import { ref, reactive, onMounted } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { getYwZtSubstation } from '@/api/device-boot/device' import { getYwZtSubstation } from '@/api/device-boot/device'
const size = ref(23) const size = ref(19)
const TerminalRef = ref() const TerminalRef = ref()
const pageHeight = mainHeight(20) const pageHeight = mainHeight(20)
const Height = mainHeight(100) const Height = mainHeight(100)

View File

@@ -134,7 +134,7 @@ defineOptions({
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const height = mainHeight(20) const height = mainHeight(20)
const heightTab = mainHeight(82) const heightTab = mainHeight(82)
const size = ref(23) const size = ref(19)
const addTreeRef = ref() const addTreeRef = ref()
const editorRef = ref() const editorRef = ref()
const dialogVisible = ref(false) const dialogVisible = ref(false)

View File

@@ -26,7 +26,7 @@ defineOptions({
}) })
const emits = defineEmits(['algorithm']) const emits = defineEmits(['algorithm'])
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const popupEditFlag = ref(false) const popupEditFlag = ref(false)

View File

@@ -64,7 +64,7 @@ defineOptions({
const excelOptions = ref({}) const excelOptions = ref({})
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const treeRef = ref() const treeRef = ref()
const addTreeRef = ref() const addTreeRef = ref()
const url = ref('') const url = ref('')

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="default-main"> <div class="default-main">
<TableHeader datePicker ref="header"> <TableHeader area datePicker ref="header">
<template v-slot:select> <template v-slot:select>
<el-form-item label="电网标志"> <el-form-item label="电网标志">
<el-select v-model="tableStore.table.params.powerFlag" placeholder="请选择电网标志"> <el-select v-model="tableStore.table.params.powerFlag" placeholder="请选择电网标志">
@@ -139,7 +139,7 @@ import { ref, onMounted, provide } from 'vue'
import { mainHeight } from '@/utils/layout' import { mainHeight } from '@/utils/layout'
import * as echarts from 'echarts/core' import * as echarts from 'echarts/core'
defineOptions({ defineOptions({
name: 'harmonic-boot/qydetailedAnalysis/pollutionqy' name: 'harmonic-boot/area/powerAssessment'
}) })
const dictData = useDictData() const dictData = useDictData()
const echartList = ref({}) const echartList = ref({})

View File

@@ -194,7 +194,7 @@ const dotList: any = ref({})
const height = mainHeight(20) const height = mainHeight(20)
const heightB = mainHeight(70) const heightB = mainHeight(70)
const harmonic = harmonicOptions.slice(1) const harmonic = harmonicOptions.slice(1)
const size = ref(23) const size = ref(19)
const showTabs = ref(false) const showTabs = ref(false)
const loadDataOptions: any = ref([]) const loadDataOptions: any = ref([])
const form: any = reactive({ const form: any = reactive({

View File

@@ -136,7 +136,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'frequencyMonitorNumber', field: 'frequencyMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -165,7 +165,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'voltageMonitorNumber', field: 'voltageMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -194,7 +194,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'harmonicVoltageMonitorNumber', field: 'harmonicVoltageMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -223,7 +223,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'harmonicCurrentMonitorNumber', field: 'harmonicCurrentMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -252,7 +252,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'threePhaseVoltageMonitorNumber', field: 'threePhaseVoltageMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -281,7 +281,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'flickerMonitorNumber', field: 'flickerMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -310,7 +310,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'negativeMonitorNumber', field: 'negativeMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue
@@ -339,7 +339,7 @@ const tableStore = new TableStore({
children: [ children: [
{ {
field: 'interHarmonicMonitorNumber', field: 'interHarmonicMonitorNumber',
title: '超标点数(天/点)', title: '超标点数()',
minWidth: '140px', minWidth: '140px',
formatter: (row: any) => { formatter: (row: any) => {
return row.cellValue == -1 ? '/' : row.cellValue return row.cellValue == -1 ? '/' : row.cellValue

View File

@@ -15,7 +15,7 @@
></PointTree> ></PointTree>
</pane> </pane>
<pane> <pane>
<div style="position: relative; height: 100%"> <div style="position: relative; height: 100%;width: 100%;">
<el-tabs <el-tabs
v-model="activeName" v-model="activeName"
type="border-card" type="border-card"
@@ -85,7 +85,7 @@ defineOptions({
const route = useRoute() const route = useRoute()
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const pointTree = ref() const pointTree = ref()
const size = ref(23) const size = ref(19)
const isReload = ref(false) const isReload = ref(false)
const height = mainHeight(40) const height = mainHeight(40)
const activeName = ref('2') const activeName = ref('2')

View File

@@ -61,7 +61,7 @@ defineOptions({
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const showTree = ref(false) const showTree = ref(false)
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const dictData = useDictData() const dictData = useDictData()
const TableHeaderRef = ref() const TableHeaderRef = ref()
const dotList: any = ref({}) const dotList: any = ref({})

View File

@@ -72,7 +72,7 @@ defineOptions({
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei' const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
const showTree = ref(false) const showTree = ref(false)
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const dictData = useDictData() const dictData = useDictData()
const TableHeaderRef = ref() const TableHeaderRef = ref()
const dotList: any = ref({}) const dotList: any = ref({})

View File

@@ -77,7 +77,7 @@ defineOptions({
// name: 'harmonic-boot/report/word' // name: 'harmonic-boot/report/word'
}) })
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const dictData = useDictData() const dictData = useDictData()
const TableHeaderRef = ref() const TableHeaderRef = ref()
const dotList: any = ref({}) const dotList: any = ref({})

View File

@@ -81,7 +81,7 @@ defineOptions({
const collapseName = ref([1, 2]) const collapseName = ref([1, 2])
const height = mainHeight(80) const height = mainHeight(80)
const collapseHeight = mainHeight(125) const collapseHeight = mainHeight(125)
const size = ref(23) const size = ref(19)
const dotList: any = ref({}) const dotList: any = ref({})
const infoLoading = ref(false) const infoLoading = ref(false)
const outcomeLoading = ref(false) const outcomeLoading = ref(false)

View File

@@ -126,7 +126,7 @@ const map = (res: any) => {
show: true, show: true,
color: ['#A52a2a', '#DAA520'], color: ['#A52a2a', '#DAA520'],
min: 0, min: 0,
max: maxNum, max: maxNum||100,
textStyle: { textStyle: {
color: '#000', color: '#000',
fontSize: 12 fontSize: 12

View File

@@ -63,7 +63,7 @@ defineOptions({
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const pointTree = ref() const pointTree = ref()
const size = ref(23) const size = ref(19)
const isReload = ref(false) const isReload = ref(false)
const height = mainHeight(40) const height = mainHeight(40)
const activeName = ref('3') const activeName = ref('3')

View File

@@ -145,7 +145,7 @@ defineOptions({
}) })
const monitoringPoint = useMonitoringPoint() const monitoringPoint = useMonitoringPoint()
const height = mainHeight(20) const height = mainHeight(20)
const size = ref(23) const size = ref(19)
const value = ref('') const value = ref('')
const TableHeaderRef = ref() const TableHeaderRef = ref()
const dotList: any = ref({ const dotList: any = ref({

View File

@@ -13,7 +13,7 @@
show-checkbox show-checkbox
width="350px" width="350px"
:data="menuTree" :data="menuTree"
:checkStrictly="false" :checkStrictly="checkStrictly"
@checkChange="checkChange" @checkChange="checkChange"
></Tree> ></Tree>
<el-empty style="width: 350px; padding-top: 300px; box-sizing: border-box" description="请选择角色" v-else /> <el-empty style="width: 350px; padding-top: 300px; box-sizing: border-box" description="请选择角色" v-else />
@@ -141,15 +141,18 @@ const currentChange = (data: any) => {
menuListId.value = data.row.id menuListId.value = data.row.id
getFunctionsByRoleIndex({ id: data.row.id }).then((res: any) => { getFunctionsByRoleIndex({ id: data.row.id }).then((res: any) => {
treeRef.value.treeRef.setCheckedKeys(res.data.map((item: any) => item.id)) treeRef.value.treeRef.setCheckedKeys(res.data.map((item: any) => item.id))
setTimeout(() => {
checkStrictly.value = false
}, 100)
}) })
} }
const timeout = ref<NodeJS.Timeout>() const timeout = ref<NodeJS.Timeout>()
const checkChange = (data: any) => { const checkChange = (data: any) => {
// if (checkStrictly.value) { if (checkStrictly.value) {
// checkStrictly.value = false checkStrictly.value = false
// return return
// } }
updateRoleMenu({ updateRoleMenu({
id: menuListId.value, id: menuListId.value,