master #3
@@ -260,63 +260,6 @@ function handleSelectFloor() {
|
|||||||
<FloorTree class="w-[260px]"></FloorTree>
|
<FloorTree class="w-[260px]"></FloorTree>
|
||||||
<div class="flex-1 overflow-hidden">
|
<div class="flex-1 overflow-hidden">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="comparison-section-container">
|
|
||||||
<div class="section-header">
|
|
||||||
<div class="header-title">环比</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-grid">
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.todayEnergy }}</div>
|
|
||||||
<div class="item-title">今日用能(kW.h)</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.yesterdaySamePeriodEnergy }}</div>
|
|
||||||
<div class="item-title">昨日同期(kW.h)</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-top">
|
|
||||||
<div class="item-percent">{{ chainData.dayTrendPercentage }}</div>
|
|
||||||
<div>{{ chainData.dayTrendValue }}<span class="item-unit">kW.h</span></div>
|
|
||||||
</div>
|
|
||||||
<div class="item-title">趋势</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.currentMonthEnergy }}</div>
|
|
||||||
<div class="item-title">当月用能(kW.h)</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.lastMonthSamePeriodEnergy }}</div>
|
|
||||||
<div class="item-title">上月同期(kW.h)</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-top">
|
|
||||||
<div class="item-percent">{{ chainData.monthTrendPercentage }}</div>
|
|
||||||
<div>{{ chainData.monthTrendValue }}
|
|
||||||
<span class="item-title">kW.h</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-title">趋势</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.currentYearEnergy }}</div>
|
|
||||||
<div class="item-title">当年用能(kW.h)</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-value">{{ chainData.lastYearSamePeriodEnergy }}</div>
|
|
||||||
<div class="item-title">去年同期(kW.h)</div>
|
|
||||||
</div>
|
|
||||||
<div class="comparison-item">
|
|
||||||
<div class="item-top">
|
|
||||||
<div class="item-percent">{{ chainData.yearTrendPercentage }}</div>
|
|
||||||
<div>{{ chainData.yearTrendValue }}
|
|
||||||
<span class="item-title">kW.h</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-title">趋势</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="energy-trend-container">
|
<div class="energy-trend-container">
|
||||||
<div class="energy-trend-top">
|
<div class="energy-trend-top">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
@@ -338,7 +281,6 @@ function handleSelectFloor() {
|
|||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="header-title">日用电功率曲线</div>
|
<div class="header-title">日用电功率曲线</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="chart-placeholder" ref="powerCurveChart">-->
|
|
||||||
<div class="power-chart" ref="powerCurveChart">
|
<div class="power-chart" ref="powerCurveChart">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref, nextTick } from 'vue';
|
||||||
import type { Dayjs } from 'dayjs';
|
import type { Dayjs } from 'dayjs';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { Page } from '@vben/common-ui';
|
import { Page } from '@vben/common-ui';
|
||||||
@@ -21,18 +21,19 @@ const disabledYear = (current: Dayjs) => {
|
|||||||
return current && current > dayjs().endOf('year');
|
return current && current > dayjs().endOf('year');
|
||||||
};
|
};
|
||||||
|
|
||||||
const chartInstances = ref({
|
const chartInstances = {
|
||||||
day: null as echarts.ECharts | null,
|
day: null as echarts.ECharts | null,
|
||||||
month: null as echarts.ECharts | null,
|
month: null as echarts.ECharts | null,
|
||||||
year: null as echarts.ECharts | null,
|
year: null as echarts.ECharts | null,
|
||||||
});
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//day
|
//day
|
||||||
const chartDay = document.getElementById('day');
|
const chartDay = document.getElementById('day');
|
||||||
chartInstances.value.day = echarts.init(chartDay);
|
chartInstances.day = echarts.init(chartDay);
|
||||||
const optionDay = {
|
const optionDay = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
show: true,
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
@@ -50,7 +51,32 @@ onMounted(() => {
|
|||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
name: '时',
|
name: '时',
|
||||||
data: [],
|
data: [
|
||||||
|
'0:00',
|
||||||
|
'1:00',
|
||||||
|
'2:00',
|
||||||
|
'3:00',
|
||||||
|
'4:00',
|
||||||
|
'5:00',
|
||||||
|
'6:00',
|
||||||
|
'7:00',
|
||||||
|
'8:00',
|
||||||
|
'9:00',
|
||||||
|
'10:00',
|
||||||
|
'11:00',
|
||||||
|
'12:00',
|
||||||
|
'13:00',
|
||||||
|
'14:00',
|
||||||
|
'15:00',
|
||||||
|
'16:00',
|
||||||
|
'17:00',
|
||||||
|
'18:00',
|
||||||
|
'19:00',
|
||||||
|
'20:00',
|
||||||
|
'21:00',
|
||||||
|
'22:00',
|
||||||
|
'23:00',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
yAxis: [
|
yAxis: [
|
||||||
@@ -59,33 +85,12 @@ onMounted(() => {
|
|||||||
name: 'KW.h',
|
name: 'KW.h',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: '当日',
|
|
||||||
type: 'bar',
|
|
||||||
data: [],
|
|
||||||
markPoint: {
|
|
||||||
data: [
|
|
||||||
{ type: 'max', name: 'Max' },
|
|
||||||
{ type: 'min', name: 'Min' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dataZoom: [
|
|
||||||
{
|
|
||||||
type: 'inside',
|
|
||||||
xAxisIndex: 0,
|
|
||||||
zoomOnMouseWheel: true,
|
|
||||||
filterMode: 'filter',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
optionDay && chartInstances.value.day.setOption(optionDay);
|
optionDay && chartInstances.day.setOption(optionDay);
|
||||||
|
|
||||||
//month
|
//month
|
||||||
const chartMonth = document.getElementById('month');
|
const chartMonth = document.getElementById('month');
|
||||||
chartInstances.value.month = echarts.init(chartMonth);
|
chartInstances.month = echarts.init(chartMonth);
|
||||||
const optionMonth = {
|
const optionMonth = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
@@ -105,7 +110,10 @@ onMounted(() => {
|
|||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
name: '日',
|
name: '日',
|
||||||
data: [],
|
data: [
|
||||||
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
||||||
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
yAxis: [
|
yAxis: [
|
||||||
@@ -114,19 +122,6 @@ onMounted(() => {
|
|||||||
name: 'KW.h',
|
name: 'KW.h',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: '当月',
|
|
||||||
type: 'bar',
|
|
||||||
data: [],
|
|
||||||
markPoint: {
|
|
||||||
data: [
|
|
||||||
{ type: 'max', name: 'Max' },
|
|
||||||
{ type: 'min', name: 'Min' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dataZoom: [
|
dataZoom: [
|
||||||
{
|
{
|
||||||
type: 'inside',
|
type: 'inside',
|
||||||
@@ -136,11 +131,11 @@ onMounted(() => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
optionMonth && chartInstances.value.month.setOption(optionMonth);
|
optionMonth && chartInstances.month.setOption(optionMonth);
|
||||||
|
|
||||||
//year
|
//year
|
||||||
const chartYear = document.getElementById('year');
|
const chartYear = document.getElementById('year');
|
||||||
chartInstances.value.year = echarts.init(chartYear);
|
chartInstances.year = echarts.init(chartYear);
|
||||||
const optionYear = {
|
const optionYear = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
@@ -160,7 +155,7 @@ onMounted(() => {
|
|||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
name: '月',
|
name: '月',
|
||||||
data: [],
|
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
yAxis: [
|
yAxis: [
|
||||||
@@ -169,19 +164,6 @@ onMounted(() => {
|
|||||||
name: 'KW.h',
|
name: 'KW.h',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: '当年',
|
|
||||||
type: 'bar',
|
|
||||||
data: [],
|
|
||||||
markPoint: {
|
|
||||||
data: [
|
|
||||||
{ type: 'max', name: 'Max' },
|
|
||||||
{ type: 'min', name: 'Min' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dataZoom: [
|
dataZoom: [
|
||||||
{
|
{
|
||||||
type: 'inside',
|
type: 'inside',
|
||||||
@@ -191,11 +173,11 @@ onMounted(() => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
optionYear && chartInstances.value.year.setOption(optionYear);
|
optionYear && chartInstances.year.setOption(optionYear);
|
||||||
|
|
||||||
// 鼠标悬停时激活缩放
|
// 鼠标悬停时激活缩放
|
||||||
chartInstances.value.day.on('mouseover', { seriesIndex: 0 }, () => {
|
chartInstances.day.on('mouseover', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.day.dispatchAction({
|
chartInstances.day.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: true,
|
dataZoomSelectActive: true,
|
||||||
@@ -203,8 +185,8 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 鼠标离开时取消缩放
|
// 鼠标离开时取消缩放
|
||||||
chartInstances.value.day.on('mouseout', { seriesIndex: 0 }, () => {
|
chartInstances.day.on('mouseout', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.day.dispatchAction({
|
chartInstances.day.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: false,
|
dataZoomSelectActive: false,
|
||||||
@@ -212,8 +194,8 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 鼠标悬停时激活缩放
|
// 鼠标悬停时激活缩放
|
||||||
chartInstances.value.year.on('mouseover', { seriesIndex: 0 }, () => {
|
chartInstances.year.on('mouseover', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.year.dispatchAction({
|
chartInstances.year.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: true,
|
dataZoomSelectActive: true,
|
||||||
@@ -221,8 +203,8 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 鼠标离开时取消缩放
|
// 鼠标离开时取消缩放
|
||||||
chartInstances.value.year.on('mouseout', { seriesIndex: 0 }, () => {
|
chartInstances.year.on('mouseout', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.year.dispatchAction({
|
chartInstances.year.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: false,
|
dataZoomSelectActive: false,
|
||||||
@@ -230,8 +212,8 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 鼠标悬停时激活缩放
|
// 鼠标悬停时激活缩放
|
||||||
chartInstances.value.month.on('mouseover', { seriesIndex: 0 }, () => {
|
chartInstances.month.on('mouseover', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.month.dispatchAction({
|
chartInstances.month.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: true,
|
dataZoomSelectActive: true,
|
||||||
@@ -239,8 +221,8 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 鼠标离开时取消缩放
|
// 鼠标离开时取消缩放
|
||||||
chartInstances.value.month.on('mouseout', { seriesIndex: 0 }, () => {
|
chartInstances.month.on('mouseout', { seriesIndex: 0 }, () => {
|
||||||
chartInstances.value.month.dispatchAction({
|
chartInstances.month.dispatchAction({
|
||||||
type: 'takeGlobalCursor',
|
type: 'takeGlobalCursor',
|
||||||
key: 'dataZoomSelect',
|
key: 'dataZoomSelect',
|
||||||
dataZoomSelectActive: false,
|
dataZoomSelectActive: false,
|
||||||
@@ -270,48 +252,93 @@ async function handleSelectFloor(selectedKeys, info) {
|
|||||||
const trend = await meterRecordTrend(data);
|
const trend = await meterRecordTrend(data);
|
||||||
|
|
||||||
// 更新日数据图表
|
// 更新日数据图表
|
||||||
if (chartInstances.value.day && trend.hour) {
|
if (chartInstances.day && trend.hour) {
|
||||||
hourTotal.value = trend.hour.total;
|
hourTotal.value = trend.hour.today.total;
|
||||||
chartInstances.value.day.setOption({
|
chartInstances.day.setOption({
|
||||||
xAxis: {
|
|
||||||
data: trend.hour.categories || [],
|
|
||||||
},
|
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '当月',
|
name: '昨日',
|
||||||
data: trend.hour.data || [],
|
type: 'bar',
|
||||||
|
data: trend.hour.yesterday.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '当日',
|
||||||
|
type: 'bar',
|
||||||
|
data: trend.hour.today.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新月数据图表
|
// 更新月数据图表
|
||||||
if (chartInstances.value.month && trend.day) {
|
if (chartInstances.month && trend.day) {
|
||||||
dayTotal.value = trend.day.total;
|
dayTotal.value = trend.day.nowMonth.total;
|
||||||
chartInstances.value.month.setOption({
|
chartInstances.month.setOption({
|
||||||
xAxis: {
|
|
||||||
data: trend.day.categories || [],
|
|
||||||
},
|
|
||||||
series: [
|
series: [
|
||||||
|
{
|
||||||
|
name: '上月',
|
||||||
|
type: 'bar',
|
||||||
|
data: trend.day.lastMonth.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '当月',
|
name: '当月',
|
||||||
data: trend.day.data || [],
|
type: 'bar',
|
||||||
|
data: trend.day.nowMonth.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新年数据图表
|
// 更新年数据图表
|
||||||
if (chartInstances.value.year && trend.month) {
|
if (chartInstances.year && trend.month) {
|
||||||
monthTotal.value = trend.month.total;
|
monthTotal.value = trend.month.nowYear.total;
|
||||||
chartInstances.value.year.setOption({
|
chartInstances.year.setOption({
|
||||||
xAxis: {
|
|
||||||
data: trend.month.categories || [],
|
|
||||||
},
|
|
||||||
series: [
|
series: [
|
||||||
|
{
|
||||||
|
name: '去年',
|
||||||
|
type: 'bar',
|
||||||
|
data: trend.month.lastYear.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '当年',
|
name: '当年',
|
||||||
data: trend.month.data || [],
|
type: 'bar',
|
||||||
|
data: trend.month.nowYear.data || [],
|
||||||
|
markPoint: {
|
||||||
|
data: [
|
||||||
|
{ type: 'max', name: 'Max' },
|
||||||
|
{ type: 'min', name: 'Min' },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
@@ -359,7 +386,7 @@ async function handleSelectFloor(selectedKeys, info) {
|
|||||||
:disabled-date="disabledMonth"
|
:disabled-date="disabledMonth"
|
||||||
picker="month"
|
picker="month"
|
||||||
/>
|
/>
|
||||||
<span>当日能耗总值:{{ dayTotal }}KW.h</span>
|
<span>当月能耗总值:{{ dayTotal }}KW.h</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="month" style="height: 100%; width: 100%"></div>
|
<div id="month" style="height: 100%; width: 100%"></div>
|
||||||
@@ -380,7 +407,7 @@ async function handleSelectFloor(selectedKeys, info) {
|
|||||||
:disabled-date="disabledYear"
|
:disabled-date="disabledYear"
|
||||||
picker="year"
|
picker="year"
|
||||||
/>
|
/>
|
||||||
<span>当日能耗总值:{{ monthTotal }}KW.h</span>
|
<span>当年能耗总值:{{ monthTotal }}KW.h</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="year" style="height: 100%; width: 100%"></div>
|
<div id="year" style="height: 100%; width: 100%"></div>
|
||||||
|
@@ -1,13 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { Empty } from "ant-design-vue";
|
import { Empty } from 'ant-design-vue';
|
||||||
import { useVbenModal } from '@vben/common-ui';
|
import { useVbenModal } from '@vben/common-ui';
|
||||||
|
|
||||||
|
|
||||||
const emit = defineEmits<{ reload: [] }>();
|
const emit = defineEmits<{ reload: [] }>();
|
||||||
|
|
||||||
const picture1 = ref('')
|
const picture1 = ref('');
|
||||||
const picture2 = ref('')
|
const picture2 = ref('');
|
||||||
// const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff(
|
// const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff(
|
||||||
// {
|
// {
|
||||||
// initializedGetter: defaultFormValueGetter(formApi),
|
// initializedGetter: defaultFormValueGetter(formApi),
|
||||||
@@ -26,9 +25,9 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
modalApi.modalLoading(true);
|
modalApi.modalLoading(true);
|
||||||
const {data} = modalApi.getData() as { data:any };
|
const { data } = modalApi.getData() as { data: any };
|
||||||
picture1.value = data.voucherUrl;
|
picture1.value = data.voucherUrl;
|
||||||
picture2.value = data.pictureUrl
|
picture2.value = data.pictureUrl;
|
||||||
modalApi.modalLoading(false);
|
modalApi.modalLoading(false);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -44,31 +43,44 @@ async function handleConfirm() {
|
|||||||
modalApi.lock(false);
|
modalApi.lock(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function handleClosed() {
|
async function handleClosed() {}
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<BasicModal title="抓拍图片">
|
<BasicModal title="抓拍图片">
|
||||||
<div class="detail-wrapper">
|
<div class="detail-wrapper">
|
||||||
<div class="detail-grid">
|
<div class="detail-grid">
|
||||||
<div class="detail-card">
|
<div class="detail-card">
|
||||||
<img class="detail-thumb" :src="picture1"></img>
|
<img v-if="picture1" class="detail-thumb" :src="picture1" />
|
||||||
<div class="detail-caption">人脸凭证照片</div>
|
<Empty
|
||||||
|
v-else
|
||||||
|
class="detail-thumb"
|
||||||
|
:image="Empty.PRESENTED_IMAGE_SIMPLE"
|
||||||
|
description="暂无数据"
|
||||||
|
/>
|
||||||
|
<div class="detail-caption">人脸凭证照片</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-card">
|
||||||
|
<Empty
|
||||||
|
class="detail-thumb"
|
||||||
|
:image="Empty.PRESENTED_IMAGE_SIMPLE"
|
||||||
|
description="暂无数据"
|
||||||
|
/>
|
||||||
|
<div class="detail-caption">监控设备抓拍</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-card">
|
||||||
|
<img v-if="picture2" class="detail-thumb" :src="picture2" />
|
||||||
|
<Empty
|
||||||
|
v-else
|
||||||
|
class="detail-thumb"
|
||||||
|
:image="Empty.PRESENTED_IMAGE_SIMPLE"
|
||||||
|
description="暂无数据"
|
||||||
|
/>
|
||||||
|
<div class="detail-caption">人脸门禁抓拍</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-card">
|
</BasicModal>
|
||||||
<Empty class="detail-thumb" :image="Empty.PRESENTED_IMAGE_SIMPLE"
|
|
||||||
description="暂无数据" />
|
|
||||||
<div class="detail-caption">监控设备抓拍</div>
|
|
||||||
</div>
|
|
||||||
<div class="detail-card">
|
|
||||||
<img class="detail-thumb" :src="picture2"></img>
|
|
||||||
<div class="detail-caption">人脸门禁抓拍</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</BasicModal>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@@ -147,7 +147,7 @@ function streamProxy(nodeData: any, cb: Function) {
|
|||||||
if (nodeData.nvrIp) {
|
if (nodeData.nvrIp) {
|
||||||
params = {
|
params = {
|
||||||
videoIp: nodeData.nvrIp,
|
videoIp: nodeData.nvrIp,
|
||||||
videoPort: nodeData.nvrPort,
|
videoPort: 554,
|
||||||
factoryNo: nodeData.nvrFactoryNo,
|
factoryNo: nodeData.nvrFactoryNo,
|
||||||
account: nodeData.nvrAccount,
|
account: nodeData.nvrAccount,
|
||||||
pwd: nodeData.nvrPwd,
|
pwd: nodeData.nvrPwd,
|
||||||
@@ -156,7 +156,7 @@ function streamProxy(nodeData: any, cb: Function) {
|
|||||||
} else {
|
} else {
|
||||||
params = {
|
params = {
|
||||||
videoIp: nodeData.deviceIp,
|
videoIp: nodeData.deviceIp,
|
||||||
videoPort: nodeData.devicePort,
|
videoPort: 554,
|
||||||
factoryNo: nodeData.factoryNo,
|
factoryNo: nodeData.factoryNo,
|
||||||
account: nodeData.deviceAccount,
|
account: nodeData.deviceAccount,
|
||||||
pwd: nodeData.devicePwd,
|
pwd: nodeData.devicePwd,
|
||||||
|
@@ -274,7 +274,7 @@ function streamProxy(nodeData: any, cb: Function) {
|
|||||||
if (nodeData.nvrIp) {
|
if (nodeData.nvrIp) {
|
||||||
params = {
|
params = {
|
||||||
videoIp: nodeData.nvrIp,
|
videoIp: nodeData.nvrIp,
|
||||||
videoPort: nodeData.nvrPort,
|
videoPort: 554,
|
||||||
factoryNo: nodeData.nvrFactoryNo,
|
factoryNo: nodeData.nvrFactoryNo,
|
||||||
account: nodeData.nvrAccount,
|
account: nodeData.nvrAccount,
|
||||||
pwd: nodeData.nvrPwd,
|
pwd: nodeData.nvrPwd,
|
||||||
@@ -283,7 +283,7 @@ function streamProxy(nodeData: any, cb: Function) {
|
|||||||
} else {
|
} else {
|
||||||
params = {
|
params = {
|
||||||
videoIp: nodeData.deviceIp,
|
videoIp: nodeData.deviceIp,
|
||||||
videoPort: nodeData.devicePort,
|
videoPort: 554,
|
||||||
factoryNo: nodeData.factoryNo,
|
factoryNo: nodeData.factoryNo,
|
||||||
account: nodeData.deviceAccount,
|
account: nodeData.deviceAccount,
|
||||||
pwd: nodeData.devicePwd,
|
pwd: nodeData.devicePwd,
|
||||||
|
Reference in New Issue
Block a user