Commit 93cc4124 authored by Cai Wei's avatar Cai Wei

feat(*): 布袋除尘连调

parent ef68a0a1
import request from "../index.js";
export function getMonitorRealtime(params) {
return request({
url: "/api/duster/monitor/chamber",
method: "get",
params,
});
}
export function getMonitorToday(params) {
return request({
url: "/api/duster/monitor/curve",
method: "get",
params,
});
}
export function getMonitorList(params) {
return request({
url: "/api/duster/monitor/list",
method: "get",
params,
});
}
...@@ -154,7 +154,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({ ...@@ -154,7 +154,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
yAxis: { yAxis: {
type: "value", type: "value",
min: 0, min: 0,
max: 600, // max: 600,
interval: 200, interval: 200,
axisLabel: { axisLabel: {
color: "rgba(0,0,0,0.6)", color: "rgba(0,0,0,0.6)",
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<span class="label">描述:</span> <span class="label">描述:</span>
<div class="value"> <div class="value">
<span class="value-item" v-for="(item, index) in spot.description" :key="index">{{ item }}</span> <span class="value-item" v-for="(item, index) in spot.description" :key="index">{{ item }}</span>
<span class="value-item" v-if="spot.description.length === 0">暂无</span>
</div> </div>
</div> </div>
......
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
class="healthy-progress-bar h-full transition-all duration-500 ease-out bg-gradient-to-r from-secondary to-green-400 diagonal-pattern diagonal-pattern-animation" class="healthy-progress-bar h-full transition-all duration-500 ease-out bg-gradient-to-r from-secondary to-green-400 diagonal-pattern diagonal-pattern-animation"
></div> ></div>
<div class="justify-between items-center mb-2 healthy-text-position"> <div class="justify-between items-center mb-2 healthy-text-position">
<span class="font-semibold">健康度</span> <span class="font-semibold">健康度:</span>
<span id="square-progress-value" class="text-lg font-bold"> 45%</span> <span id="square-progress-value" class="text-lg font-bold"> 45%</span>
</div> </div>
</div> </div>
......
<template> <template>
<div class="title layout1"> <div class="title layout1">
<span class="warn-title">告警:</span> <span class="warn-title">告警:</span>
<span class="jump-icon">>></span> <!-- <span class="jump-icon">>></span> -->
</div> </div>
<div class="content"> <div class="content">
<div class="item" v-for="item in listInfo" :key="item.id"> <div class="item" v-for="item in listInfo" :key="item.id">
...@@ -41,12 +41,15 @@ const props = defineProps({ ...@@ -41,12 +41,15 @@ const props = defineProps({
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 5px;
padding: 4px 0px 4px 2px; padding: 4px 0px 4px 2px;
box-shadow: rgba(53,58,62,0.08) 0px 1px 10px 0px,rgba(53,58,62,0.08) 0px 2px 4px 0px; box-shadow: rgba(53,58,62,0.04) 0px 1px 10px 0px,rgba(53,58,62,0.04) 0px 2px 4px 0px;
font-size: 14px;
color: #333;
img { img {
width: 20px; width: 20px;
height: auto; height: auto;
margin-right: 10px;
} }
} }
} }
......
...@@ -512,7 +512,7 @@ $borderColor: #bbbdc391; ...@@ -512,7 +512,7 @@ $borderColor: #bbbdc391;
.part1 { .part1 {
width: 100%; width: 100%;
height: 6vh; height: 5vh;
border-radius: 6px; border-radius: 6px;
border: 1px solid rgba(13, 15, 18, 0.1); border: 1px solid rgba(13, 15, 18, 0.1);
box-shadow: 0px 3px 6px 0px rgba(13, 15, 18, 0.1); box-shadow: 0px 3px 6px 0px rgba(13, 15, 18, 0.1);
...@@ -527,7 +527,7 @@ $borderColor: #bbbdc391; ...@@ -527,7 +527,7 @@ $borderColor: #bbbdc391;
.part2 { .part2 {
margin-top: 10px; margin-top: 10px;
width: 100%; width: 100%;
height: calc(57vh - 10px); height: calc(58vh - 10px);
border-radius: 6px; border-radius: 6px;
border: 1px solid rgba(13, 15, 18, 0.1); border: 1px solid rgba(13, 15, 18, 0.1);
box-shadow: 0px 3px 6px 0px rgba(13, 15, 18, 0.1); box-shadow: 0px 3px 6px 0px rgba(13, 15, 18, 0.1);
......
...@@ -345,7 +345,7 @@ const handleConfirm = () => { ...@@ -345,7 +345,7 @@ const handleConfirm = () => {
} }
.valve-cell { .valve-cell {
width: 41px; min-width: 41px;
background: white; background: white;
padding: 4px 8px; padding: 4px 8px;
border-radius: 4px; border-radius: 4px;
...@@ -368,7 +368,7 @@ const handleConfirm = () => { ...@@ -368,7 +368,7 @@ const handleConfirm = () => {
.cell-value { .cell-value {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: end; align-items: baseline;
font-size: 16px; font-size: 16px;
color: #606266; color: #606266;
span { span {
......
...@@ -102,14 +102,15 @@ ...@@ -102,14 +102,15 @@
<template #compartHealthList="{ row }"> <template #compartHealthList="{ row }">
<div class="status-matrix" v-if="row.compartHealthList.length > 0"> <div class="status-matrix" v-if="row.compartHealthList.length > 0">
<div <div
v-for="(row, rowIndex) in row.compartHealthList" v-for="(childRow, rowIndex) in row.compartHealthList"
:key="rowIndex" :key="rowIndex"
class="matrix-row" class="matrix-row"
> >
<div <div
v-for="(status, colIndex) in row" v-for="(status, colIndex) in childRow"
:key="colIndex" :key="colIndex"
class="status-dot" class="status-dot"
@click="handleStatusDotClick(row, colIndex)"
:class="{ :class="{
'status-normal': status.healthStatus === 1, 'status-normal': status.healthStatus === 1,
'status-warning': status.healthStatus === 2, 'status-warning': status.healthStatus === 2,
...@@ -175,6 +176,7 @@ import { ...@@ -175,6 +176,7 @@ import {
postAddCompartAllocation, postAddCompartAllocation,
postAddValveInfo, postAddValveInfo,
} from "@/request/api/dustOverview"; } from "@/request/api/dustOverview";
import { useRouter } from "vue-router";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import CommonTable from "@/components/commonTable/index.vue"; import CommonTable from "@/components/commonTable/index.vue";
import { ElMessageBox, ElMessage } from "element-plus"; import { ElMessageBox, ElMessage } from "element-plus";
...@@ -182,6 +184,8 @@ import RoomSettingDialog from "./components/roomSettingDialog.vue"; ...@@ -182,6 +184,8 @@ import RoomSettingDialog from "./components/roomSettingDialog.vue";
import ValveSettingDialog from "./components/valveSettingDialog.vue"; import ValveSettingDialog from "./components/valveSettingDialog.vue";
import AddDustCollectorDialog from "./components/addDustCollectorDialog.vue"; import AddDustCollectorDialog from "./components/addDustCollectorDialog.vue";
const router = useRouter();
const formInline = ref({ const formInline = ref({
deviceName: "", deviceName: "",
region: "all", region: "all",
...@@ -357,6 +361,16 @@ const handleValveNumClick = (row) => { ...@@ -357,6 +361,16 @@ const handleValveNumClick = (row) => {
} }
}; };
const handleStatusDotClick = (row, colIndex) => {
console.log("row", row);
router.push({
path: "/bag-monitor",
query: {
dusterNo: row.deviceNo,
}
});
};
// 确认电磁阀设置 // 确认电磁阀设置
const handleValveSettingConfirm = (updatedStatusData) => { const handleValveSettingConfirm = (updatedStatusData) => {
const list = updatedStatusData.map((item) => { const list = updatedStatusData.map((item) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment