Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qsh-wc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
honghuiliu
qsh-wc
Commits
21e9cea5
Commit
21e9cea5
authored
Nov 10, 2022
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2c127487
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
77 deletions
+96
-77
index.js
pc/src/api/methods/index.js
+4
-0
site-detail.vue
pc/src/views/site-detail.vue
+87
-77
qshToilet.vue
web/src/view/qshToilet/qshToilet.vue
+5
-0
No files found.
pc/src/api/methods/index.js
View file @
21e9cea5
...
...
@@ -36,4 +36,8 @@ export default {
typeData
(
params
)
{
return
http
.
post
(
'web/type/typeData'
,
params
)
},
//获取各值实时数据
getDeviceData
(
params
)
{
return
http
.
post
(
'web/data/getDeviceData'
,
params
)
}
}
pc/src/views/site-detail.vue
View file @
21e9cea5
...
...
@@ -162,7 +162,7 @@
<div
class=
"table-body"
>
<div
class=
"row"
v-for=
"(item,index) in typeList.slice(0,4)"
:key=
"index"
>
<div
class=
"cell"
>
<span
class=
"value"
>
{{
item
.
n
ame
}}
</span>
<span
class=
"value"
>
{{
item
.
typeN
ame
}}
</span>
</div>
<div
class=
"cell"
>
{{
item
.
value
}}
{{
item
.
unit
}}
</div>
</div>
...
...
@@ -178,7 +178,7 @@
<div
class=
"table-body"
>
<div
class=
"row"
v-for=
"(item,index) in typeList.slice(4)"
:key=
"index"
>
<div
class=
"cell flex_2"
>
<span
class=
"value"
>
{{
item
.
n
ame
}}
</span>
<span
class=
"value"
>
{{
item
.
typeN
ame
}}
</span>
</div>
<div
class=
"cell flex_3"
>
{{
item
.
value
}}
{{
item
.
unit
}}
</div>
</div>
...
...
@@ -334,80 +334,81 @@
time_order
:[
''
,
''
]
},
type
:[],
typeList
:[
{
name
:
'液位'
,
prop
:
'液位'
,
value
:
0
,
unit
:
'm'
,
color
:
'#09a8ae'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'调解池流量'
,
prop
:
'调解池流量'
,
value
:
0
,
unit
:
'm3/h'
,
color
:
'#ff6b6b'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'出水池流量'
,
prop
:
'出水池流量'
,
value
:
0
,
unit
:
'm3/h'
,
color
:
'#946fd0'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'厌氧池PH值'
,
prop
:
'厌氧池PH值'
,
value
:
0
,
unit
:
''
,
color
:
'#3396fb'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'好氧池PH值'
,
prop
:
'好氧池PH值'
,
value
:
0
,
unit
:
''
,
color
:
'#28ae09'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'出水池PH值'
,
prop
:
'出水池PH值'
,
value
:
0
,
unit
:
''
,
color
:
'#ffc019'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'好氧池DO值'
,
prop
:
'好氧池DO值'
,
value
:
0
,
unit
:
'mg/l'
,
color
:
'#f8893f'
,
CreatedAt
:
''
,
show
:
false
},
{
name
:
'MBR池DO值'
,
prop
:
'MBR池DO值'
,
value
:
0
,
unit
:
'mg/l'
,
color
:
'#eb509d'
,
CreatedAt
:
''
,
show
:
false
}
],
// typeList:[
// {
// name:'液位',
// prop:'液位',
// value:0,
// unit:'m',
// color:'#09a8ae',
// CreatedAt:'',
// show:false
// },
// {
// name:'调解池流量',
// prop:'调解池流量',
// value:0,
// unit:'m3/h',
// color:'#ff6b6b',
// CreatedAt:'',
// show:false
// },
// {
// name:'出水池流量',
// prop:'出水池流量',
// value:0,
// unit:'m3/h',
// color:'#946fd0',
// CreatedAt:'',
// show:false
// },
// {
// name:'厌氧池PH值',
// prop:'厌氧池PH值',
// value:0,
// unit:'',
// color:'#3396fb',
// CreatedAt:'',
// show:false
// },
// {
// name:'好氧池PH值',
// prop:'好氧池PH值',
// value:0,
// unit:'',
// color:'#28ae09',
// CreatedAt:'',
// show:false
// },
// {
// name:'出水池PH值',
// prop:'出水池PH值',
// value:0,
// unit:'',
// color:'#ffc019',
// CreatedAt:'',
// show:false
// },
// {
// name:'好氧池DO值',
// prop:'好氧池DO值',
// value:0,
// unit:'mg/l',
// color:'#f8893f',
// CreatedAt:'',
// show:false
// },
// {
// name:'MBR池DO值',
// prop:'MBR池DO值',
// value:0,
// unit:'mg/l',
// color:'#eb509d',
// CreatedAt:'',
// show:false
// }
// ],
typeList
:[],
typeList_order
:[
{
name
:
'全部类型'
,
...
...
@@ -480,7 +481,7 @@
getHistoryDataList
();
}
if
(
item
.
value
==
'process'
){
get
Yewei
();
get
DeviceData
();
}
if
(
item
.
value
==
'order'
){
getOrderList
();
...
...
@@ -506,6 +507,15 @@
}
});
}
function
getDeviceData
()
{
api
.
getDeviceData
({
toilet_id
:
props
.
site_id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
if
(
res
.
data
){
state
.
typeList
=
res
.
data
;
}
}
});
}
function
initGauge
(){
nextTick
(()
=>
{
setTimeout
(()
=>
{
...
...
web/src/view/qshToilet/qshToilet.vue
View file @
21e9cea5
...
...
@@ -122,6 +122,9 @@
<el-form-item
label=
"液位设备编号:"
>
<el-input
v-model=
"formData.yewei_device"
clearable
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"净化设备编号:"
>
<el-input
v-model=
"formData.jinghua_device_id"
clearable
placeholder=
"请输入"
/>
</el-form-item>
</el-form>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
...
...
@@ -169,6 +172,7 @@
name
:
''
,
showImage
:
''
,
type
:
''
,
jinghua_device_id
:
''
//净化设备编号
})
const
rules
=
ref
({
name
:
[
...
...
@@ -370,6 +374,7 @@
name
:
''
,
showImage
:
''
,
type
:
''
,
jinghua_device_id
:
''
//净化设备编号
}
}
// 弹窗确定
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment