Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
53b51023
Commit
53b51023
authored
Sep 09, 2024
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新优化
parent
ff4af087
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
361 additions
and
16 deletions
+361
-16
UserCenter.vue
zh-baseversion-web/src/components/bigWindow/UserCenter.vue
+13
-9
UserCenterDevice.vue
...version-web/src/components/bigWindow/UserCenterDevice.vue
+338
-0
yhqUserCenter.vue
...aseversion-web/src/components/bigWindow/yhqUserCenter.vue
+10
-7
No files found.
zh-baseversion-web/src/components/bigWindow/UserCenter.vue
View file @
53b51023
...
...
@@ -108,7 +108,7 @@
</div>
</div>
<
yhqUserCenter
<
UserCenterDevice
ref=
"yhquserCenter"
:show=
"true"
:detcetorList=
"safetyDeviceList"
...
...
@@ -123,7 +123,7 @@
// import Velocity from "velocity-animate";
// import { listDeviceAlarm } from "@/api/dataMonitoring/deviceAlarm";
import
{
listDetectorInfo
,
getUserList
}
from
"@/api/detector/detectorInfo"
;
import
yhqUserCenter
from
"@/components/bigWindow/yhqUserCenter
.vue"
;
import
UserCenterDevice
from
"@/components/bigWindow/UserCenterDevice
.vue"
;
export
default
{
props
:
{
...
...
@@ -148,7 +148,7 @@ export default {
},
},
components
:
{
yhqUserCenter
,
UserCenterDevice
,
},
data
()
{
return
{
...
...
@@ -221,7 +221,7 @@ export default {
},
close
()
{
// this.fade = "fade";
this
.
safetyDeviceList
=
[];
this
.
safetyDeviceList
=
[];
this
.
yhquserCenterShow
=
false
;
},
},
...
...
@@ -380,22 +380,26 @@ export default {
left
:
50%
;
top
:
20%
;
height
:
500px
;
width
:
7
6
0px
;
width
:
7
4
0px
;
margin-left
:
-380px
;
// 20240909 wh 调整
background
:
rgba
(
6
,
42
,
69
,
1
);
// background: rgba(6, 42, 69, 1);
background
:
rgba
(
2
,
26
,
51
,
0
.9
);
border
:
1px
solid
#127bd1
;
-webkit-box-shadow
:
inset
0px
0px
10px
0px
#164db2
;
box-shadow
:
inset
0px
0px
10px
0px
#164db2
;
box-sizing
:
border-box
;
padding
:
10px
2
0px
;
padding
:
10px
1
0px
;
// padding-top:-10px;
.list-top
{
display
:
flex
;
justify-content
:
space-between
;
.title
{
color
:
rgb
(
73
,
216
,
255
);
flex
:
1
;
flex
:
1
;
text-align
:
left
;
}
.close
{
.close
{
cursor
:
pointer
;
}
}
...
...
zh-baseversion-web/src/components/bigWindow/UserCenterDevice.vue
0 → 100644
View file @
53b51023
<
template
>
<transition>
<div
v-show=
"show"
class=
"wrapper myCenter"
>
<div
class=
"left"
>
<!--
<div
class=
"title-wrapper"
>
<div
class=
"title"
>
{{
title
}}
报警器列表
</div>
<div
class=
"close"
@
click=
"close"
>
<img
src=
"@/assets/mapImages/closeBtn.png"
alt=
""
/>
</div>
</div>
-->
<div
class=
"bottom right-bottom-data-left"
>
<el-table
size=
"mini"
:data=
"detcetorList"
style=
"width: 720px"
class=
"el-bottom"
height=
"460"
:key=
"Math.random()"
>
<!-- :height="tableHeight" -->
<el-table-column
prop=
"detectorCode"
label=
"报警器编号"
width=
"180"
>
<template
slot-scope=
"scope"
>
<div
:title=
"scope.row.detectorCode"
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
iotNo
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"detectorName"
label=
"报警器名称"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
:title=
"scope.row.detectorName"
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
deviceName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"medium"
label=
"监测介质"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
v-unValue
>
{{
scope
.
row
.
detctionMedium
}}
</div>
</
template
>
</el-table-column>
<!-- <el-table-column prop="detectorAddr" label="设备地址" width="100">
<template slot-scope="scope">
<div v-unValue style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" :title="scope.row.address">
{{ scope.row.address }}
</div>
</template>
</el-table-column> -->
<!-- <el-table-column prop="linkman" label="联系人" width="80">
<template slot-scope="scope">
<div v-unValue style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ scope.row.linkman }}</div>
</template>
</el-table-column>
<el-table-column prop="phone" label="联系电话" width="100">
</el-table-column> -->
<el-table-column
prop=
"detectorStatus"
label=
"状态"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
class=
"detail"
v-if=
"scope.row.status == 0"
>
在线
</div>
<div
class=
"detail"
v-else-if=
"scope.row.status == 1"
>
离线
</div>
<div
class=
"detail"
v-else
>
-
</div>
<!--
<div
v-unValue
:style=
"
{color:scope.row.detectorStatus==1?'red':''}">
{{
scope
.
row
.
detectorStatus
}}
</div>
-->
</
template
>
</el-table-column>
<el-table-column
prop=
"alarmTime"
label=
"报警记录"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<div
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
alarmTime
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"alarmTime"
label=
"安装时间"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<div
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
deviceInstallTime
}}
</div>
</
template
>
</el-table-column>
</el-table>
<div>
<!-- <el-pagination
@current-change="handleCurrentChangvale"
:page-size="pageSize"
layout="prev, pager, next, jumper"
:total="total"
:hide-on-single-page="total <= pageSize"
:key="total + '' + pageSize"
>
</el-pagination> -->
</div>
</div>
</div>
</div>
</transition>
</template>
<
script
>
// import Velocity from "velocity-animate";
// import { listDeviceAlarm } from "@/api/dataMonitoring/deviceAlarm";
import
{
yhqlistDetectorInfo
}
from
"@/api/detector/detectorInfo"
;
import
{
deviceUserList
}
from
"@/api/bigWindow/getDevice"
;
export
default
{
props
:
{
detcetorList
:
{
type
:
Array
,
default
:
()
=>
[],
},
show
:
{
type
:
Boolean
,
},
title
:
{
type
:
String
,
},
userId
:
{
type
:
[
Number
,
String
],
},
total
:
{
type
:
Number
,
},
pageSize
:
{
type
:
Number
,
},
},
data
()
{
return
{
// 动画效果的切换
// tableHeight: 600,
tableData
:
[
// {
// deviceCode: "2016-05-05",
// name: "王小虎",
// province: "上海",
// city: "普陀区",
// address: "上海市普陀区金沙江路",
// },
],
detectorStatusList
:
{
0
:
"在线"
,
1
:
"离线"
,
},
};
},
created
()
{
console
.
log
(
"2222222============"
,
this
.
detcetorList
);
// this.getList();
},
watch
:
{
// 当组件显示的时候
detcetorList
(
newData
)
{
// console.log(bol);
// if (bol) {
console
.
log
(
"222222222222222222222222222222222222222222"
,
newData
);
this
.
tableData
=
[...
newData
];
console
.
log
(
this
.
tableData
);
// }
},
},
mounted
()
{},
methods
:
{
handleSizeChange
(
val
)
{
console
.
log
(
val
);
},
handleCurrentChangvale
(
val
)
{
this
.
$parent
.
getDetectorInfoList
(
deviceUserList
,
{
userId
:
this
.
userId
,
pageNum
:
val
,
pageSize
:
this
.
pageSize
,
},
this
.
title
);
},
// close() {
// // this.fade = "fade";
// this.$parent.otherCenterShow = false;
// },
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.wrapper
{
// width: 978px;
// max-height: 600px;
// position: fixed;
// top: 50%;
// left: 50%;
// margin-top: -300px;
// margin-left: -500px;
// // background-color: #fff;
// display: flex;
// justify-content: space-between;
// margin-top: 10px;
z-index
:
9999
;
&
>
div
{
}
.left
{
// width: 100px;
max-height
:
598px
;
margin-right
:
12px
;
// box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.16);
// background-color: #fff;
// color: #fff;
font-size
:
14px
;
font-weight
:
400
;
.title-wrapper
{
width
:
100%
;
height
:
30px
;
display
:
flex
;
justify-content
:
space-between
;
background
:
#1890ff
;
padding
:
5px
;
.title
{
width
:
100%
;
color
:
#fff
;
text-align
:
center
;
}
.close
{
box-sizing
:
border-box
;
padding-top
:
2px
;
padding-right
:
5px
;
cursor
:
pointer
;
}
}
.el-table__body-wrappe
{
height
:
140px
!
important
;
}
.top
{
height
:
19px
;
// background-color: #053b6a;
color
:
#fff
;
// line-height: 32px;
// padding-left: 12px;
position
:
relative
;
.title
{
position
:
absolute
;
left
:
50%
;
margin-left
:
-92px
;
top
:
-5px
;
}
.repeat
{
position
:
absolute
;
top
:
-5px
;
right
:
160px
;
color
:
#fff
;
cursor
:
pointer
;
&
:hover
{
color
:
#2788ea
;
}
}
.repeat2
{
position
:
absolute
;
right
:
206px
;
color
:
#67c23a
;
}
.more
{
position
:
absolute
;
right
:
38px
;
top
:
-5px
;
color
:
#fff
;
float
:
right
;
margin-right
:
20px
;
cursor
:
pointer
;
&
:hover
{
color
:
#2788ea
;
}
}
}
.bottom
{
width
:
1000px
;
margin
:
0
auto
;
position
:
relative
;
}
}
.right
{
width
:
740px
;
display
:
flex
;
flex-wrap
:
wrap
;
// justify-content: space-between;
align-content
:
flex-start
;
// margin-top: 7px;
&
>
.right-content
{
background-color
:
#fff
;
width
:
238px
;
height
:
82px
;
margin-bottom
:
29px
;
box-shadow
:
2px
2px
5px
rgba
(
0
,
0
,
0
,
0
.16
);
margin-right
:
10px
;
display
:
flex
;
&
.three
{
margin-right
:
0px
;
}
// align-items: center;
.text-icon
{
line-height
:
82px
;
padding-left
:
22px
;
margin-right
:
22px
;
i
{
color
:
#053b6a
;
font-size
:
60px
;
}
}
.text
{
font-size
:
14px
;
padding-top
:
16px
;
.top
{
color
:
#000
;
margin-bottom
:
10px
;
font-weight
:
600
;
}
.bottom
{
color
:
#2788ea
;
}
}
}
}
.iconfont
{
cursor
:
pointer
;
}
// 单独调整下最后一个icon的大小
.iconFontSize
{
font-size
:
50px
!
important
;
}
}
.detail
{
text-align
:
left
;
}
</
style
>
<
style
lang=
"scss"
>
.myCenter
{
.left
.el-table__body-wrapper
{
overflow-y
:
auto
!
important
;
}
}
</
style
>
zh-baseversion-web/src/components/bigWindow/yhqUserCenter.vue
View file @
53b51023
...
...
@@ -7,7 +7,9 @@
<div
class=
"close"
@
click=
"close"
>
<img
src=
"@/assets/mapImages/closeBtn.png"
alt=
""
/>
</div>
</div>
-->
<div
class=
"bottom right-bottom-data-left"
>
<el-table
size=
"mini"
...
...
@@ -27,7 +29,7 @@
<el-table-column
prop=
"detectorName"
label=
"报警器名称"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
:title=
"scope.row.detectorName"
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
deviceName
}}
{{
scope
.
row
.
deviceName
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -66,7 +68,9 @@
<el-table-column
prop=
"alarmTime"
label=
"安装时间"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<div
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
deviceInstallTime
}}
</div>
<div
class=
"zzz"
v-unValue
>
{{
scope
.
row
.
deviceInstallTime
}}
</div>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -144,13 +148,11 @@ export default {
// if (bol) {
console
.
log
(
"222222222222222222222222222222222222222222"
,
newData
);
this
.
tableData
=
[...
newData
];
console
.
log
(
this
.
tableData
)
console
.
log
(
this
.
tableData
)
;
// }
},
},
mounted
(){
},
mounted
()
{},
methods
:
{
handleSizeChange
(
val
)
{
...
...
@@ -322,7 +324,8 @@ export default {
font-size
:
50px
!
important
;
}
}
.detail
{
.detail
{
text-align
:
left
;
}
</
style
>
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