This commit is contained in:
copper 2021-06-01 16:39:53 +08:00
parent 2e8f41d5d0
commit 8c9c5d64b4
8 changed files with 570 additions and 103 deletions

650
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@
>
<img :src="logo" />
<p>
<span style="color:white;font-size: 26px;font-weight: bold;text-shadow: 0 0 10px black;">湖北富瑞尔科技有限公司水质监测平台</span>
<span style="color:white;font-size: 26px;font-weight: bold;text-shadow: 0 0 10px black;">餐饮具消毒监测平台</span>
</p>
<div style="color:white;font-size: 13px;font-weight: bold;text-shadow: 0 0 7px black;">
<p>

View File

@ -3,7 +3,7 @@
<a-layout-header style="height: 110px">
<a-row>
<a-col :span="11" style="color: white">
<span class="w-title">水质监测平台</span>
<span class="w-title">餐饮具集中消毒在线监测平台</span>
</a-col>
<div style="position:absolute;right:100px;">
<span style="margin-right: 24px">

View File

@ -25,6 +25,10 @@ export default {
title: "地点",
dataIndex: "location",
},
{
title: "等级",
dataIndex: "level",
},
{
title: "详情",
dataIndex: "detail",
@ -56,6 +60,7 @@ export default {
number: 2.5,
time: Moment().date(12).format('lll'),
logs:'未处理',
level: "一级"
},
{
location: '武昌区',
@ -63,6 +68,7 @@ export default {
number: 1.5,
time: Moment().date(11).format('lll'),
logs:'未处理',
level: "二级"
},
{
location: '武昌区',
@ -70,6 +76,7 @@ export default {
number: 1.2,
time: Moment().date(3).format('lll'),
logs:'未处理',
level: "三级"
},
],
};

View File

@ -16,7 +16,7 @@
<img :src="waterImg" width="25px" />
</div>
</a-col>
<a-col :span="16"> 水质检测仪 </a-col>
<a-col :span="16"> 餐饮具消毒检测厂家 </a-col>
</a-row>
</div>
<div class="tags-bottom">
@ -53,7 +53,7 @@
<a-button-group>
<a-button type="primary" size="large"> 全选 </a-button>
<a-button size="large"> pH </a-button>
<a-button size="large"> 浊度 </a-button>
<a-button size="large"> 电导率 </a-button>
<a-button size="large"> 余氯 </a-button>
<a-button size="large"> 温度 </a-button>
</a-button-group>

View File

@ -46,7 +46,7 @@
</a-radio-button>
</a-radio-group>
<span style="margin-left: 30px"
><a-button @click="getData"> 刷新数据</span
><a-button @click="getData"> 刷新数据</a-button></span
>
</a-layout-header>
<a-layout-content style="padding: 20px 0 20px 0">

View File

@ -14,6 +14,7 @@ export function processWater(water, label){
n['key'] = w._id.$oid
n['time_str'] = Moment(w.timestamp).format('lll')
n['time'] = Moment(w.timestamp).toDate()
n['conductivity'] = n['conductivity'] || 20
waters.push(n)
} )
return waters

View File

@ -2,7 +2,7 @@ const path = require('path')
const { env } = require('process')
module.exports = {
publicPath: '/',
publicPath: '/yf/',
devServer: {
host: '127.0.0.1',
@ -12,7 +12,8 @@ module.exports = {
'/backend': {
// target: 'http://223.75.53.208:8081',
// target: 'http://121.36.155.145:10025/',
target: 'http://127.0.0.1:7788/'
// target: 'http://127.0.0.1:7788/'
target: 'http://8.136.226.16:10025/'
}
}
},