代码拉取完成,页面将自动刷新
同步操作将从 XinZhou/国投生物PHM系统 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="./css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<!-- <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script> -->
<link rel="stylesheet" href="./css/style3.css">
<title>Hello, world!</title>
</head>
<body>
<div id="app">
<div class="head_dinary">
<div class="title"><span>报警日志</span></div>
<div class="table_position">
<table class="table table-hover table-striped">
<thead>
<tr>
<th scope="col">序号</th>
<th scope="col">异常地点</th>
<th scope="col">异常设备</th>
<th scope="col">异常点位</th>
<th scope="col">异常值</th>
<th scope="col">数值</th>
</tr>
</thead>
<tbody>
<tr v-for="l in dinary">
<th scope="row">{{l.idx}} </th>
<td>{{l.pst}} </td>
<td>{{l.eqt}}</td>
<td>{{l.pot}}</td>
<td>{{l.err}}</td>
<td>{{l.val}}</td>
</tr>
</tbody>
</table>
</div>
<button type="button" class="btn btn-primary" @click="checking">更新日志</button>
</div>
<div class="conditon_now">
<div class="card" style="width: 18rem;" v-for="item in machine">
<img src="./images/motor.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title"> <span class="name">{{item.name}}</span> </h5>
<!-- <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> -->
<ul class="list-group list-group-flush">
<li class="list-group-item"> <span class="key">均方根值: </span> <span :class='[item.RMS>5? "not_good":"value"]'>{{item.RMS}}</span> </li>
<li class="list-group-item"> <span class="key">峭度值:</span> <span :class='[item.kurtosis>5? "not_good":"value"]'>{{item.kurtosis}}</span> </li>
<li class="list-group-item"> <span class="key">状态评估:</span> <span :class='[item.condition=="中"? "not_good":"value"]'>{{item.condition}}</span> </li>
</ul>
<a href="#" class="btn btn-primary">详细信息</a>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="./js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
var app = new Vue({
el:"#app",
data:{
standard:{RMS:5,kurtosis:5},
machine:[{name:"锤片粉碎机",RMS:3.14,kurtosis:5.75,condition:"良"},
{name:"液化罐顶部搅拌器",RMS:1.48,kurtosis:2.33,condition:"优"},
{name:"机封水泵",RMS:7.48,kurtosis:6.33,condition:"中"},
{name:"粉浆泵",RMS:3.48,kurtosis:4.33,condition:"良"},
{name:"风机(45KW)",RMS:1.48,kurtosis:0.33,condition:"优"},
{name:"工艺空气压缩机",RMS:0.48,kurtosis:0.13,condition:"优"}],
dinary:[{idx:1,pst:"防爆(蒸馏)",eqt:"机封水泵",pot:"驱动端",err:"峭度值", val:6.33}]
},
methods:{
update_dinary:function(item,err,val){
// item,err,val
var L = this.dinary.length+1;
// console.log(L);
this.dinary.push({idx:L,pst:item.name,eqt:item.name,pot:"驱动端",err:err, val:val});
// this.dinary.push({idx:5,pst:"防爆(蒸馏)",eqt:"机封水泵",pot:"驱动端",err:"均方根值", val:5.27});
},
checking:function(){
this.machine.forEach(element => {
// console.log(element);
if(element.RMS>this.standard.RMS){
// console.log(element.RMS);
this.update_dinary(element,"均方根值",element.RMS);
}
if(element.kurtosis>this.standard.kurtosis){
this.update_dinary(element,"峭度值",element.kurtosis);
}
});
}
}
})
</script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js" integrity="sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.min.js" integrity="sha384-j0CNLUeiqtyaRmlzUHCPZ+Gy5fQu0dQ6eZ/xAww941Ai1SxSY+0EQqNXNE6DZiVc" crossorigin="anonymous"></script>
-->
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。