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
3f2a0720
Commit
3f2a0720
authored
Mar 04, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_jzl'
parents
b467e3bd
cc9fb299
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
179 additions
and
100 deletions
+179
-100
getDevice.js
gassafetyprogress-web/src/api/bigWindow/getDevice.js
+27
-1
Cz.vue
gassafetyprogress-web/src/components/bigWindow/Cz.vue
+72
-39
Device.vue
gassafetyprogress-web/src/components/bigWindow/Device.vue
+71
-55
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+7
-3
vue.config.js
gassafetyprogress-web/vue.config.js
+2
-2
No files found.
gassafetyprogress-web/src/api/bigWindow/getDevice.js
View file @
3f2a0720
/*
* @Author: your name
* @Date: 2022-02-23 15:28:07
* @LastEditTime: 2022-03-0
1 15:54:19
* @LastEditTime: 2022-03-0
4 17:16:53
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /newDev/gassafety-progress/gassafetyprogress-web/src/api/bigWindow/getdevice.js
...
...
@@ -25,6 +25,15 @@ export function getTyx(query) {
params
:
query
})
}
// 调压箱下面的设备接口
export
function
getTyxDevice
(
query
)
{
return
request
({
url
:
'/pipe/pipe/selectPressureFlow'
,
method
:
'get'
,
params
:
query
})
}
// 是阀门
export
function
getFm
(
query
)
{
...
...
@@ -35,6 +44,15 @@ export function getFm(query) {
})
}
// 阀门下面的设备接口
export
function
getFmDevice
(
query
)
{
return
request
({
url
:
'/pipe/pipe/selectPressureFlow'
,
method
:
'get'
,
params
:
query
})
}
// 厂站
export
function
getCz
(
query
)
{
...
...
@@ -44,6 +62,14 @@ export function getCz(query) {
params
:
query
})
}
// 场站下的设备
export
function
getCzDevice
(
query
)
{
return
request
({
url
:
'/pipe/pipe/selecttSiteStationInfoData'
,
method
:
'get'
,
params
:
query
})
}
// 监控
export
function
getVideo
(
query
)
{
return
request
({
...
...
gassafetyprogress-web/src/components/bigWindow/Cz.vue
View file @
3f2a0720
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-0
2-28 18:05:19
* @LastEditTime: 2022-0
3-04 17:25:27
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
...
...
@@ -61,8 +61,15 @@
<div>
已处理报警
</div>
<div
class=
"last"
>
报警中
</div>
</div>
<div
class=
"tbody flex"
v-if=
"Array.isArray(deviceData.pressureFlows)"
>
<div
class=
"first zzz"
>
{{
"压力表"
}}
</div>
<template
v-if=
"list.length > 0"
>
<div
class=
"tbody flex"
v-for=
"deviceData in list"
:key=
"deviceData.inAlarm+Math.random()"
>
<div
v-unValue
class=
"first zzz"
>
{{
typeList
[
deviceData
.
dataType
]
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberPressureGauges
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
onlineEquipment
}}
...
...
@@ -80,25 +87,7 @@
{{
deviceData
.
inAlarm
}}
</div>
</div>
<div
class=
"tbody flex"
v-if=
"Array.isArray(deviceData.pressureFlows)"
>
<div
class=
"first zzz"
>
{{
"流量计"
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberOnlineEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberOfflineEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberHistoricalAlarm
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberAlarmProcessed
}}
</div>
<div
v-unValue
class=
"last"
>
{{
deviceData
.
numberInAlarm
}}
</div>
</div>
</
template
>
</div>
<div
class=
"btn"
>
...
...
@@ -109,12 +98,49 @@
<
script
>
import
{
companyType
,
deviceType
}
from
"@/utils/mapClass/config.js"
;
import
{
getCzDevice
}
from
"@/api/bigWindow/getDevice.js"
;
export
default
{
data
()
{
return
{
companyType
,
deviceType
,
profile
:
"暂无"
,
typeList
:
{
// 1压力表 2流量计 3探测器
1
:
"压力表"
,
2
:
"流量计"
,
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
,
},
],
};
},
computed
:
{
...
...
@@ -133,7 +159,8 @@ export default {
this
.
companyType
[
item
.
conpanyId
]
=
item
.
companyName
;
});
}
console
.
log
(
this
.
deviceData
);
this
.
myHttp
()
},
methods
:
{
close
()
{
...
...
@@ -142,6 +169,12 @@ export default {
btnClick
()
{
this
.
vueRoot
.
centerDataFunc
(
this
.
deviceData
.
pressureFlows
);
},
myHttp
()
{
getCzDevice
({
deviceId
:
this
.
deviceData
.
siteStationId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
console
.
log
(
"resresres"
,
res
)
});
},
},
};
</
script
>
...
...
gassafetyprogress-web/src/components/bigWindow/Device.vue
View file @
3f2a0720
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-03-0
3 11:51:13
* @LastEditTime: 2022-03-0
4 17:27:21
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
...
...
@@ -61,8 +61,15 @@
<div>
已处理报警
</div>
<div
class=
"last"
>
报警中
</div>
</div>
<div
class=
"tbody flex"
v-if=
"Array.isArray(deviceData.pressureFlows)"
>
<div
class=
"first zzz"
>
{{
"压力表"
}}
</div>
<template
v-if=
"list.length > 0"
>
<div
class=
"tbody flex"
v-for=
"deviceData in list"
:key=
"deviceData.inAlarm+Math.random()"
>
<div
v-unValue
class=
"first zzz"
>
{{
typeList
[
deviceData
.
dataType
]
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberPressureGauges
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
onlineEquipment
}}
...
...
@@ -80,42 +87,60 @@
{{
deviceData
.
inAlarm
}}
</div>
</div>
<div
class=
"tbody flex"
v-if=
"Array.isArray(deviceData.pressureFlows)"
>
<div
class=
"first zzz"
>
{{
"流量计"
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberOnlineEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberOfflineEquipment
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberHistoricalAlarm
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
numberAlarmProcessed
}}
</div>
<div
v-unValue
class=
"last"
>
{{
deviceData
.
numberInAlarm
}}
</div>
</div>
</
template
>
</div>
<div
class=
"btn"
>
<
div
@
click=
"btnClick"
>
感知设备
</div
>
<
!-- <div @click="btnClick">感知设备</div> --
>
</div>
</div>
</template>
<
script
>
import
{
companyType
,
deviceType
}
from
"@/utils/mapClass/config.js"
;
import
{
getTyx
,
getFm
}
from
"@/api/bigWindow/getDevice.js"
;
import
{
getTyx
Device
,
getFmDevice
}
from
"@/api/bigWindow/getDevice.js"
;
export
default
{
data
()
{
return
{
companyType
,
deviceType
,
profile
:
"暂无"
,
typeList
:
{
// 1压力表 2流量计 3探测器
1
:
"压力表"
,
2
:
"流量计"
,
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
,
},
],
};
},
computed
:
{
...
...
@@ -146,25 +171,16 @@ export default {
this
.
vueRoot
.
centerDataFunc
(
this
.
deviceData
.
pressureFlows
);
},
myHttp
()
{
console
.
log
(
this
.
deviceData
.
iconType
)
console
.
log
(
this
.
deviceData
.
iconType
)
;
if
(
this
.
deviceData
.
iconType
==
2
)
{
getTyx
({
DeviceId
:
this
.
deviceData
.
DeviceId
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
const
data
=
res
.
data
.
filter
(
(
item
)
=>
item
.
deviceId
==
this
.
deviceData
.
deviceId
)[
0
].
detectorCountList
;
this
.
deviceData
.
detectorCountList
=
data
;
}
getTyxDevice
({
deviceId
:
this
.
deviceData
.
deviceId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
console
.
log
(
this
.
list
);
});
}
else
{
getFm
({
DeviceId
:
this
.
deviceData
.
DeviceId
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
const
data
=
res
.
data
.
filter
(
(
item
)
=>
item
.
deviceId
==
this
.
deviceData
.
deviceId
)[
0
].
detectorCountList
;
this
.
deviceData
.
detectorCountList
=
data
;
}
getFmDevice
({
deviceId
:
this
.
deviceData
.
deviceId
}).
then
((
res
)
=>
{
this
.
list
=
res
.
data
[
0
].
subordinateEquipmentList
;
});
}
},
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
3f2a0720
<!--
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-03-0
3 16:23:01
* @LastEditTime: 2022-03-0
4 14:34:32
* @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
-->
<
template
>
<div
class=
"home bigwindow"
>
<div
class=
"goSystem"
@
click=
"$router.push('/index')"
>
进入管理系统
</div>
<div
id=
"map"
></div>
<Center
:show=
"show"
:centerData=
"centerData"
/>
...
...
@@ -180,6 +182,7 @@ export default {
},
data
()
{
return
{
map
:
null
,
show
:
false
,
centerData
:
null
,
...
...
@@ -352,7 +355,6 @@ export default {
goMap
(
httpFunc
,
addFunc
,
component
)
{
return
httpFunc
().
then
((
res
)
=>
{
// 给用户加icontype
if
(
res
.
data
&&
!
res
.
data
[
0
].
iconType
)
{
res
.
data
.
forEach
((
item
)
=>
{
item
.
iconType
=
6
;
...
...
@@ -371,6 +373,8 @@ export default {
}
else
{
config
=
{
data
:
res
.
data
};
}
console
.
log
(
"reresresresresresresresresress"
,
config
)
addFunc
(
config
,
component
);
return
config
.
iconType
;
});
...
...
gassafetyprogress-web/vue.config.js
View file @
3f2a0720
...
...
@@ -34,8 +34,8 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
//
target: `http://192.168.2.14:8903/gassafety`,
target
:
`http://222.223.203.154:8092/gassafety`
,
target
:
`http://192.168.2.14:8903/gassafety`
,
//
target: `http://222.223.203.154:8092/gassafety`,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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