没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论


格式:pbiviz 资源大小:105.6KB






格式:rar 资源大小:14.0MB





















<template>
<div class="sensor-form-card">
<div style="height: 350px" v-loading="loading">
<canvas id="planet-chart-data5"></canvas>
</div>
<div class="center">
<el-button type="primary" icon="el-icon-arrow-left"
@click="$router.push({ path: '/Oil' })" style="position:
absolute; margin-top: 20px; right:
10px"><span>back</span></el-button>
<el-button type="success" i class="el-icon-arrow-right
el-icon--right" @click="$router.push({ path: '/Form5' })"
style="position: absolute; margin-top: 100px; right: 10px"
><span>下一頁</span></el-button
>
</div>
<div class="status-indicator">
<div class="status-box normal"></div>
<span class="status-text">正常</span>
</div>
<div class="status-indicator">
<div class="status-box high-temperature"></div>
<span class="status-text">溫度大於自訂上限門檻</span>
</div>
<div class="status-indicator">
<div class="status-box critical-temperature"></div>
<span class="status-text">溫度>70°C</span>
</div>
<div class="status-indicator">
<div class="status-box low-temperature"></div>
<span class="status-text">溫度小於自訂上限門檻</span>
</div>
</div>

</template>
<script>
import Chart from 'chart.js'
export default {
// name: 'sensor-temp',
data() {
return {
four: 0,
alertData: [
{
date: '2023-12-01',
tempAlert_1: [],
tempAlert_2: [
['2023-12-01T10:32:23.000Z', '2023-12-
01T11:24:41.000Z'],
['2023-12-01T22:20:51.000Z', '2023-12-
01T22:58:51.000Z'],
],
tempAlert_3: [],
},
{
date: '2023-12-02',
tempAlert_1: [],
tempAlert_2: [],
tempAlert_3: [],
vibrAlert: [],
},
{
date: '2023-12-03',
tempAlert_1: [
['2023-12-03T08:11:27.000Z', '2023-12-
03T08:34:24.000Z'],
['2023-12-03T10:03:17.000Z', '2023-12-
03T10:33:47.000Z'],
],

tempAlert_2: [['2023-12-03T17:41:23.000Z', '2022-12-
03T18:13:17.000Z']],
tempAlert_3: [['2023-12-03T19:31:03.000Z', '2022-12-
03T20:21:11.000Z']],
},
],
dataChart: null,
dataChartData: {
type: 'horizontalBar', // Change to 'bar' for vertical
bars
data: {
labels: [], // Labels for each date (x-axis)
datasets: [
/*
{
label: 'tempAlert_0',
data: [
10 * 60 * 60 * 1000, //01
24 * 60 * 60 * 1000, //02
8 * 60 * 60 * 1000 //03
],
backgroundColor: 'green',
borderColor: 'green',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_2',
data: [11 * 60 * 60 * 1000 - 10 *
60 * 60 * 1000], // Add your data here
backgroundColor: 'yellow',
borderColor: 'yellow',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{

label: 'tempAlert_0',
data: [11 * 60 * 60 * 1000], //01
02 03
backgroundColor: 'green',
borderColor: 'green',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_2',
data: [1 * 60 * 60 * 1000], //01
backgroundColor: 'yellow',
borderColor: 'yellow',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_0',
data: [24 * 60 * 60 * 1000 - 23 *
60 * 60 * 1000], //01 02 03
backgroundColor: 'green',
borderColor: 'green',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_1',
data: [, , 9 * 60 * 60 * 1000 - 8
* 60 * 60 * 1000], //01
backgroundColor: 'red',
borderColor: 'red',
borderWidth: 1,
legend: false,
stack: 'stack1'
},

{
label: 'tempAlert_0',
data: [, , 1 * 60 * 60 * 1000],
//01 02 03
backgroundColor: 'green',
borderColor: 'green',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_1',
data: [
,
,
11 * 60 * 60 * 1000 - 10 * 60
* 60 * 1000
], //01
backgroundColor: 'red',
borderColor: 'red',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
{
label: 'tempAlert_0',
data: [
,
,
17 * 60 * 60 * 1000 - 11 * 60
* 60 * 1000
], //01 02 03
backgroundColor: 'green',
borderColor: 'green',
borderWidth: 1,
legend: false,
stack: 'stack1'
},
剩余32页未读,继续阅读
资源评论


brian_1111
- 粉丝: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 新时代高职生网络生活状况研究.docx
- 基于改进粒子群优化算法的 BP 神经网络房价预测研究
- 人工智能写作会不会抢了电竞媒体的饭碗?.docx
- 单片机与PC机的温控制系统硬件设计.doc
- 基于51单片机ds1302和ds18b20芯片方案设计书的电子日历.doc
- ASPnet管理开题.doc
- 电子商务专业个人简历-范例.doc
- 2015最新Excel甘特图模板项目管理必备.xls
- 单片机测控系统中的抗干扰技术.doc
- (源码)基于C++的Alexa Voice Service原型.zip
- 基于单片机的水箱温自动控制系统设计张强.doc
- Go编程语言全面指南
- 大数据-资本市场下一波的宠儿.docx
- 谈供电局配网自动化的研究与实现.docx
- 基于词典与机器学习的中文微博情感分析.docx
- 基因工程制药下游技术生物学自然科学专业资料.ppt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
