Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
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
耿迪迪
gassafety-progress
Commits
5a70583d
Commit
5a70583d
authored
Mar 07, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_jzl'
parents
81713b8b
bb8f1325
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
75 deletions
+81
-75
Cz.vue
gassafetyprogress-web/src/components/bigWindow/Cz.vue
+31
-31
Device.vue
gassafetyprogress-web/src/components/bigWindow/Device.vue
+38
-33
User.vue
gassafetyprogress-web/src/components/bigWindow/User.vue
+3
-1
UserCenter.vue
...afetyprogress-web/src/components/bigWindow/UserCenter.vue
+4
-5
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+5
-5
No files found.
gassafetyprogress-web/src/components/bigWindow/Cz.vue
View file @
5a70583d
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-03-0
4 17:25:27
* @LastEditTime: 2022-03-0
7 18:09:02
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
...
...
@@ -52,7 +52,7 @@
<div
class=
"middle"
>
{{
profile
}}
</div>
<div
class=
"foot"
>
<div
class=
"thead flex"
>
<div
class=
"thead flex"
v-if=
"list.length>0"
>
<div
class=
"first"
>
设备类型
</div>
<div>
设备数量
</div>
<div>
在线设备
</div>
...
...
@@ -90,7 +90,7 @@
</
template
>
</div>
<div
class=
"btn"
>
<div
class=
"btn"
v-if=
"list.length>0"
>
<div
@
click=
"btnClick"
>
感知设备
</div>
</div>
</div>
...
...
@@ -113,33 +113,33 @@ export default {
3
:
"探测器"
,
},
list
:
[
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
1
,
},
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
2
,
},
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
3
,
},
//
{
//
numberPressureGauges: "-",
//
onlineEquipment: "-",
//
offlineEquipment: "-",
//
historicalAlarm: "-",
//
alarmProcessed: "-",
//
inAlarm: "-",
//
dataType: 1,
//
},
//
{
//
numberPressureGauges: "-",
//
onlineEquipment: "-",
//
offlineEquipment: "-",
//
historicalAlarm: "-",
//
alarmProcessed: "-",
//
inAlarm: "-",
//
dataType: 2,
//
},
//
{
//
numberPressureGauges: "-",
//
onlineEquipment: "-",
//
offlineEquipment: "-",
//
historicalAlarm: "-",
//
alarmProcessed: "-",
//
inAlarm: "-",
//
dataType: 3,
//
},
],
};
},
...
...
@@ -171,7 +171,7 @@ export default {
},
myHttp
()
{
getCzDevice
({
deviceId
:
this
.
deviceData
.
siteStationId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
.
filter
(
item
=>
item
.
numberPressureGauges
>
0
)
;
console
.
log
(
"resresres"
,
res
)
});
},
...
...
gassafetyprogress-web/src/components/bigWindow/Device.vue
View file @
5a70583d
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-03-0
4 17:27:2
1
* @LastEditTime: 2022-03-0
7 18:06:3
1
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
...
...
@@ -52,7 +52,7 @@
<div
class=
"middle"
>
{{
profile
}}
</div>
<div
class=
"foot"
>
<div
class=
"thead flex"
>
<div
class=
"thead flex"
v-if=
"list.length > 0"
>
<div
class=
"first"
>
设备类型
</div>
<div>
设备数量
</div>
<div>
在线设备
</div>
...
...
@@ -65,7 +65,7 @@
<div
class=
"tbody flex"
v-for=
"deviceData in list"
:key=
"deviceData.inAlarm
+
Math.random()"
:key=
"deviceData.inAlarm
+
Math.random()"
>
<div
v-unValue
class=
"first zzz"
>
{{
typeList
[
deviceData
.
dataType
]
}}
...
...
@@ -112,34 +112,33 @@ export default {
3
:
"探测器"
,
},
list
:
[
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
1
,
},
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
2
,
},
{
numberPressureGauges
:
"-"
,
onlineEquipment
:
"-"
,
offlineEquipment
:
"-"
,
historicalAlarm
:
"-"
,
alarmProcessed
:
"-"
,
inAlarm
:
"-"
,
dataType
:
3
,
},
// {
// numberPressureGauges: "-",
// onlineEquipment: "-",
// offlineEquipment: "-",
// historicalAlarm: "-",
// alarmProcessed: "-",
// inAlarm: "-",
// dataType: 1,
// },
// {
// numberPressureGauges: "-",
// onlineEquipment: "-",
// offlineEquipment: "-",
// historicalAlarm: "-",
// alarmProcessed: "-",
// inAlarm: "-",
// dataType: 2,
// },
// {
// numberPressureGauges: "-",
// onlineEquipment: "-",
// offlineEquipment: "-",
// historicalAlarm: "-",
// alarmProcessed: "-",
// inAlarm: "-",
// dataType: 3,
// },
],
};
},
...
...
@@ -175,12 +174,18 @@ export default {
if
(
this
.
deviceData
.
iconType
==
2
)
{
getTyxDevice
({
deviceId
:
this
.
deviceData
.
deviceId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
// 过滤设备数为0的
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
.
filter
(
(
item
)
=>
item
.
numberPressureGauges
>
0
);
console
.
log
(
this
.
list
);
});
}
else
{
getFmDevice
({
deviceId
:
this
.
deviceData
.
deviceId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
// 过滤设备数为0的
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
.
filter
(
(
item
)
=>
item
.
numberPressureGauges
>
0
);
});
}
},
...
...
gassafetyprogress-web/src/components/bigWindow/User.vue
View file @
5a70583d
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-03-0
3 11:51:48
* @LastEditTime: 2022-03-0
7 14:02:43
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
...
...
@@ -80,6 +80,7 @@
<
script
>
import
{
companyType
,
deviceType
}
from
"@/utils/mapClass/config.js"
;
import
{
listDetectorInfo
}
from
"@/api/detector/detectorInfo"
;
import
{
detectorUserList
}
from
"@/api/detector/detectorUser"
;
export
default
{
...
...
@@ -115,6 +116,7 @@ export default {
btnClick
()
{
// this.vueRoot.centerDataFunc(this.deviceData.pressureFlows);
this
.
vueRoot
.
getDetectorInfoList
(
listDetectorInfo
,
{
userId
:
this
.
deviceData
.
userId
},
this
.
deviceData
.
nickName
);
...
...
gassafetyprogress-web/src/components/bigWindow/UserCenter.vue
View file @
5a70583d
<
template
>
<transition
>
<transition>
<div
v-show=
"show"
class=
"wrapper myCenter"
>
<div
class=
"left"
>
<div
class=
"title-wrapper"
>
...
...
@@ -14,7 +13,6 @@
size=
"mini"
:data=
"tableData"
style=
"width: 100%"
class=
"el-bottom"
:key=
"Math.random()"
>
...
...
@@ -73,12 +71,13 @@
<
script
>
// import Velocity from "velocity-animate";
// import { listDeviceAlarm } from "@/api/dataMonitoring/deviceAlarm";
import
{
listDetectorInfo
}
from
"@/api/detector/detectorInfo"
;
export
default
{
props
:
{
detcetorList
:
{
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[],
},
show
:
{
type
:
Boolean
,
...
...
@@ -109,7 +108,6 @@ export default {
// address: "上海市普陀区金沙江路",
// },
],
};
},
created
()
{
...
...
@@ -134,6 +132,7 @@ export default {
},
handleCurrentChangvale
(
val
)
{
this
.
$parent
.
getDetectorInfoList
(
listDetectorInfo
,
{
userId
:
this
.
userId
,
pageNum
:
val
,
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
5a70583d
<!--
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-03-0
4 14:34:32
* @LastEditTime: 2022-03-0
7 15:40:59
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue
...
...
@@ -450,13 +450,12 @@ export default {
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
},
//用户的设备center
getDetectorInfoList
(
queryParams
,
title
)
{
getDetectorInfoList
(
httpFunc
,
queryParams
,
title
)
{
console
.
log
(
queryParams
);
return
listDetectorInfo
(
queryParams
).
then
((
res
)
=>
{
console
.
log
(
"queryParams"
,
res
);
return
httpFunc
(
queryParams
).
then
((
res
)
=>
{
//
console.log("queryParams", res);
if
(
res
.
code
==
200
)
{
this
.
detcetorList
=
res
.
rows
;
this
.
centerUserId
=
queryParams
.
userId
;
// 总数据
this
.
centerTotal
=
res
.
total
;
...
...
@@ -504,6 +503,7 @@ export default {
if
(
this
.
formatDate
)
{
clearInterval
(
this
.
formatDate
);
// 在Vue实例销毁前,清除时间定时器
}
// 报警
if
(
this
.
alarmTimer
)
{
clearInterval
(
this
.
alarmTimer
);
}
...
...
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