Merge branch 'main' of http://192.168.1.22:3000/zcy/canneng-admin
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue'
|
import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue'
|
||||||
// import echarts from './echarts'
|
// import echarts from './echarts'
|
||||||
import * as echarts from 'echarts'; // 全引入
|
import * as echarts from 'echarts' // 全引入
|
||||||
|
|
||||||
import 'echarts/lib/component/dataZoom'
|
import 'echarts/lib/component/dataZoom'
|
||||||
|
|
||||||
@@ -146,8 +146,8 @@ const handlerYAxis = () => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
...props.options.yAxis,
|
...temp,
|
||||||
...temp
|
...props.options.yAxis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -178,8 +178,8 @@ const handlerXAxis = () => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
...props.options.xAxis,
|
...temp,
|
||||||
...temp
|
...props.options.xAxis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
class="table-com-search-form"
|
class="table-com-search-form"
|
||||||
:label-width="90"
|
:label-width="90"
|
||||||
>
|
>
|
||||||
|
<el-form-item label="区域" v-if="area">
|
||||||
|
<Area v-model="tableStore.table.params.deptIndex" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="日期" v-if="datePicker" style="grid-column: span 2; max-width: unset">
|
<el-form-item label="日期" v-if="datePicker" style="grid-column: span 2; max-width: unset">
|
||||||
<DatePicker ref="datePickerRef"></DatePicker>
|
<DatePicker ref="datePickerRef"></DatePicker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -39,18 +42,21 @@
|
|||||||
import { inject, ref, onMounted, nextTick, onUnmounted } from 'vue'
|
import { inject, ref, onMounted, nextTick, onUnmounted } from 'vue'
|
||||||
import type TableStore from '@/utils/tableStore'
|
import type TableStore from '@/utils/tableStore'
|
||||||
import DatePicker from '@/components/form/datePicker/index.vue'
|
import DatePicker from '@/components/form/datePicker/index.vue'
|
||||||
|
import Area from '@/components/form/area/index.vue'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
|
import { useDictData } from '@/stores/dictData'
|
||||||
const tableStore = inject('tableStore') as TableStore
|
const tableStore = inject('tableStore') as TableStore
|
||||||
const tableHeader = ref()
|
const tableHeader = ref()
|
||||||
const datePickerRef = ref()
|
const datePickerRef = ref()
|
||||||
|
const dictData = useDictData()
|
||||||
interface Props {
|
interface Props {
|
||||||
datePicker?: boolean
|
datePicker?: boolean
|
||||||
|
area?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
datePicker: false
|
datePicker: false,
|
||||||
|
area: false
|
||||||
})
|
})
|
||||||
// 动态计算table高度
|
// 动态计算table高度
|
||||||
const resizeObserver = new ResizeObserver(entries => {
|
const resizeObserver = new ResizeObserver(entries => {
|
||||||
@@ -67,6 +73,9 @@ onMounted(() => {
|
|||||||
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
|
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
|
||||||
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
|
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
|
||||||
}
|
}
|
||||||
|
if (props.area) {
|
||||||
|
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
||||||
|
}
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
resizeObserver.observe(tableHeader.value)
|
resizeObserver.observe(tableHeader.value)
|
||||||
const dom = document.getElementById('header-form') as HTMLElement
|
const dom = document.getElementById('header-form') as HTMLElement
|
||||||
@@ -105,6 +114,9 @@ const onComSearch = async () => {
|
|||||||
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
|
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
|
||||||
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
|
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
|
||||||
}
|
}
|
||||||
|
if (props.area) {
|
||||||
|
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
||||||
|
}
|
||||||
|
|
||||||
await tableStore.onTableAction('search', {})
|
await tableStore.onTableAction('search', {})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,8 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
<my-echart class="bars_w" :options="echartList" />
|
<my-echart class="bars_w" :options="echartList" />
|
||||||
<vxe-table class="dw" :data="TableData" v-bind="defaultAttribute">
|
|
||||||
|
<vxe-table class="dw" :data="TableData" height="50px" v-bind="defaultAttribute">
|
||||||
<vxe-column field="name" title="名称" width="100px"></vxe-column>
|
<vxe-column field="name" title="名称" width="100px"></vxe-column>
|
||||||
<vxe-column field="totalEvents" title="事件总数" width="100px"></vxe-column>
|
<vxe-column field="totalEvents" title="事件总数" width="100px"></vxe-column>
|
||||||
<vxe-column field="tolerable" title="可容忍" width="100px"></vxe-column>
|
<vxe-column field="tolerable" title="可容忍" width="100px"></vxe-column>
|
||||||
@@ -145,8 +146,8 @@ const info = async (list: any) => {
|
|||||||
color: ['#FF8C00', '#00BFFF', 'green', 'red'],
|
color: ['#FF8C00', '#00BFFF', 'green', 'red'],
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'log',
|
type: 'log',
|
||||||
// min: '0.001',
|
min: '0.001',
|
||||||
// max: '1000',
|
max: '1000',
|
||||||
name: 's',
|
name: 's',
|
||||||
splitLine: { show: false }
|
splitLine: { show: false }
|
||||||
},
|
},
|
||||||
@@ -245,8 +246,8 @@ const info = async (list: any) => {
|
|||||||
color: ['yellow', 'green', 'red'],
|
color: ['yellow', 'green', 'red'],
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'log',
|
type: 'log',
|
||||||
// min: '0.001',
|
min: '0.001',
|
||||||
// max: '1000',
|
max: '1000',
|
||||||
name: 's',
|
name: 's',
|
||||||
splitLine: { show: false }
|
splitLine: { show: false }
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,28 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<!-- <el-form :inline="true" :model="formInline" class="demo-form-inline">
|
<TableHeader area>
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area v-model="formInline.deptIndex" ref="area" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="统计类型:">
|
|
||||||
<el-select
|
|
||||||
v-model="formInline.statisticalType"
|
|
||||||
value-key="id"
|
|
||||||
placeholder="请选择统计类型"
|
|
||||||
size="large"
|
|
||||||
>
|
|
||||||
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form> -->
|
|
||||||
<TableHeader>
|
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area ref="area" v-model="tableStore.table.params.deptIndex" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="统计类型">
|
<el-form-item label="统计类型">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="tableStore.table.params.statisticalType"
|
v-model="tableStore.table.params.statisticalType"
|
||||||
@@ -35,8 +15,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<div v-loading="tableStore.table.loading">
|
<div v-loading="tableStore.table.loading" class="pr10">
|
||||||
<el-row :gutter="10">
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<MyEchartMap
|
<MyEchartMap
|
||||||
ref="EchartMap"
|
ref="EchartMap"
|
||||||
@@ -113,7 +93,6 @@ const tableStore = new TableStore({
|
|||||||
})
|
})
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Report_Type'])[0]
|
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Report_Type'])[0]
|
||||||
tableStore.table.params.monitorFlag = 2
|
tableStore.table.params.monitorFlag = 2
|
||||||
tableStore.table.params.powerFlag = 2
|
tableStore.table.params.powerFlag = 2
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker area>
|
||||||
<template v-slot:select>
|
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area v-model="tableStore.table.params.deptIndex" />
|
|
||||||
</el-form-item>
|
|
||||||
</template>
|
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<el-tabs v-model="activeName" type="border-card" v-loading="tableStore.table.loading">
|
<el-tabs v-model="activeName" type="border-card" v-loading="tableStore.table.loading">
|
||||||
<el-tab-pane label="图形" name="1">
|
<el-tab-pane label="图形" name="1">
|
||||||
@@ -49,7 +45,7 @@ const tableStore = new TableStore({
|
|||||||
})
|
})
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
||||||
tableStore.table.params.monitorFlag = 2
|
tableStore.table.params.monitorFlag = 2
|
||||||
tableStore.table.params.powerFlag = 2
|
tableStore.table.params.powerFlag = 2
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker area>
|
||||||
<template v-slot:select>
|
<template v-slot:select></template>
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area v-model="tableStore.table.params.deptIndex" />
|
|
||||||
</el-form-item>
|
|
||||||
</template>
|
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" v-loading="tableStore.table.loading">
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" v-loading="tableStore.table.loading">
|
||||||
<el-tab-pane label="暂降原因及类型统计" name="1">
|
<el-tab-pane label="暂降原因及类型统计" name="1">
|
||||||
@@ -20,7 +16,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import Area from '@/components/form/area/index.vue'
|
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import { onMounted, reactive, ref, provide } from 'vue'
|
import { onMounted, reactive, ref, provide } from 'vue'
|
||||||
@@ -49,7 +45,6 @@ const tableStore = new TableStore({
|
|||||||
})
|
})
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
||||||
tableStore.table.params.monitorFlag = 2
|
tableStore.table.params.monitorFlag = 2
|
||||||
tableStore.table.params.powerFlag = 2
|
tableStore.table.params.powerFlag = 2
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker area></TableHeader>
|
||||||
<template v-slot:select>
|
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area v-model="tableStore.table.params.deptIndex" />
|
|
||||||
</el-form-item>
|
|
||||||
</template>
|
|
||||||
</TableHeader>
|
|
||||||
<el-tabs v-model="activeName" type="border-card" v-loading="tableStore.table.loading">
|
<el-tabs v-model="activeName" type="border-card" v-loading="tableStore.table.loading">
|
||||||
<el-tab-pane label="图形" name="1">
|
<el-tab-pane label="图形" name="1">
|
||||||
<Echart :list="list" ref="echarts" />
|
<Echart :list="list" ref="echarts" />
|
||||||
@@ -49,7 +43,6 @@ const tableStore = new TableStore({
|
|||||||
})
|
})
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
tableStore.table.params.statisticalType = dictData.getBasicData('Statistical_Type', ['Load_Type'])[3]
|
||||||
tableStore.table.params.monitorFlag = 2
|
tableStore.table.params.monitorFlag = 2
|
||||||
tableStore.table.params.powerFlag = 2
|
tableStore.table.params.powerFlag = 2
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker area>
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="区域">
|
|
||||||
<Area v-model="tableStore.table.params.deptIndex" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="终端状态">
|
<el-form-item label="终端状态">
|
||||||
<el-select
|
<el-select
|
||||||
multiple
|
multiple
|
||||||
@@ -120,7 +118,6 @@ const tableStore = new TableStore({
|
|||||||
manufacturerForm.value = []
|
manufacturerForm.value = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.runFlag = []
|
tableStore.table.params.runFlag = []
|
||||||
tableStore.table.params.comFlag = []
|
tableStore.table.params.comFlag = []
|
||||||
tableStore.table.params.manufacturer = []
|
tableStore.table.params.manufacturer = []
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker area>
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="区域"><Area v-model="tableStore.table.params.deptIndex" /></el-form-item>
|
|
||||||
<el-form-item label="干扰源类型">
|
<el-form-item label="干扰源类型">
|
||||||
<el-select
|
<el-select
|
||||||
multiple
|
multiple
|
||||||
@@ -143,7 +142,6 @@ const tableStore = new TableStore({
|
|||||||
scaleForm.value = []
|
scaleForm.value = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
|
||||||
tableStore.table.params.scale = []
|
tableStore.table.params.scale = []
|
||||||
tableStore.table.params.comFlag = []
|
tableStore.table.params.comFlag = []
|
||||||
tableStore.table.params.loadType = []
|
tableStore.table.params.loadType = []
|
||||||
|
|||||||
Reference in New Issue
Block a user