Commit c7aa837d authored by 纪泽龙's avatar 纪泽龙

页面样式优化

parent 190b2159
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="wrapper"> <div class="wrapper">
<span class="dot-left"></span> <span class="dot-left"></span>
<div class="top display-default"> <div class="top display-default">
<div class="left text ddd" :title="data.deviceName"> <div class="left text ddd" :title="data.nickName">
{{ data.nickName }} {{ data.nickName }}
</div> </div>
<div class="right text"> <div class="right text">
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
this.data.class.view.domAllShow(); this.data.class.view.domAllShow();
}, },
centerShow() { centerShow() {
this.data.class.view.getDetectorInfoList({ userId: this.data.userId }); this.data.class.view.getDetectorInfoList({ userId: this.data.userId },this.data.nickName);
}, },
}, },
}; };
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div v-show="show" class="wrapper center"> <div v-show="show" class="wrapper center">
<div class="left"> <div class="left">
<div class="title-wrapper"> <div class="title-wrapper">
<div class="title">报警器列表</div> <div class="title">{{title}}报警器列表</div>
<div class="close" @click="close"> <div class="close" @click="close">
<img src="@/assets/images/closeBtn.png" alt="" /> <img src="@/assets/images/closeBtn.png" alt="" />
</div> </div>
...@@ -21,12 +21,21 @@ ...@@ -21,12 +21,21 @@
style="width: 100%" style="width: 100%"
:height="tableHeight" :height="tableHeight"
class="el-bottom" class="el-bottom"
:key="Math.random()"
> >
<!-- :height="tableHeight" --> <!-- :height="tableHeight" -->
<el-table-column prop="detectorCode" label="设备编号" width="180">
<template slot-scope="scope">
<div :title="scope.row.detectorCode" class="ddd" v-un-content>
{{ scope.row.detectorCode }}
</div>
</template>
</el-table-column>
<el-table-column prop="detectorName" label="设备名称" width="100"> <el-table-column prop="detectorName" label="设备名称" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-un-content>{{ scope.row.detectorName }}</div> <div :title="scope.row.detectorName" class="ddd" v-un-content>
{{ scope.row.detectorName }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="medium" label="监测介质" width=""> <el-table-column prop="medium" label="监测介质" width="">
...@@ -34,8 +43,6 @@ ...@@ -34,8 +43,6 @@
<div v-un-content>{{ scope.row.medium }}</div> <div v-un-content>{{ scope.row.medium }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="detectorCode" label="设备编号" width="150">
</el-table-column>
<el-table-column prop="linkman" label="联系人" width="100"> <el-table-column prop="linkman" label="联系人" width="100">
</el-table-column> </el-table-column>
<el-table-column prop="phone" label="联系电话" width=""> <el-table-column prop="phone" label="联系电话" width="">
...@@ -47,7 +54,6 @@ ...@@ -47,7 +54,6 @@
<div v-un-content>{{ scope.row.alarmTime }}</div> <div v-un-content>{{ scope.row.alarmTime }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="alarmValue" label="定位" width="50"> <el-table-column prop="alarmValue" label="定位" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
...@@ -65,6 +71,7 @@ ...@@ -65,6 +71,7 @@
layout="prev, pager, next, jumper" layout="prev, pager, next, jumper"
:total="total" :total="total"
:hide-on-single-page="total <= pageSize" :hide-on-single-page="total <= pageSize"
:key="total+''+pageSize"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -86,6 +93,9 @@ export default { ...@@ -86,6 +93,9 @@ export default {
show: { show: {
type: Boolean, type: Boolean,
}, },
title: {
type: String,
},
userId: { userId: {
type: [Number, String], type: [Number, String],
}, },
...@@ -103,13 +113,13 @@ export default { ...@@ -103,13 +113,13 @@ export default {
fade: "fade", fade: "fade",
tableHeight: 600, tableHeight: 600,
tableData: [ tableData: [
{ // {
deviceCode: "2016-05-05", // deviceCode: "2016-05-05",
name: "王小虎", // name: "王小虎",
province: "上海", // province: "上海",
city: "普陀区", // city: "普陀区",
address: "上海市普陀区金沙江路", // address: "上海市普陀区金沙江路",
}, // },
], ],
moveX: 0, moveX: 0,
moveY: 0, moveY: 0,
...@@ -139,7 +149,7 @@ export default { ...@@ -139,7 +149,7 @@ export default {
userId: this.userId, userId: this.userId,
pageNum: val, pageNum: val,
pageSize: this.pageSize, pageSize: this.pageSize,
}); },this.title);
}, },
close() { close() {
this.fade = "fade"; this.fade = "fade";
...@@ -282,12 +292,14 @@ export default { ...@@ -282,12 +292,14 @@ export default {
background: #1890ff; background: #1890ff;
padding: 5px; padding: 5px;
.title { .title {
width: 100%;
color: #fff; color: #fff;
text-align: center;
} }
.close { .close {
box-sizing: border-box; box-sizing: border-box;
padding-top: 2px; padding-top: 2px;
padding-right: 2px; padding-right: 5px;
cursor: pointer; cursor: pointer;
} }
} }
...@@ -337,7 +349,7 @@ export default { ...@@ -337,7 +349,7 @@ export default {
} }
} }
.bottom { .bottom {
width: 900px; width: 1000px;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
} }
......
...@@ -2,21 +2,25 @@ ...@@ -2,21 +2,25 @@
<div class="wrapper rightPic"> <div class="wrapper rightPic">
<div class="math"> <div class="math">
<div> <div>
<span>{{ rightPicData.alarmNum }}</span <span :title="rightPicData.alarmNum" class="ddd">{{ rightPicData.alarmNum }}</span>
>报警总数 <i>报警总数</i>
</div> </div>
<div> <div>
<span>{{ rightPicData.onlineNum }}</span <span :title="rightPicData.onlineNum" class="ddd">{{ rightPicData.onlineNum }}</span>
>在线设备 <i>在线设备</i>
</div> </div>
<div> <div>
<span>{{ rightPicData.offlineNum }}</span <span :title="rightPicData.offlineNum" class="ddd">{{ rightPicData.offlineNum }}</span>
>离线设备 <i>离线设备</i>
</div> </div>
</div> </div>
<div class="left"> <div class="left">
<div class="bottom right-bottom-data-left" @mouseover="tableEnter" @mouseout="timerAni"> <div
class="bottom right-bottom-data-left"
@mouseover="tableEnter"
@mouseout="timerAni"
>
<el-table <el-table
size="mini" size="mini"
:data="tableData" :data="tableData"
...@@ -159,6 +163,16 @@ export default { ...@@ -159,6 +163,16 @@ export default {
> span { > span {
color: aqua; color: aqua;
font-size: 20px; font-size: 20px;
display: inline-block;
margin-right: 8px;
max-width: 50px;
overflow: hidden;
}
> i {
display: inline-block;
overflow: hidden;
font-style: normal;
} }
font-size: 14px; font-size: 14px;
color: #fff; color: #fff;
......
...@@ -81,7 +81,11 @@ ...@@ -81,7 +81,11 @@
:list="rightBototmData" :list="rightBototmData"
/> />
<!-- 右边 --> <!-- 右边 -->
<RightPic :rightPicData="rightPicData" v-show="RightPicShow" ref="RightPic"/> <RightPic
:rightPicData="rightPicData"
v-show="RightPicShow"
ref="RightPic"
/>
<!-- 报警工单 --> <!-- 报警工单 -->
<CreateWork <CreateWork
ref="CreateWork" ref="CreateWork"
...@@ -95,7 +99,15 @@ ...@@ -95,7 +99,15 @@
@callback="CreateWorkTroubleCallBack" @callback="CreateWorkTroubleCallBack"
/> />
<!-- 报警用户的报警器列表 --> <!-- 报警用户的报警器列表 -->
<Center :show="centerShow" ref="center" :detcetorList="detcetorList" :userId="centerUserId" :total="centerTotal" :pageSize="20"/> <Center
:title="centerTitle"
:show="centerShow"
ref="center"
:detcetorList="detcetorList"
:userId="centerUserId"
:total="centerTotal"
:pageSize="20"
/>
<!-- 当报警列表隐藏时,这个显示,点击就让Center回来 --> <!-- 当报警列表隐藏时,这个显示,点击就让Center回来 -->
<div <div
@click=" @click="
...@@ -162,7 +174,7 @@ ...@@ -162,7 +174,7 @@
</el-button> --> </el-button> -->
<div class="leftBar-wrapper"> <div class="leftBar-wrapper">
<!-- 燃气公司 --> <!-- 燃气公司 -->
<div class="compTitle">燃气公司设备</div>
<div class="comp-wrapper"> <div class="comp-wrapper">
<div <div
class="comp" class="comp"
...@@ -179,7 +191,10 @@ ...@@ -179,7 +191,10 @@
class="box-wrapper" class="box-wrapper"
v-for="(item, index) in changeBtnData" v-for="(item, index) in changeBtnData"
:key="item.value" :key="item.value"
:class="{ boxWrapperTop: index == 5 }"
> >
<!-- :class="{boxWrapperTop:index==5}" 的意思是非公司切换的列表 -->
<div class="boxTitle" v-if="index == 5">安全防护设备</div>
<div <div
class="box" class="box"
:class="{ :class="{
...@@ -263,6 +278,7 @@ ...@@ -263,6 +278,7 @@
</div> </div>
</div> </div>
</template> </template>
<!-- 隐患的展示 --> <!-- 隐患的展示 -->
<template v-else-if="item.value == 8"> <template v-else-if="item.value == 8">
<div class="list-wrapper"> <div class="list-wrapper">
...@@ -601,12 +617,15 @@ export default { ...@@ -601,12 +617,15 @@ export default {
// 报警列表的数据 // 报警列表的数据
detcetorList: [], detcetorList: [],
// 报警列表的总数据,分页用的 // 报警列表的总数据,分页用的
centerTotal:0, centerTotal: 0,
// 这是center列表翻页时候用的userId // 这是center列表翻页时候用的userId
centerUserId:99, centerUserId: 99,
// center 的title
centerTitle: "",
lntPosition: 0, lntPosition: 0,
//右上角数据 //右上角数据
rightPicData:{}, rightPicData: {},
}; };
}, },
created() { created() {
...@@ -845,7 +864,7 @@ export default { ...@@ -845,7 +864,7 @@ export default {
}); });
}, },
// 获取报警器用户的报警器分布 // 获取报警器用户的报警器分布
getDetectorInfoList(queryParams) { getDetectorInfoList(queryParams, title) {
console.log(queryParams); console.log(queryParams);
return getdetectorInfoList(queryParams).then((res) => { return getdetectorInfoList(queryParams).then((res) => {
console.log("queryParams", res); console.log("queryParams", res);
...@@ -856,6 +875,7 @@ export default { ...@@ -856,6 +875,7 @@ export default {
this.centerTotal = res.total; this.centerTotal = res.total;
this.$refs.center.fade = "fade"; this.$refs.center.fade = "fade";
this.centerShow = true; this.centerShow = true;
this.centerTitle = title;
// 传递回去 // 传递回去
return res.code; return res.code;
} }
...@@ -865,7 +885,7 @@ export default { ...@@ -865,7 +885,7 @@ export default {
getAlarmData(queryParams) { getAlarmData(queryParams) {
return alarmData(queryParams).then((res) => { return alarmData(queryParams).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log('右上角数据',res) console.log("右上角数据", res);
this.rightPicData = res.data; this.rightPicData = res.data;
return res.code; return res.code;
} }
...@@ -2412,8 +2432,28 @@ input[type="radio"] { ...@@ -2412,8 +2432,28 @@ input[type="radio"] {
// margin-left: 20px; // margin-left: 20px;
margin-top: 15px; margin-top: 15px;
// box-sizing: border-box; // box-sizing: border-box;
// 燃气公司
.compTitle {
text-align: center;
color: #31eaea;
font-size: 25px;
padding: 5px 0 10px 0;
}
.box-wrapper { .box-wrapper {
width: 340px; width: 340px;
position: relative;
&.boxWrapperTop {
.boxTitle {
text-align: center;
color: #31eaea;
font-size: 25px;
padding: 10px 0px 5px 0px;
}
// margin-top: 60px;
.box {
// border-top: 1px solid rgba(0, 0, 0, 0.5);
}
}
} }
.animate { .animate {
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment