2024-07-31 10:42:04 +08:00
|
|
|
|
<!-- 实时数据 - 实时趋势 -->
|
2024-07-22 10:35:01 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="realtrend">
|
|
|
|
|
|
<el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
|
2024-07-31 15:23:48 +08:00
|
|
|
|
<el-tab-pane v-for="(item, index) in tabsList" :label="item.groupName" :name="index" :key="index">
|
2024-07-31 10:42:04 +08:00
|
|
|
|
<div v-loading="loading">
|
|
|
|
|
|
<div class="realtrend_top">
|
2024-10-14 15:09:58 +08:00
|
|
|
|
<!-- <div class="thead">
|
2024-07-31 10:42:04 +08:00
|
|
|
|
<ul v-for="(table, tableIndex) in newTableList" :key="tableIndex">
|
|
|
|
|
|
<li>
|
|
|
|
|
|
{{ table[0].value }}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
2024-10-14 15:09:58 +08:00
|
|
|
|
<div class="table">
|
2024-07-31 10:42:04 +08:00
|
|
|
|
<ul v-for="(table, tableIndex) in newTableList" :key="tableIndex">
|
|
|
|
|
|
<span v-for="(key, keys) in table">
|
|
|
|
|
|
<li v-if="keys != 0">
|
|
|
|
|
|
{{ key?.value }}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</ul>
|
2024-10-14 15:09:58 +08:00
|
|
|
|
</div> -->
|
|
|
|
|
|
<div class="realtrend_table">
|
|
|
|
|
|
<div class="thead_left">
|
|
|
|
|
|
<p>次数</p>
|
|
|
|
|
|
<p>{{ item.groupName }}</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="thead_right">
|
|
|
|
|
|
<div class="right_cell" v-for="(value, key, index) in tableData" :key="index">
|
|
|
|
|
|
<p style="color: red; margin: 0 10px">
|
|
|
|
|
|
<span style="color: green">
|
|
|
|
|
|
{{ String(key).replace('data', ' ') }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p style="color: red; margin: 0 10px">
|
|
|
|
|
|
<span
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
String(key).includes('data') &&
|
|
|
|
|
|
String(key) != 'dataLevel' &&
|
|
|
|
|
|
String(key) != 'dataTime'
|
|
|
|
|
|
"
|
|
|
|
|
|
style="color: green"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ value }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-07-31 10:42:04 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tab_info">
|
|
|
|
|
|
<div class="charts">
|
|
|
|
|
|
<MyEchart ref="barCharts" :options="echartsData"></MyEchart>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
2024-07-22 10:35:01 +08:00
|
|
|
|
</el-tabs>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-07-31 15:23:48 +08:00
|
|
|
|
import { ref, onMounted, reactive, nextTick } from 'vue'
|
2024-07-22 10:35:01 +08:00
|
|
|
|
import { VxeGridProps, VxeGridPropTypes } from 'vxe-table'
|
|
|
|
|
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
|
|
|
|
|
import MyEchart from '@/components/echarts/MyEchart.vue'
|
|
|
|
|
|
import { Platform, TrendCharts, DataLine } from '@element-plus/icons-vue'
|
2024-07-31 10:42:04 +08:00
|
|
|
|
import { getDeviceTrendDataGroup, getDeviceTrendData } from '@/api/cs-device-boot/EquipmentDelivery.ts'
|
|
|
|
|
|
import Index from '@/components/wangEditor/index.vue'
|
2024-07-31 15:23:48 +08:00
|
|
|
|
const activeName = ref(0)
|
2024-07-31 10:42:04 +08:00
|
|
|
|
|
|
|
|
|
|
const tableList: any = []
|
2024-07-22 10:35:01 +08:00
|
|
|
|
interface RowVO {
|
|
|
|
|
|
[key: string]: any
|
|
|
|
|
|
}
|
|
|
|
|
|
//谐波电压含有率
|
|
|
|
|
|
const gridOptions = ref<VxeGridProps<RowVO>>({
|
|
|
|
|
|
border: true,
|
|
|
|
|
|
showOverflow: true,
|
|
|
|
|
|
showHeader: false,
|
|
|
|
|
|
columns: [],
|
|
|
|
|
|
data: [],
|
|
|
|
|
|
columnConfig: {
|
|
|
|
|
|
resizable: true
|
|
|
|
|
|
},
|
|
|
|
|
|
align: 'center'
|
|
|
|
|
|
})
|
|
|
|
|
|
gridOptions.value = { ...defaultAttribute, ...gridOptions.value }
|
2024-07-31 10:42:04 +08:00
|
|
|
|
const myColumns: any = ref([
|
|
|
|
|
|
// { field: 'name', title: '次数' }
|
|
|
|
|
|
// { field: 'value', title: '谐波电压含有率(%)' }
|
2024-07-22 10:35:01 +08:00
|
|
|
|
])
|
2024-07-31 10:42:04 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
const yAxisUnit: any = ref('')
|
|
|
|
|
|
|
|
|
|
|
|
const myData = tableList
|
2024-07-31 10:42:04 +08:00
|
|
|
|
const tabsList = ref([])
|
|
|
|
|
|
//接收参数
|
|
|
|
|
|
const params = ref({})
|
|
|
|
|
|
const open = (val: any) => {
|
|
|
|
|
|
//获取指标tab
|
|
|
|
|
|
getDeviceTrendDataGroup().then(res => {
|
|
|
|
|
|
tabsList.value = res.data
|
|
|
|
|
|
if (tabsList.value.length != 0) {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
// activeName.value = tabsList.value[0]?.id
|
|
|
|
|
|
activeName.value = 0
|
2024-07-31 10:42:04 +08:00
|
|
|
|
}
|
2024-07-31 15:23:48 +08:00
|
|
|
|
params.value = { groupId: tabsList.value[activeName.value]?.id, ...val }
|
2024-07-31 10:42:04 +08:00
|
|
|
|
findRealTrendDataByGroupId(params.value)
|
|
|
|
|
|
})
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
const newTableList: any = ref([])
|
|
|
|
|
|
//根据指标tab查询实时趋势
|
|
|
|
|
|
const loading: any = ref(false)
|
|
|
|
|
|
//echarts数据
|
|
|
|
|
|
const chartsData: any = ref([])
|
|
|
|
|
|
const chartsYxiasData: any = ref([])
|
|
|
|
|
|
const findRealTrendDataByGroupId = (obj: any) => {
|
|
|
|
|
|
loading.value = true
|
2024-07-31 15:23:48 +08:00
|
|
|
|
chartsData.value = []
|
|
|
|
|
|
chartsYxiasData.value = []
|
2024-07-31 10:42:04 +08:00
|
|
|
|
getDeviceTrendData(obj).then(res => {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
let list: any = []
|
|
|
|
|
|
let countList: any = []
|
2024-07-31 10:42:04 +08:00
|
|
|
|
myColumns.value = [{ field: 'name', title: '次数' }]
|
|
|
|
|
|
chartsData.value = res.data[0].thdDataTdVODatas
|
|
|
|
|
|
//处理实时趋势表格
|
|
|
|
|
|
let arr = res.data[0].thdDataVOS
|
|
|
|
|
|
arr.map((item: any, index: any) => {
|
|
|
|
|
|
myColumns.value.push({ field: item.phase, title: item.name })
|
|
|
|
|
|
chartsYxiasData.value.push({ phase: item.phase, title: item.name, phaseList: [], gbList: [] })
|
|
|
|
|
|
//循环第二层数据
|
|
|
|
|
|
item.list = []
|
|
|
|
|
|
item.data.map((vv: any, vvs: any) => {
|
|
|
|
|
|
if (!(vv.statisticalData + '')) {
|
|
|
|
|
|
vv.statisticalData = '/'
|
|
|
|
|
|
}
|
2024-07-31 15:23:48 +08:00
|
|
|
|
item.list.push({ value: vv.statisticalData, count: vv.frequency - 0 })
|
2024-07-31 10:42:04 +08:00
|
|
|
|
})
|
|
|
|
|
|
list[index + 1] = item.list
|
2024-07-31 15:23:48 +08:00
|
|
|
|
const minCount = Math.min(...item.list.map((item: any) => item.count))
|
|
|
|
|
|
const maxCount = Math.max(...item.list.map((item: any) => item.count))
|
|
|
|
|
|
for (let i = 0; i < 50; i++) {
|
|
|
|
|
|
countList[i] = { value: i + minCount + '次', count: i + minCount }
|
|
|
|
|
|
}
|
|
|
|
|
|
countList.map((item: any, index: any) => {
|
|
|
|
|
|
if (item.value.replace('次', '') - 0 > 50) {
|
|
|
|
|
|
countList.splice(index, 1)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
list[0] = countList
|
2024-07-31 10:42:04 +08:00
|
|
|
|
if (item.list.length == 0) {
|
|
|
|
|
|
for (let i = 0; i < countList.length; i++) {
|
|
|
|
|
|
item.list.push({
|
|
|
|
|
|
value: '/',
|
|
|
|
|
|
count: index
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-07-31 15:23:48 +08:00
|
|
|
|
if (item.list.length != 0) {
|
|
|
|
|
|
const maxCount1 = Math.max(...countList.map((item: any) => item.count))
|
|
|
|
|
|
const maxCount2 = Math.max(...item.list.map((item: any) => item.count))
|
|
|
|
|
|
console.log(maxCount2, maxCount1)
|
|
|
|
|
|
if (maxCount2 < maxCount1) {
|
|
|
|
|
|
for (let i = 0; i < maxCount1 - maxCount2; i++) {
|
|
|
|
|
|
item.list.push({
|
|
|
|
|
|
value: '/',
|
|
|
|
|
|
count: index
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2024-07-31 10:42:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
// 转换为对象数组
|
|
|
|
|
|
list.map((item: any, index: any) => {
|
|
|
|
|
|
item.unshift({ value: myColumns.value[index].title, count: '' })
|
|
|
|
|
|
})
|
|
|
|
|
|
newTableList.value = list
|
|
|
|
|
|
loading.value = false
|
|
|
|
|
|
init()
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2024-07-22 10:35:01 +08:00
|
|
|
|
|
|
|
|
|
|
//反转表格
|
|
|
|
|
|
const reverseTable = () => {
|
|
|
|
|
|
const buildData = myColumns.value.map(column => {
|
|
|
|
|
|
const item: any = { col0: column.title }
|
|
|
|
|
|
myData.forEach((row, index) => {
|
|
|
|
|
|
item[`col${index + 1}`] = row[column.field]
|
|
|
|
|
|
})
|
|
|
|
|
|
return item
|
|
|
|
|
|
})
|
|
|
|
|
|
const buildColumns: VxeGridPropTypes.Columns = [
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'col0',
|
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
|
width: 200
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
myData.forEach((item, index) => {
|
|
|
|
|
|
buildColumns.push({
|
|
|
|
|
|
field: `col${index + 1}`,
|
|
|
|
|
|
minWidth: 120
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
|
|
|
|
gridOptions.value.data = buildData
|
|
|
|
|
|
gridOptions.value.columns = buildColumns
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reverseTable()
|
|
|
|
|
|
|
2024-10-14 15:09:58 +08:00
|
|
|
|
const echartsData: any = ref([])
|
|
|
|
|
|
const barCharts = ref()
|
2024-07-31 10:42:04 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
//加载echarts
|
|
|
|
|
|
const init = () => {
|
2024-07-31 10:42:04 +08:00
|
|
|
|
let xAxisList: any = []
|
|
|
|
|
|
chartsData.value.map((item: any, index: any) => {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
chartsYxiasData.value.map((vv: any, vvs: any) => {
|
2024-07-31 10:42:04 +08:00
|
|
|
|
if (item.phase == vv.phase) {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
if (vvs == 0) {
|
|
|
|
|
|
vv.gbList.push(item.internationalValue)
|
|
|
|
|
|
}
|
2024-07-31 10:42:04 +08:00
|
|
|
|
vv.phaseList.push(item.statisticalData)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
xAxisList.push(item.frequency + '次')
|
|
|
|
|
|
})
|
|
|
|
|
|
xAxisList = [...new Set(xAxisList)]
|
|
|
|
|
|
echartsData.value = {
|
|
|
|
|
|
options: {
|
|
|
|
|
|
// backgroundColor: '#0f375f',
|
2024-07-31 15:23:48 +08:00
|
|
|
|
dataZoom: [
|
|
|
|
|
|
{
|
2024-09-27 16:22:34 +08:00
|
|
|
|
type: 'inside',
|
|
|
|
|
|
height: 13,
|
2024-07-31 15:23:48 +08:00
|
|
|
|
start: 0,
|
2024-09-27 16:22:34 +08:00
|
|
|
|
bottom: '20px',
|
2024-07-31 15:23:48 +08:00
|
|
|
|
end: 20
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
start: 0,
|
2024-09-27 16:22:34 +08:00
|
|
|
|
height: 13,
|
|
|
|
|
|
bottom: '20px',
|
2024-07-31 15:23:48 +08:00
|
|
|
|
end: 20
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2024-07-31 10:42:04 +08:00
|
|
|
|
grid: {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
top: '14%',
|
2024-09-27 16:22:34 +08:00
|
|
|
|
bottom: '70px', //也可设置left和right设置距离来控制图表的大小
|
2024-07-31 10:42:04 +08:00
|
|
|
|
left: '3%',
|
|
|
|
|
|
right: '5%'
|
|
|
|
|
|
},
|
2024-09-14 10:32:01 +08:00
|
|
|
|
// tooltip: {
|
|
|
|
|
|
// trigger: 'axis',
|
|
|
|
|
|
// axisPointer: {
|
|
|
|
|
|
// type: 'cross',
|
|
|
|
|
|
// label: {
|
|
|
|
|
|
// show: false
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
2024-07-31 10:42:04 +08:00
|
|
|
|
legend: {
|
|
|
|
|
|
data: [],
|
|
|
|
|
|
itemGap: 15,
|
|
|
|
|
|
type: 'scroll', // 开启滚动分页
|
|
|
|
|
|
// orient: 'vertical', // 垂直排列
|
|
|
|
|
|
right: '3%', // 位置调整
|
|
|
|
|
|
top: 0,
|
|
|
|
|
|
bottom: 20,
|
|
|
|
|
|
width: 400,
|
|
|
|
|
|
height: 50
|
|
|
|
|
|
},
|
|
|
|
|
|
xAxis: {
|
|
|
|
|
|
name: '次数',
|
|
|
|
|
|
data: xAxisList,
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
show: true, //隐藏X轴轴线
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
color: '#000'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
axisTick: {
|
|
|
|
|
|
show: true //隐藏X轴刻度
|
|
|
|
|
|
},
|
|
|
|
|
|
axisPointer: {
|
|
|
|
|
|
type: 'shadow'
|
|
|
|
|
|
},
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
color: '#000' //X轴文字颜色
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
yAxis: [
|
|
|
|
|
|
{
|
|
|
|
|
|
type: 'value',
|
2024-09-25 16:31:45 +08:00
|
|
|
|
name: chartsData?.value[0]?.unit ? '单位(' + chartsData?.value[0]?.unit + ')' : '',
|
2024-07-31 10:42:04 +08:00
|
|
|
|
splitLine: {
|
|
|
|
|
|
show: false
|
|
|
|
|
|
},
|
|
|
|
|
|
axisTick: {
|
|
|
|
|
|
show: true
|
|
|
|
|
|
},
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
color: '#000'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
series: []
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
let list: any = []
|
|
|
|
|
|
list = []
|
|
|
|
|
|
chartsYxiasData.value.map((item: any) => {
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// console.log(item.gbList, 'guobialist340')
|
2024-07-31 15:23:48 +08:00
|
|
|
|
if (item.gbList.length != 0) {
|
|
|
|
|
|
list.push({ phase: item.phase, title: '国标限值', list: item.gbList })
|
|
|
|
|
|
}
|
2024-07-31 10:42:04 +08:00
|
|
|
|
if (item.phaseList.length != 0) {
|
|
|
|
|
|
list.push({ phase: item.phase, title: item.title, list: item.phaseList })
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2024-09-25 16:31:45 +08:00
|
|
|
|
const colorList = ['#0e8780', '#FFCC00', '#009900', '#CC0000']
|
2024-07-31 10:42:04 +08:00
|
|
|
|
list.map((item: any, index: any) => {
|
|
|
|
|
|
echartsData.value.options.legend.data.push(item.title)
|
|
|
|
|
|
echartsData.value.options.series.push({
|
|
|
|
|
|
name: item.title,
|
|
|
|
|
|
type: 'bar',
|
|
|
|
|
|
barMaxWidth: 16, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
// normal: {
|
|
|
|
|
|
barBorderRadius: [3, 3, 0, 0],
|
|
|
|
|
|
// color: '#00CC99'
|
|
|
|
|
|
// }e
|
|
|
|
|
|
color: colorList[index]
|
|
|
|
|
|
},
|
|
|
|
|
|
data: item.list
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// nextTick(() => {
|
|
|
|
|
|
if (barCharts.value) {
|
|
|
|
|
|
console.log(barCharts.value, '+++++++++++++++++++#@!')
|
|
|
|
|
|
barCharts.value[activeName.value]?.initChart()
|
|
|
|
|
|
}
|
|
|
|
|
|
// })
|
2024-07-31 15:23:48 +08:00
|
|
|
|
return
|
2024-07-22 10:35:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const handleClick = (tab: any, event: any) => {
|
2024-07-31 15:23:48 +08:00
|
|
|
|
params.value.groupId = tabsList.value[tab.index].id
|
2024-07-31 10:42:04 +08:00
|
|
|
|
findRealTrendDataByGroupId(params.value)
|
2024-07-22 10:35:01 +08:00
|
|
|
|
init()
|
|
|
|
|
|
}
|
2024-10-14 15:09:58 +08:00
|
|
|
|
//获取mqtt传送的实时数据
|
|
|
|
|
|
const mqttMessage: any = ref()
|
|
|
|
|
|
const tableData: any = ref({})
|
|
|
|
|
|
const setRealTrendData = (val: any) => {
|
|
|
|
|
|
console.log(val, '7777777777773555')
|
|
|
|
|
|
mqttMessage.value = val
|
|
|
|
|
|
for (let key in val) {
|
|
|
|
|
|
if (String(key).includes('data') && String(key) != 'dataLevel' && String(key) != 'dataTime') {
|
|
|
|
|
|
console.log(val[key], '0000000')
|
|
|
|
|
|
tableData.value[key] = val[key]
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
console.log(tableData.value, 'kkkkjjjjjsssslllmmmmmssdddd')
|
|
|
|
|
|
}
|
|
|
|
|
|
onMounted(() => {})
|
|
|
|
|
|
defineExpose({ open, setRealTrendData })
|
2024-07-22 10:35:01 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.realtrend {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-31 10:42:04 +08:00
|
|
|
|
.realtrend_top {
|
2024-07-22 10:35:01 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: auto;
|
2024-07-31 10:42:04 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// .thead {
|
|
|
|
|
|
// height: 100%;
|
|
|
|
|
|
// // overflow-y: hidden;
|
|
|
|
|
|
// border: 1px solid #eee;
|
|
|
|
|
|
// border-right: 0;
|
|
|
|
|
|
// ul {
|
|
|
|
|
|
// width: auto;
|
|
|
|
|
|
// height: 40px;
|
|
|
|
|
|
// display: flex;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// li {
|
|
|
|
|
|
// flex: none;
|
|
|
|
|
|
// width: 100px;
|
|
|
|
|
|
// line-height: 40px;
|
|
|
|
|
|
// border: 1px solid #eee;
|
|
|
|
|
|
// text-align: center;
|
|
|
|
|
|
// list-style: none;
|
|
|
|
|
|
// }
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// li:nth-child(1) {
|
|
|
|
|
|
// flex: none;
|
|
|
|
|
|
// width: 200px;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-10-14 15:09:58 +08:00
|
|
|
|
// ul:nth-child(1) {
|
|
|
|
|
|
// li {
|
|
|
|
|
|
// font-weight: 800;
|
|
|
|
|
|
// background: #f4f6f9;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ul:nth-child(4) {
|
|
|
|
|
|
// height: 48px;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-31 10:42:04 +08:00
|
|
|
|
.table {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
// min-height: 80px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
min-height: 90px;
|
|
|
|
|
|
max-height: 170px;
|
|
|
|
|
|
border: 1px solid #eee;
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
|
position: relative;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-31 10:42:04 +08:00
|
|
|
|
ul {
|
|
|
|
|
|
width: auto;
|
2024-07-22 10:35:01 +08:00
|
|
|
|
height: 40px;
|
|
|
|
|
|
display: flex;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-31 10:42:04 +08:00
|
|
|
|
li {
|
|
|
|
|
|
flex: none;
|
|
|
|
|
|
width: 100px;
|
2024-07-22 10:35:01 +08:00
|
|
|
|
line-height: 40px;
|
2024-07-31 10:42:04 +08:00
|
|
|
|
border: 1px solid #eee;
|
2024-07-22 10:35:01 +08:00
|
|
|
|
text-align: center;
|
2024-07-31 10:42:04 +08:00
|
|
|
|
list-style: none;
|
2024-07-22 10:35:01 +08:00
|
|
|
|
}
|
2024-07-31 10:42:04 +08:00
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-31 10:42:04 +08:00
|
|
|
|
ul:nth-child(1) {
|
|
|
|
|
|
li {
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
background: #f4f6f9;
|
2024-07-22 10:35:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
|
|
|
|
|
// .table::-webkit-scrollbar {
|
|
|
|
|
|
// display: none;
|
|
|
|
|
|
// }
|
2024-10-14 15:09:58 +08:00
|
|
|
|
|
|
|
|
|
|
.realtrend_table {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
border: 2px solid green;
|
|
|
|
|
|
.thead_left {
|
|
|
|
|
|
width: 120px;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.thead_right {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
border: 2px solid yellowgreen;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
.right_cell {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
p {
|
|
|
|
|
|
flex: none;
|
|
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-07-22 10:35:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
.reverse-table .vxe-body--row .vxe-body--column:first-child {
|
|
|
|
|
|
background-color: #f8f8f9;
|
|
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
::v-deep .vxe-table--render-wrapper {
|
|
|
|
|
|
height: 90px !important;
|
|
|
|
|
|
max-height: 90px !important;
|
|
|
|
|
|
overflow-x: auto !important;
|
|
|
|
|
|
min-height: 0 !important;
|
|
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
::v-deep .body--wrapper {
|
|
|
|
|
|
height: 90px !important;
|
|
|
|
|
|
max-height: 90px !important;
|
|
|
|
|
|
min-height: 0 !important;
|
|
|
|
|
|
}
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
.tab_info {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: calc(100vh - 450px);
|
2024-09-27 16:22:34 +08:00
|
|
|
|
|
2024-07-22 10:35:01 +08:00
|
|
|
|
// overflow: auto;
|
|
|
|
|
|
// padding-bottom: 20px;
|
|
|
|
|
|
.charts {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-top: 10px;
|
2024-09-27 16:22:34 +08:00
|
|
|
|
height: calc(100vh - 600px);
|
2024-07-22 10:35:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|