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
b62ff13c
Commit
b62ff13c
authored
Apr 09, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8b6d21ab
0b39f459
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
323 additions
and
74 deletions
+323
-74
THiddenTroubleInfoSController.java
...b/controller/supervise/THiddenTroubleInfoSController.java
+5
-0
THiddenTroubleInfoMapper.java
...va/com/zehong/system/mapper/THiddenTroubleInfoMapper.java
+7
-0
ITHiddenTroubleInfoService.java
...com/zehong/system/service/ITHiddenTroubleInfoService.java
+7
-0
THiddenTroubleInfoServiceImpl.java
...ng/system/service/impl/THiddenTroubleInfoServiceImpl.java
+10
-0
THiddenTroubleInfoMapper.xml
...main/resources/mapper/system/THiddenTroubleInfoMapper.xml
+28
-0
Cz.vue
gassafetyprogress-web/src/components/bigWindow/Cz.vue
+7
-4
Device.vue
gassafetyprogress-web/src/components/bigWindow/Device.vue
+6
-3
permission.js
gassafetyprogress-web/src/permission.js
+2
-0
TopCard.vue
...rationMonitor/monitorData/component/charsData/TopCard.vue
+22
-13
index.vue
gassafetyprogress-web/src/views/system/info/index.vue
+229
-54
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/supervise/THiddenTroubleInfoSController.java
View file @
b62ff13c
...
@@ -101,6 +101,11 @@ public class THiddenTroubleInfoSController extends BaseController
...
@@ -101,6 +101,11 @@ public class THiddenTroubleInfoSController extends BaseController
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
THiddenTroubleInfo
tHiddenTroubleInfo
)
public
AjaxResult
edit
(
@RequestBody
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
{
//查询燃气信息是否有修改 如果有值证明没有修改 如果没有值证明已经修改
THiddenTroubleInfo
tHiddenTroubleInfo1
=
tHiddenTroubleInfoService
.
selectDetails
(
tHiddenTroubleInfo
);
if
(
tHiddenTroubleInfo1
==
null
){
tHiddenTroubleInfo
.
setHiddenTroubleDealStatus
(
"1"
);
}
return
toAjax
(
tHiddenTroubleInfoService
.
updateTHiddenTroubleInfo
(
tHiddenTroubleInfo
));
return
toAjax
(
tHiddenTroubleInfoService
.
updateTHiddenTroubleInfo
(
tHiddenTroubleInfo
));
}
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/THiddenTroubleInfoMapper.java
View file @
b62ff13c
...
@@ -65,4 +65,11 @@ public interface THiddenTroubleInfoMapper
...
@@ -65,4 +65,11 @@ public interface THiddenTroubleInfoMapper
* @return
* @return
*/
*/
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITHiddenTroubleInfoService.java
View file @
b62ff13c
...
@@ -65,4 +65,11 @@ public interface ITHiddenTroubleInfoService
...
@@ -65,4 +65,11 @@ public interface ITHiddenTroubleInfoService
* @return
* @return
*/
*/
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleInfoServiceImpl.java
View file @
b62ff13c
...
@@ -102,4 +102,14 @@ public class THiddenTroubleInfoServiceImpl implements ITHiddenTroubleInfoService
...
@@ -102,4 +102,14 @@ public class THiddenTroubleInfoServiceImpl implements ITHiddenTroubleInfoService
public
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
public
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
return
tHiddenTroubleInfoMapper
.
selectTHiddenTroubleInfoExcelList
(
tHiddenTroubleInfo
);
return
tHiddenTroubleInfoMapper
.
selectTHiddenTroubleInfoExcelList
(
tHiddenTroubleInfo
);
}
}
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
@Override
public
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
return
tHiddenTroubleInfoMapper
.
selectDetails
(
tHiddenTroubleInfo
);
}
}
}
gassafetyprogress-system/src/main/resources/mapper/system/THiddenTroubleInfoMapper.xml
View file @
b62ff13c
...
@@ -75,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -75,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
group by hidden_trouble_id desc
group by hidden_trouble_id desc
</select>
</select>
<insert
id=
"insertTHiddenTroubleInfo"
parameterType=
"THiddenTroubleInfo"
useGeneratedKeys=
"true"
keyProperty=
"hiddenTroubleId"
>
<insert
id=
"insertTHiddenTroubleInfo"
parameterType=
"THiddenTroubleInfo"
useGeneratedKeys=
"true"
keyProperty=
"hiddenTroubleId"
>
insert into t_hidden_trouble_info
insert into t_hidden_trouble_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -145,4 +146,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -145,4 +146,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{hiddenTroubleId}
#{hiddenTroubleId}
</foreach>
</foreach>
</update>
</update>
<!--查询燃气信息是否有修改-->
<select
id=
"selectDetails"
resultMap=
"THiddenTroubleInfoResult"
parameterType=
"THiddenTroubleInfo"
>
<include
refid=
"selectTHiddenTroubleInfoVo"
/>
where hidden_trouble_id=#{hiddenTroubleId}
<if
test=
"hiddenTroubleName != null"
>
and hidden_trouble_name = #{hiddenTroubleName}
</if>
<if
test=
"hiddenTroubleLevel != null"
>
and hidden_trouble_level = #{hiddenTroubleLevel}
</if>
<if
test=
"hiddenTroubleType != null"
>
and hidden_trouble_type = #{hiddenTroubleType}
</if>
<if
test=
"hiddenTroubleDescribe != null"
>
and hidden_trouble_describe = #{hiddenTroubleDescribe}
</if>
<if
test=
"longitude != null"
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null"
>
and latitude = #{latitude}
</if>
<if
test=
"pictureUrl != null"
>
and picture_url= #{pictureUrl}
</if>
</select>
</mapper>
</mapper>
gassafetyprogress-web/src/components/bigWindow/Cz.vue
View file @
b62ff13c
...
@@ -76,11 +76,11 @@
...
@@ -76,11 +76,11 @@
>
>
{{
deviceData
.
stationAddr
||
"-"
}}
{{
deviceData
.
stationAddr
||
"-"
}}
</div>
</div>
<div
v-else
>
-
</div>
<div
v-else
class=
"right last zzz"
>
-
</div>
</div>
</div>
</div>
</div>
<div
class=
"top-right"
>
<div
class=
"top-right"
>
<el-image
<el-image
v-if=
"deviceData.pictureAddress"
v-if=
"deviceData.pictureAddress"
style=
"width: 100px; height: 100px"
style=
"width: 100px; height: 100px"
...
@@ -237,7 +237,7 @@ export default {
...
@@ -237,7 +237,7 @@ export default {
background-color
:
rgba
(
9
,
18
,
32
,
0
.6
);
background-color
:
rgba
(
9
,
18
,
32
,
0
.6
);
padding
:
10px
;
padding
:
10px
;
position
:
relative
;
position
:
relative
;
width
:
6
00px
;
width
:
5
00px
;
.title
{
.title
{
// padding-top: 10px;
// padding-top: 10px;
// padding-left: 10px;
// padding-left: 10px;
...
@@ -258,7 +258,7 @@ export default {
...
@@ -258,7 +258,7 @@ export default {
border
:
1px
solid
#cccccc
;
border
:
1px
solid
#cccccc
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.top-left
{
.top-left
{
flex
:
1
;
flex
:
1
.8
;
.group
{
.group
{
height
:
40px
;
height
:
40px
;
flex
:
1
;
flex
:
1
;
...
@@ -283,6 +283,9 @@ export default {
...
@@ -283,6 +283,9 @@ export default {
text-align
:
right
;
text-align
:
right
;
background-color
:
rgba
(
255
,
255
,
255
,
0
.1
);
background-color
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
.right
{
flex
:
2
;
}
}
}
}
}
.top-right
{
.top-right
{
...
...
gassafetyprogress-web/src/components/bigWindow/Device.vue
View file @
b62ff13c
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</div>
</div>
</div>
</div>
<div
class=
"top-right"
>
<div
class=
"top-right"
>
<el-image
<el-image
v-if=
"deviceData.iconUrl"
v-if=
"deviceData.iconUrl"
style=
"width: 100px; height: 100px"
style=
"width: 100px; height: 100px"
...
@@ -220,7 +220,7 @@ export default {
...
@@ -220,7 +220,7 @@ export default {
background-color
:
rgba
(
9
,
18
,
32
,
0
.6
);
background-color
:
rgba
(
9
,
18
,
32
,
0
.6
);
padding
:
10px
;
padding
:
10px
;
position
:
relative
;
position
:
relative
;
width
:
6
00px
;
width
:
5
00px
;
.title
{
.title
{
// padding-top: 10px;
// padding-top: 10px;
// padding-left: 10px;
// padding-left: 10px;
...
@@ -241,7 +241,7 @@ export default {
...
@@ -241,7 +241,7 @@ export default {
border
:
1px
solid
#cccccc
;
border
:
1px
solid
#cccccc
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.top-left
{
.top-left
{
flex
:
1
;
flex
:
1
.8
;
.group
{
.group
{
height
:
40px
;
height
:
40px
;
flex
:
1
;
flex
:
1
;
...
@@ -266,6 +266,9 @@ export default {
...
@@ -266,6 +266,9 @@ export default {
text-align
:
right
;
text-align
:
right
;
background-color
:
rgba
(
255
,
255
,
255
,
0
.1
);
background-color
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
.right
{
flex
:
2
;
}
}
}
}
}
.top-right
{
.top-right
{
...
...
gassafetyprogress-web/src/permission.js
View file @
b62ff13c
...
@@ -14,12 +14,14 @@ router.beforeEach((to, from, next) => {
...
@@ -14,12 +14,14 @@ router.beforeEach((to, from, next) => {
NProgress
.
start
();
NProgress
.
start
();
// 如果cookie里有token
// 如果cookie里有token
if
(
getToken
())
{
if
(
getToken
())
{
/* has token*/
/* has token*/
// 如果要去login,就直接去默认页面
// 如果要去login,就直接去默认页面
if
(
to
.
path
===
"/login"
)
{
if
(
to
.
path
===
"/login"
)
{
next
({
path
:
"/"
});
next
({
path
:
"/"
});
NProgress
.
done
();
NProgress
.
done
();
}
else
{
}
else
{
console
.
log
(
"有"
);
// 如果没有获得当前用户的所有信息
// 如果没有获得当前用户的所有信息
if
(
store
.
getters
.
roles
.
length
===
0
)
{
if
(
store
.
getters
.
roles
.
length
===
0
)
{
// 判断当前用户是否已拉取完user_info信息
// 判断当前用户是否已拉取完user_info信息
...
...
gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData/TopCard.vue
View file @
b62ff13c
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-25 13:46:23
* @Date: 2022-03-25 13:46:23
* @LastEditTime: 2022-0
3-25 17:18:05
* @LastEditTime: 2022-0
4-09 10:38:14
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData.vue
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData.vue
...
@@ -30,15 +30,27 @@
...
@@ -30,15 +30,27 @@
<div
class=
"middle flex"
>
<div
class=
"middle flex"
>
<div
class=
"first"
>
正常
</div>
<div
class=
"first"
>
正常
</div>
<div>
高爆
</div>
<!-- 2是探测器,探测器只有报警,没有高低报 -->
<div>
低爆
</div>
<template
v-if=
"index != 2"
>
<div>
高报
</div>
<div>
低报
</div>
</
template
>
<
template
v-else
>
<div>
报警
</div>
</
template
>
<div
class=
"last"
>
离线数
</div>
<div
class=
"last"
>
离线数
</div>
</div>
</div>
<div
class=
"bottom flex"
>
<div
class=
"bottom flex"
>
<div
class=
"first"
>
1234
</div>
<div
class=
"first"
>
1234
</div>
<div>
1234
</div>
<!-- 2是探测器,探测器只有报警,没有高低报 -->
<div>
1231
</div>
<
template
v-if=
"index != 2"
>
<div>
123321
</div>
<div>
12321
</div>
</
template
>
<
template
v-else
>
<div>
12312
</div>
</
template
>
<div
class=
"last"
>
534534
</div>
<div
class=
"last"
>
534534
</div>
</div>
</div>
</div>
</div>
...
@@ -49,10 +61,10 @@
...
@@ -49,10 +61,10 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"charsData"
,
name
:
"charsData"
,
props
:{
props
:
{
cardList
:{
cardList
:
{
type
:
Array
,
type
:
Array
,
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -63,9 +75,8 @@ export default {
...
@@ -63,9 +75,8 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.top-card
{
.top-card
{
margin-bottom
:
22px
;
margin-bottom
:
22px
;
&
>
div
{
&
>
div
{
flex
:
1
;
flex
:
1
;
margin-right
:
20px
;
margin-right
:
20px
;
...
@@ -141,6 +152,4 @@ export default {
...
@@ -141,6 +152,4 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
</
style
>
</
style
>
\ No newline at end of file
gassafetyprogress-web/src/views/system/info/index.vue
View file @
b62ff13c
This diff is collapsed.
Click to expand it.
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