Commit 9660d88c authored by 纪泽龙's avatar 纪泽龙

配饰巡检巡查,企业数据监控,考核评价页面。

parent 9d3ad6ed
...@@ -4,61 +4,78 @@ ...@@ -4,61 +4,78 @@
*/ */
/** 基础通用 **/ /** 基础通用 **/
.pt5 { .pt5 {
padding-top: 5px; padding-top: 5px;
} }
.pr5 {
.pr5 {
padding-right: 5px; padding-right: 5px;
} }
.pb5 {
.pb5 {
padding-bottom: 5px; padding-bottom: 5px;
} }
.mt5 {
.mt5 {
margin-top: 5px; margin-top: 5px;
} }
.mr5 {
.mr5 {
margin-right: 5px; margin-right: 5px;
} }
.mb5 {
.mb5 {
margin-bottom: 5px; margin-bottom: 5px;
} }
.mb8 {
.mb8 {
margin-bottom: 8px; margin-bottom: 8px;
} }
.ml5 {
.ml5 {
margin-left: 5px; margin-left: 5px;
} }
.mt10 {
.mt10 {
margin-top: 10px; margin-top: 10px;
} }
.mr10 {
.mr10 {
margin-right: 10px; margin-right: 10px;
} }
.mb10 {
.mb10 {
margin-bottom: 10px; margin-bottom: 10px;
} }
.ml0 {
.ml0 {
margin-left: 10px; margin-left: 10px;
} }
.mt20 {
.mt20 {
margin-top: 20px; margin-top: 20px;
} }
.mr20 {
.mr20 {
margin-right: 20px; margin-right: 20px;
} }
.mb20 {
.mb20 {
margin-bottom: 20px; margin-bottom: 20px;
} }
.m20 {
.m20 {
margin-left: 20px; margin-left: 20px;
} }
.el-dialog:not(.is-fullscreen){ .el-dialog:not(.is-fullscreen) {
margin-top: 6vh !important; margin-top: 6vh !important;
} }
.el-table {
.el-table { .el-table__header-wrapper,
.el-table__header-wrapper, .el-table__fixed-header-wrapper { .el-table__fixed-header-wrapper {
th { th {
word-break: break-word; word-break: break-word;
background-color: #f8f8f9; background-color: #f8f8f9;
...@@ -67,155 +84,156 @@ ...@@ -67,155 +84,156 @@
font-size: 13px; font-size: 13px;
} }
} }
.el-table__body-wrapper { .el-table__body-wrapper {
.el-button [class*="el-icon-"] + span { .el-button [class*="el-icon-"]+span {
margin-left: 1px; margin-left: 1px;
} }
} }
} }
/** 表单布局 **/ /** 表单布局 **/
.form-header { .form-header {
font-size:15px; font-size: 15px;
color:#6379bb; color: #6379bb;
border-bottom:1px solid #ddd; border-bottom: 1px solid #ddd;
margin:8px 10px 25px 10px; margin: 8px 10px 25px 10px;
padding-bottom:5px padding-bottom: 5px
} }
/** 表格布局 **/ /** 表格布局 **/
.pagination-container { .pagination-container {
position: relative; position: relative;
height: 25px; height: 25px;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 15px; margin-top: 15px;
padding: 10px 20px !important; padding: 10px 20px !important;
} }
/* tree border */ /* tree border */
.tree-border { .tree-border {
margin-top: 5px; margin-top: 5px;
border: 1px solid #e5e6e7; border: 1px solid #e5e6e7;
background: #FFFFFF none; background: #FFFFFF none;
border-radius:4px; border-radius: 4px;
} }
.pagination-container .el-pagination { .pagination-container .el-pagination {
right: 0; right: 0;
position: absolute; position: absolute;
} }
.el-table .fixed-width .el-button--mini { .el-table .fixed-width .el-button--mini {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
width: inherit; width: inherit;
} }
.el-tree-node__content > .el-checkbox { .el-tree-node__content>.el-checkbox {
margin-right: 8px; margin-right: 8px;
} }
.list-group-striped > .list-group-item { .list-group-striped>.list-group-item {
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
border-radius: 0; border-radius: 0;
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
} }
.list-group { .list-group {
padding-left: 0px; padding-left: 0px;
list-style: none; list-style: none;
} }
.list-group-item { .list-group-item {
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
border-top: 1px solid #e7eaec; border-top: 1px solid #e7eaec;
margin-bottom: -1px; margin-bottom: -1px;
padding: 11px 0px; padding: 11px 0px;
font-size: 13px; font-size: 13px;
} }
.pull-right { .pull-right {
float: right !important; float: right !important;
} }
.el-card__header { .el-card__header {
padding: 14px 15px 7px; padding: 14px 15px 7px;
min-height: 40px; min-height: 40px;
} }
.el-card__body { .el-card__body {
padding: 15px 20px 20px 20px; padding: 15px 20px 20px 20px;
} }
.card-box { .card-box {
padding-right: 15px; padding-right: 15px;
padding-left: 15px; padding-left: 15px;
margin-bottom: 10px; margin-bottom: 10px;
} }
/* button color */ /* button color */
.el-button--cyan.is-active, .el-button--cyan.is-active,
.el-button--cyan:active { .el-button--cyan:active {
background: #20B2AA; background: #20B2AA;
border-color: #20B2AA; border-color: #20B2AA;
color: #FFFFFF; color: #FFFFFF;
} }
.el-button--cyan:focus, .el-button--cyan:focus,
.el-button--cyan:hover { .el-button--cyan:hover {
background: #48D1CC; background: #48D1CC;
border-color: #48D1CC; border-color: #48D1CC;
color: #FFFFFF; color: #FFFFFF;
} }
.el-button--cyan { .el-button--cyan {
background-color: #20B2AA; background-color: #20B2AA;
border-color: #20B2AA; border-color: #20B2AA;
color: #FFFFFF; color: #FFFFFF;
} }
/* text color */ /* text color */
.text-navy { .text-navy {
color: #1ab394; color: #1ab394;
} }
.text-primary { .text-primary {
color: inherit; color: inherit;
} }
.text-success { .text-success {
color: #1c84c6; color: #1c84c6;
} }
.text-info { .text-info {
color: #23c6c8; color: #23c6c8;
} }
.text-warning { .text-warning {
color: #f8ac59; color: #f8ac59;
} }
.text-danger { .text-danger {
color: #ed5565; color: #ed5565;
} }
.text-muted { .text-muted {
color: #888888; color: #888888;
} }
/* image */ /* image */
.img-circle { .img-circle {
border-radius: 50%; border-radius: 50%;
} }
.img-lg { .img-lg {
width: 120px; width: 120px;
height: 120px; height: 120px;
} }
.avatar-upload-preview { .avatar-upload-preview {
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translate(50%, -50%); transform: translate(50%, -50%);
...@@ -224,16 +242,23 @@ ...@@ -224,16 +242,23 @@
border-radius: 50%; border-radius: 50%;
box-shadow: 0 0 4px #ccc; box-shadow: 0 0 4px #ccc;
overflow: hidden; overflow: hidden;
} }
/* 拖拽列样式 */ /* 拖拽列样式 */
.sortable-ghost{ .sortable-ghost {
opacity: .8; opacity: .8;
color: #fff!important; color: #fff !important;
background: #42b983!important; background: #42b983 !important;
} }
.top-right-btn { .top-right-btn {
position: relative; position: relative;
float: right; float: right;
} }
@media (max-width: 1100px) {
.amap-info {
transform-origin: 5% -100% !important;
transform: scale(.6) !important;
}
}
\ No newline at end of file
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-08-24 11:23:42 * @LastEditTime: 2022-08-24 13:43:01
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @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: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
...@@ -739,13 +739,12 @@ export default { ...@@ -739,13 +739,12 @@ export default {
.typelist-divZ { .typelist-divZ {
width: 400px; width: 400px;
// height: 30px; // height: 30px;
z-index: 9999; z-index: 9998;
position: fixed; position: fixed;
top: 85px; top: 85px;
left: 50%; left: 50%;
margin-left: -200px; margin-left: -200px;
.list { .list {
z-index: 9999;
float: left; float: left;
margin-left: 15px; margin-left: 15px;
color: #fff; color: #fff;
......
1111
<template> <template>
<div class="exa"> <div class="exa">
<div class="exaone"> <div class="exaone">
...@@ -6,34 +6,73 @@ ...@@ -6,34 +6,73 @@
<div class="exaleft"> <div class="exaleft">
<div style="color: #188df0">优秀</div> <div style="color: #188df0">优秀</div>
<div>考核级别</div> <div>考核级别</div>
<div style="width: 30px;border-bottom: 1px solid #188df0;margin-top: 10px"></div> <div
style="
width: 30px;
border-bottom: 1px solid #188df0;
margin-top: 10px;
"
></div>
</div> </div>
<div class="exacenter" id="myChartpieone" :style="{width: '250px', height: '100%'}"></div> <div
class="exacenter"
id="myChartpieone"
:style="{ width: '250px', height: '100%' }"
></div>
<div class="exaright"> <div class="exaright">
<div style="color: #188df0"> <div style="color: #188df0">
<span>3</span> <span>3</span>
<img src="../../assets/up.png" style="width: 15px;height: 12px;margin-bottom: 3px"> <img
src="../../assets/up.png"
style="width: 15px; height: 12px; margin-bottom: 3px"
/>
</div> </div>
<div>排名</div> <div>排名</div>
<div style="width: 30px;border-bottom: 1px solid #188df0;margin-top: 10px"></div> <div
style="
width: 30px;
border-bottom: 1px solid #188df0;
margin-top: 10px;
"
></div>
</div> </div>
</div> </div>
<div class="topright"> <div class="topright">
<div class="exatop">2021年度全县共处置<span style="color: #b65bff;font-size: 20px;">367件</span>燃气事故,事故办结率<span style="color: red;font-size: 20px;">100%</span>,平均办结时效<span style="color: #1c84c6;font-size: 20px;">24小时</span>;</div> <div class="exatop">
<div class="exatop">共组织燃气取暖专项排查、检查任务<span style="color: #2934ff;font-size: 20px;">256次</span>,燃气企业日常巡查<span style="color: #ffbc00;font-size: 20px;">566次</span>,整改<span style="color: red;font-size: 20px;">765次</span>安全隐患。</div> 2021年度全县共处置<span style="color: #b65bff; font-size: 20px"
<div class="exatop">共寄到投诉<span style="color: #1c84c6;font-size: 20px;">271次</span>,已全部处置完成。</div> >367件</span
>燃气事故,事故办结率<span style="color: red; font-size: 20px"
>100%</span
>,平均办结时效<span style="color: #1c84c6; font-size: 20px"
>24小时</span
>;
</div>
<div class="exatop">
共组织燃气取暖专项排查、检查任务<span
style="color: #2934ff; font-size: 20px"
>256次</span
>,燃气企业日常巡查<span style="color: #ffbc00; font-size: 20px"
>566次</span
>,整改<span style="color: red; font-size: 20px">765次</span
>安全隐患。
</div>
<div class="exatop">
共寄到投诉<span style="color: #1c84c6; font-size: 20px">271次</span
>,已全部处置完成。
</div>
<div class="exabottom"> <div class="exabottom">
<div class="bottoml">全年燃气总结:</div> <div class="bottoml">全年燃气总结:</div>
<div class="bottomr"> <div class="bottomr">
燃气监管由排名、区域、企业名称、经营类别、燃气事故(件),隐患整治(次),投诉处置(件)、考核得分、考核结果组成。 燃气监管由排名、区域、企业名称、经营类别、燃气事故(件),隐患整治(次),投诉处置(件)、考核得分、考核结果组成。
共组织燃区隐患装箱排查、检查任务677次,燃气企业日常巡查344次; 共组织燃区隐患装箱排查、检查任务677次,燃气企业日常巡查344次;
2021年度全县共处置367件燃气事故,事故办结率100%,平均办结时效24小时;共组织燃气隐患专项排查、检查任务256次,燃气企业日常巡查566次,整改765次安全隐患。共接到投诉271次,已经全部处置完成。</div> 2021年度全县共处置367件燃气事故,事故办结率100%,平均办结时效24小时;共组织燃气隐患专项排查、检查任务256次,燃气企业日常巡查566次,整改765次安全隐患。共接到投诉271次,已经全部处置完成。
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="exatwo"> <div class="exatwo">
<div class="exatwobanner"> <div class="exatwobanner">
<div style="font-size: 22px;margin-left: 5%;">企业排名</div> <div style="font-size: 22px; margin-left: 5%">企业排名</div>
</div> </div>
<div class="exatwoul"> <div class="exatwoul">
<div> <div>
...@@ -52,16 +91,16 @@ ...@@ -52,16 +91,16 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(user,index) in stu"> <tr v-for="(user, index) in stu" :key="index + 1">
<td>{{index+1}}</td> <td>{{ index + 1 }}</td>
<td>{{user.name}}</td> <td>{{ user.name }}</td>
<td>{{user.type}}</td> <td>{{ user.type }}</td>
<td>{{user.num}}</td> <td>{{ user.num }}</td>
<td>{{user.price}}</td> <td>{{ user.price }}</td>
<td>{{user.yh}}</td> <td>{{ user.yh }}</td>
<td>{{user.ts}}</td> <td>{{ user.ts }}</td>
<td>{{user.kh}}</td> <td>{{ user.kh }}</td>
<td>{{user.jg}}</td> <td>{{ user.jg }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
...@@ -72,62 +111,218 @@ ...@@ -72,62 +111,218 @@
</template> </template>
<script> <script>
export default { export default {
components: {}, components: {},
data() { data() {
return{ return {
user:{name:'',type:'',num:'',price:''}, user: { name: "", type: "", num: "", price: "" },
stu:[ stu: [
{'name': '河北省石家庄平山县', 'type': '中燃翔科','num':'管道燃气','price':'0件','yh':'50次','ts':'20次','kh': 100,'jg':'优秀'}, {
{'name': '河北省石家庄平山县', 'type': '中诚燃气','num':'管道燃气','price':'0件','yh':'42次','ts':'10次','kh': 100,'jg':'优秀'}, name: "河北省石家庄平山县",
{'name': '河北省石家庄平山县', 'type': '敬业集团','num':'瓶装燃气','price':'0件','yh':'30次','ts':'20次','kh': 100,'jg':'优秀'}, type: "中燃翔科",
{'name': '河北省石家庄平山县', 'type': '盈德气体','num':'瓶装燃气','price':'0件','yh':'70次','ts':'18次','kh': 90,'jg':'良好'}, num: "管道燃气",
{'name': '河北省石家庄平山县', 'type': '石家庄柏坡正元化肥有限公司','num':'瓶装燃气','price':'0件','yh':'46次','ts':'10次','kh': 100,'jg':'优秀'}, price: "0件",
{'name': '河北省石家庄平山县', 'type': '平山县顺诚燃气有限公司 -','num':'城镇燃气','price':'0件','yh':'50次','ts':'10次','kh': 100,'jg':'优秀'}, yh: "50次",
{'name': '河北省石家庄平山县', 'type': '河北玺竑能源有限公司','num':'汽车加气','price':'0件','yh':'43次','ts':'25次','kh': 100,'jg':'优秀'}, ts: "20次",
{'name': '河北省石家庄平山县', 'type': '石家庄新捷燃气运输有限公司','num':'瓶装燃气','price':'0件','yh':'71次','ts':'20次','kh': 100,'jg':'优秀'}, kh: 100,
{'name': '河北省石家庄平山县', 'type': '中裕燃气公司','num':'天然气经营','price':'0件','yh':'56次','ts':'14次','kh': 100,'jg':'优秀'}, jg: "优秀",
{'name': '河北省石家庄平山县', 'type': '石家庄华玉燃气有限公司汽车天然气加气站','num':'汽车加气','price':'0件','yh':'33次','ts':'20次','kh': 100,'jg':'优秀'}, },
{'name': '河北省石家庄平山县', 'type': '河北天然气华建CNG加气站','num':'汽车加气','price':'0件','yh':'43次','ts':'29次','kh': 100,'jg':'优秀'}, {
{'name': '河北省石家庄平山县', 'type': '顺诚燃气加气站','num':'汽车加气','price':'0件','yh':'54次','ts':'27次','kh': 100,'jg':'优秀'}, name: "河北省石家庄平山县",
{'name': '河北省石家庄平山县', 'type': '平山博闵加气站','num':'汽车加气','price':'0件','yh':'38次','ts':'16次','kh': 100,'jg':'优秀'}, type: "中诚燃气",
{'name': '河北省石家庄平山县', 'type': '平山县平安天然气有限公司','num':'汽车加气','price':'0件','yh':'54次','ts':'11次','kh': 100,'jg':'优秀'}, num: "管道燃气",
{'name': '河北省石家庄平山县', 'type': '平山县烟堡村','num':'管道燃气','price':'0件','yh':'26次','ts':'10次','kh': 100,'jg':'优秀'}, price: "0件",
{'name': '河北省石家庄平山县', 'type': '平山县西石桥','num':'管道燃气','price':'0件','yh':'19次','ts':'11次','kh': 92,'jg':'良好'}, yh: "42次",
{'name': '河北省石家庄平山县', 'type': '河北泽宏科技股份有限公司','num':'管道燃气','price':'0件','yh':'10次','ts':'0次','kh': 100,'jg':'优秀'}, ts: "10次",
],} kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "敬业集团",
num: "瓶装燃气",
price: "0件",
yh: "30次",
ts: "20次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "盈德气体",
num: "瓶装燃气",
price: "0件",
yh: "70次",
ts: "18次",
kh: 90,
jg: "良好",
},
{
name: "河北省石家庄平山县",
type: "石家庄柏坡正元化肥有限公司",
num: "瓶装燃气",
price: "0件",
yh: "46次",
ts: "10次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "平山县顺诚燃气有限公司 -",
num: "城镇燃气",
price: "0件",
yh: "50次",
ts: "10次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "河北玺竑能源有限公司",
num: "汽车加气",
price: "0件",
yh: "43次",
ts: "25次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "石家庄新捷燃气运输有限公司",
num: "瓶装燃气",
price: "0件",
yh: "71次",
ts: "20次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "中裕燃气公司",
num: "天然气经营",
price: "0件",
yh: "56次",
ts: "14次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "石家庄华玉燃气有限公司汽车天然气加气站",
num: "汽车加气",
price: "0件",
yh: "33次",
ts: "20次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "河北天然气华建CNG加气站",
num: "汽车加气",
price: "0件",
yh: "43次",
ts: "29次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "顺诚燃气加气站",
num: "汽车加气",
price: "0件",
yh: "54次",
ts: "27次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "平山博闵加气站",
num: "汽车加气",
price: "0件",
yh: "38次",
ts: "16次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "平山县平安天然气有限公司",
num: "汽车加气",
price: "0件",
yh: "54次",
ts: "11次",
kh: 100,
jg: "优秀",
}, },
mounted () { {
name: "河北省石家庄平山县",
type: "平山县烟堡村",
num: "管道燃气",
price: "0件",
yh: "26次",
ts: "10次",
kh: 100,
jg: "优秀",
},
{
name: "河北省石家庄平山县",
type: "平山县西石桥",
num: "管道燃气",
price: "0件",
yh: "19次",
ts: "11次",
kh: 92,
jg: "良好",
},
{
name: "河北省石家庄平山县",
type: "河北泽宏科技股份有限公司",
num: "管道燃气",
price: "0件",
yh: "10次",
ts: "0次",
kh: 100,
jg: "优秀",
},
],
};
},
mounted() {
this.drawLine(); this.drawLine();
}, },
methods: { methods: {
drawLine() { drawLine() {
// 基于准备好的dom,初始化echarts实例 // 基于准备好的dom,初始化echarts实例
let myChart1 = this.$echarts.init(document.getElementById("myChartpieone")); let myChart1 = this.$echarts.init(
document.getElementById("myChartpieone")
);
// 绘制图表 // 绘制图表
myChart1.setOption({ myChart1.setOption({
color:['#5ff76a','#1890ff'], color: ["#5ff76a", "#1890ff"],
grid: { grid: {
bottom: "2%", bottom: "2%",
containLabel: true, containLabel: true,
}, },
series: [ series: [
{ {
name: 'Access From', name: "Access From",
type: 'pie', type: "pie",
radius: ['60%', '80%'], radius: ["60%", "80%"],
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: false, hoverAnimation: false,
silent: true, silent: true,
itemStyle: { itemStyle: {
borderRadius: 5, borderRadius: 5,
borderColor: '#fff', borderColor: "#fff",
borderWidth: 2 borderWidth: 2,
}, },
label: { label: {
show: false, show: false,
position: 'center', position: "center",
normal: { normal: {
show: true, show: true,
formatter: "{c}分", formatter: "{c}分",
...@@ -137,25 +332,25 @@ ...@@ -137,25 +332,25 @@
}, },
}, },
labelLine: { labelLine: {
show: false show: false,
}, },
data: [ data: [
{ value: 15, name: 'Search Engine' }, { value: 15, name: "Search Engine" },
{ value: 85, name: 'Direct' }, { value: 85, name: "Direct" },
] ],
} },
] ],
}); });
}
}, },
} },
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.exa{ .exa {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.exaone{ .exaone {
width: 100%; width: 100%;
height: 250px; height: 250px;
background: url(../../assets/exa2.png); background: url(../../assets/exa2.png);
...@@ -163,15 +358,26 @@ ...@@ -163,15 +358,26 @@
background-size: 100% 100%; background-size: 100% 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
}
@media (max-width: 1100px) {
.exaone {
overflow: hidden !important;
}
.exatop{
margin-top:5px !important;
} }
.topleft{ .bottomr{
width: 100% !important;
}
}
.topleft {
width: 40%; width: 40%;
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
padding: 0 6% 0 4%; padding: 0 6% 0 4%;
} }
.exaleft{ .exaleft {
width: 100px; width: 100px;
height: 30%; height: 30%;
display: flex; display: flex;
...@@ -180,8 +386,8 @@ ...@@ -180,8 +386,8 @@
align-items: center; align-items: center;
margin-top: 80px; margin-top: 80px;
font-size: 20px; font-size: 20px;
} }
.exaright{ .exaright {
width: 100px; width: 100px;
height: 30%; height: 30%;
display: flex; display: flex;
...@@ -190,97 +396,98 @@ ...@@ -190,97 +396,98 @@
align-items: center; align-items: center;
margin-top: 80px; margin-top: 80px;
font-size: 20px; font-size: 20px;
} }
.exaline{ .exaline {
width: 40px; width: 40px;
height: 1px; height: 1px;
background: #00c3f1; background: #00c3f1;
margin-top: 10px; margin-top: 10px;
} }
.topright{ .topright {
width: 60%; width: 60%;
height: 100%; height: 100%;
padding: 0 30px 0 0; padding: 0 30px 0 0;
} }
.exatop{ .exatop {
text-align: right; text-align: right;
margin-top: 15px; margin-top: 15px;
} }
.exabottom{ .exabottom {
width: 100%; width: 100%;
padding: 10px 30px; padding: 10px 30px;
} }
.bottoml{ .bottoml {
font-size: 20px; font-size: 20px;
float: left; float: left;
} }
.bottomr{ .bottomr {
width: 80%; width: 80%;
height: 100px; height: 100px;
overflow: auto; overflow: auto;
float: left; float: left;
} }
.exatwo{ .exatwo {
width: 100%; width: 100%;
height: 600px; height: 600px;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 20px; margin-top: 20px;
} }
.exatwobanner{ .exatwobanner {
width: 92%; width: 92%;
height: 35px; height: 35px;
margin-left: 4%; margin-left: 4%;
background: url(../../assets/exa1.png); background: url(../../assets/exa1.png);
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.exatwoul{ .exatwoul {
width: 100%; width: 100%;
height: 525px; height: 525px;
overflow: auto; overflow: auto;
padding: 0 30px; padding: 0 30px;
margin-top: 25px; margin-top: 25px;
} }
.table{ .table {
table-layout:fixed; table-layout: fixed;
border: none; border: none;
border-collapse: collapse; border-collapse: collapse;
background: white; background: white;
text-align: center; text-align: center;
margin-top: 10px; margin-top: 10px;
thead{ thead {
tr{ tr {
color: white; color: white;
height: 50px; height: 50px;
th{ th {
color: #383737; color: #383737;
background: #fff; background: #fff;
font-size: 20px; font-size: 20px;
min-width: 100px; min-width: 100px;
position:-webkit-sticky; position: -webkit-sticky;
position:sticky; position: sticky;
top:0; top: 0;
z-index: 3; z-index: 3;
} }
} }
} }
tbody{ tbody {
tr{ tr {
height: 30px; height: 30px;
color: black; color: black;
td{ td {
width: 12%; width: 12%;
font-size: 14px; font-size: 14px;
position:-webkit-sticky; position:sticky; position: -webkit-sticky;
position: sticky;
} }
} }
tr:nth-child(odd){ tr:nth-child(odd) {
background: #ededed; background: #ededed;
color: #188df0; color: #188df0;
} }
tr:nth-child(even){ tr:nth-child(even) {
height: 40px; height: 40px;
} }
} }
} }
</style> </style>
<!--
* @Author: your name
* @Date: 2022-03-25 17:15:31
* @LastEditTime: 2022-03-29 10:09:52
* @LastEditors: Please set LastEditors
* @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/CzCard.vue
-->
<template>
<div class="czcard">
<my-collapse
title="场站"
ref="myCollapse"
:listNum="czList.filter((item) => item.show).length"
>
<template v-slot:chackbox>
<FilterVue
:filterList="filterList"
@fliterTypeChange="fliterTypeChange"
/>
</template>
<template #container>
<div class="container" :class="{ start: getShowNum }">
<div
v-for="(item, index) in czList"
:key="item.deviceName + index"
v-show="item.show"
>
<CzItem ref="czItem" :list="item" v-if="item.show" />
</div>
</div>
</template>
</my-collapse>
</div>
</template>
<script>
import MyCollapse from "./MyCollapse";
import CzItem from "./CzItem";
import FilterVue from "./FilterVue";
export default {
// 场站
components: {
MyCollapse,
CzItem,
FilterVue,
},
data() {
return {
carHide: true,
addStartNum: 3,
filterList: [
{ value: "全部", count: 6, type: "all" },
{ value: "加气站", count: 2, type: 1 },
{ value: "门站", count: 0, type: 2 },
{ value: "调压站", count: 0, type: 3 },
{ value: "储备站", count: 0, type: 4 },
{ value: "气化站", count: 4, type: 5 },
],
deviceTypeArr: [1, 2, 3, 4],
czList: [
{
deviceName: "中诚燃气门站",
state: 1,
a: 12,
b: 57.7,
c: 0.46,
d: 54.2,
// e: 56,
image: "",
show: true,
type: 1,
},
{
deviceName: "平山中燃气站",
state: 1,
a: 13.1,
b: 64.3,
c: 0.51,
d: 48.2,
// e: 56,
image: "",
show: true,
type: 1,
},
// {
// deviceName: "门站",
// state: 2,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 2,
// },
// {
// deviceName: "调压站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 3,
// },
// {
// deviceName: "储备站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 4,
// },
{
deviceName: "隆和气化站",
state: 1,
a: 15.2,
b: 52.9,
c: 0.49,
d: 54,
// e: 56,
image: "",
show: true,
type: 5,
},
{
deviceName: "温塘气化站",
state: 1,
a: 12.6,
b: 61.8,
c: 0.47,
d: 49,
// e: 56,
image: "",
show: true,
type: 5,
},
{
deviceName: "93701部队气化站",
state: 1,
a: 14.6,
b: 56.5,
c: 0.58,
d: 47.6,
// e: 56,
image: "",
show: true,
type: 5,
},
{
deviceName: "隆城绿都气化站",
state: 1,
a: 12.5,
b: 54,
c: 0.52,
d: 50,
// e: 56,
image: "",
show: true,
type: 5,
},
// {
// deviceName: "储备站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 4,
// },
],
};
},
computed: {
// 计算有多少个展示的对象,如果小于3个,就把justify-content: space-between;取消
getShowNum() {
return this.czList.filter((item) => item.show).length < this.addStartNum;
},
},
mounted() {
this.changeAddStartNum();
},
methods: {
hide() {
this.carHide = !this.carHide;
// this.myCollapse();
},
// 根据父子元素自动计算是否需要添加值start
changeAddStartNum() {
const czItem = this.$refs.czItem;
let czItemWidth;
// 组件有可能是一个数组,所以要这样判断
if (Array.isArray(czItem)) {
const { width } = czItem[0].$el.getBoundingClientRect();
czItemWidth = width;
} else {
const { width } = czItem.$el.getBoundingClientRect();
czItemWidth = width;
}
// 取出collap的宽
const { width: CollapseWidth } =
this.$refs.myCollapse.$el.getBoundingClientRect();
// 得到最小的承载数量
this.addStartNum = Math.floor(CollapseWidth / czItemWidth);
},
//过滤选择
fliterTypeChange(data) {
this.filter([...data]);
// 改变大小,因为动画原因加个延迟
// this.$nextTick(() => {
// setTimeout(()=>{
// this.myCollapse()
// }, 300);
// });
},
myCollapse() {
// this.$refs.myCollapse.getHeight();
},
// 过滤对象
filter(arr) {
this.czList.forEach((item) => {
const { type } = item;
if (arr.includes(type)) {
item.show = true;
} else {
item.show = false;
}
});
},
},
};
</script>
<style lang="scss" scoped>
.container {
width: 100%;
flex-wrap: wrap;
display: flex;
&.start {
justify-content: flex-start;
& > div {
// margin-right: 50px;
}
}
& > div {
margin-bottom: 20px;
margin-left: 1%;
width: 24%;
min-width: 295px;
border: 1px solid #e6ebf5;
border-radius: 4px;
box-sizing: border-box;
}
}
.flex {
display: flex;
justify-content: space-between;
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-29 09:41:23 * @Date: 2022-03-29 09:41:23
* @LastEditTime: 2022-03-29 11:08:25 * @LastEditTime: 2022-08-25 17:06:40
* @LastEditors: Please set LastEditors * @LastEditors: 纪泽龙 jizelong@qq.com
* @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/Filter.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData/Filter.vue
--> -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span <span
class="text" class="text"
:class="{ :class="{
active: deviceTypeArr.length == filterList.length - 1 active: deviceTypeArr.length == filterList.length - 1,
}" }"
@click="fliterTypeChange(item)" @click="fliterTypeChange(item)"
>{{ item.value }} >{{ item.value }}
...@@ -83,6 +83,11 @@ export default { ...@@ -83,6 +83,11 @@ export default {
.fliter-vue { .fliter-vue {
display: flex; display: flex;
} }
@media (max-width: 1100px) {
.filter {
margin-right: 20px !important;
}
}
.filter { .filter {
margin-right: 30px; margin-right: 30px;
margin-top: 5px; margin-top: 5px;
...@@ -112,7 +117,7 @@ export default { ...@@ -112,7 +117,7 @@ export default {
font-size: 10px; font-size: 10px;
position: absolute; position: absolute;
left: -12px; left: -12px;
color: rgba(0, 0, 0, .5); color: rgba(0, 0, 0, 0.5);
} }
} }
&.active { &.active {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-25 13:46:23 * @Date: 2022-03-25 13:46:23
* @LastEditTime: 2022-04-28 15:59:44 * @LastEditTime: 2022-08-25 15:32:17
* @LastEditors: Please set LastEditors * @LastEditors: 纪泽龙 jizelong@qq.com
* @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
--> -->
......
<!--
* @Author: your name
* @Date: 2022-03-25 13:46:23
* @LastEditTime: 2022-08-25 16:27:49
* @LastEditors: 纪泽龙 jizelong@qq.com
* @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
-->
<template>
<div class="">
<div class="top-card flex">
<div
class="box-card"
v-for="(item, index) in cardList"
:key="item.deviceName"
>
<div class="top flex">
<div class="top-left">
<span
class="iconfont"
:class="`icon-` + deviceIconList[index]"
></span>
<span class="text">{{ item.deviceName }}</span>
</div>
<div class="top-right flex">
<span class="text">总数</span>
<span class="count">{{ item.count }}</span>
</div>
</div>
<div class="middle flex">
<div class="first">正常</div>
<!-- 2是探测器,探测器只有报警,没有高低报 -->
<template v-if="index != 2">
<div>高报</div>
<div>低报</div>
</template>
<template v-else>
<div>报警</div>
</template>
<div class="last">离线数</div>
</div>
<div class="bottom flex">
<div class="first" v-if="index != 2">8</div>
<div class="first" v-if="index == 2">1238</div>
<!-- 2是探测器,探测器只有报警,没有高低报 -->
<template v-if="index == 0">
<div>2</div>
<div>1</div>
</template>
<template v-if="index == 1">
<div>0</div>
<div>0</div>
</template>
<template v-if="index == 2">
<div>0</div>
</template>
<div class="last" v-if="index != 1">0</div>
<div class="last" v-if="index == 1">1</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "charsData",
props: {
cardList: {
type: Array,
},
},
data() {
return {
deviceIconList: ["ylb", "llj", "tcq"],
};
},
};
</script>
<style lang="scss" scoped>
.top-card {
margin-bottom: 22px;
& > div {
flex: 1;
margin-right: 20px;
height: 212px;
background: #ffffff;
box-shadow: 2px 0px 12px 1px rgba(0, 0, 0, 0.1);
border-radius: 4px 4px 4px 4px;
border: 1px solid #e6ebf5;
box-sizing: border-box;
// padding: 34px 40px 38px;
padding: 34px 0 38px;
.top {
font-size: 15px;
margin-bottom: 46px;
padding: 0 30px;
// justify-content:space-between;
.top-left {
color: #1890ff;
.iconfont {
font-size: 20px;
margin-right: 4px;
}
.text {
font-weight: 500;
}
}
.top-right {
// padding-top: 5px;
font-size: 15px;
.text {
font-size: 16px;
font-weight: 500;
margin-right: 2px;
padding-top: 3px;
}
.count {
color: #1890ff;
font-size: 22px;
letter-spacing: 1px;
}
}
}
&:last-child {
margin-right: 0;
}
}
.middle,
.bottom {
// justify-content: space-around;
& > div {
// flex: 1;
text-align: center;
font-size: 16px;
flex: 1;
&.first {
// text-align: left;
}
&.last {
// text-align: right;
}
}
}
.middle {
margin-bottom: 20px;
& > div {
font-weight: 500;
}
}
}
.flex {
display: flex;
justify-content: space-between;
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-25 13:46:23 * @Date: 2022-03-25 13:46:23
* @LastEditTime: 2022-03-28 15:05:04 * @LastEditTime: 2022-08-25 17:02:07
* @LastEditors: Please set LastEditors * @LastEditors: 纪泽龙 jizelong@qq.com
* @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
--> -->
<template> <template>
<div class="chars-data"> <div class="chars-data">
<TopCard :cardList="cardList"/> <TopCard v-if="windowInnerWidth>1100" :cardList="cardList"/>
<CzCard/> <TopCardZ v-else :cardList="cardList"/>
<CzCard v-if="windowInnerWidth>1100" />
<CzCardZ v-else />
<Cg/> <Cg/>
<Fmj/> <Fmj/>
<Tyx/> <Tyx/>
...@@ -18,7 +20,9 @@ ...@@ -18,7 +20,9 @@
<script> <script>
import TopCard from "./TopCard"; import TopCard from "./TopCard";
import TopCardZ from "./TopCardZ";
import CzCard from "./CzCard"; import CzCard from "./CzCard";
import CzCardZ from "./CzCardZ";
import Cg from "./Cg"; import Cg from "./Cg";
import Fmj from "./Fmj"; import Fmj from "./Fmj";
import Tyx from "./Tyx"; import Tyx from "./Tyx";
...@@ -26,7 +30,9 @@ export default { ...@@ -26,7 +30,9 @@ export default {
name: "charsData", name: "charsData",
components: { components: {
TopCard, TopCard,
TopCardZ,
CzCard, CzCard,
CzCardZ,
Cg, Cg,
Fmj, Fmj,
Tyx Tyx
...@@ -39,8 +45,12 @@ export default { ...@@ -39,8 +45,12 @@ export default {
{ deviceName: "探测器", count: 1238 }, { deviceName: "探测器", count: 1238 },
], ],
deviceIconList: ["ylb", "llj", "tcq"], deviceIconList: ["ylb", "llj", "tcq"],
windowInnerWidth:0,
}; };
}, },
created() {
this.windowInnerWidth = window.innerWidth;
},
}; };
</script> </script>
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-08 17:28:57 * @Date: 2022-03-08 17:28:57
* @LastEditTime: 2022-03-28 17:20:55 * @LastEditTime: 2022-08-25 15:29:31
* @LastEditors: Please set LastEditors * @LastEditors: 纪泽龙 jizelong@qq.com
* @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/index.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/index.vue
--> -->
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
}, },
computed: { computed: {
currentTabComponent() { currentTabComponent() {
return this.isCom == 0 ? tabledata : charsData; return this.isCom === 0 ? tabledata : charsData;
}, },
}, },
methods: { methods: {
......
<!--
* @Author: your name
* @Date: 2022-04-11 15:07:47
* @LastEditTime: 2022-08-25 11:04:17
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/topChars/left.vue
-->
<template>
<div class="charsCom all-flex-h">
<div class="title">巡检巡查计划</div>
<div class="two all-flex">
<div class="left">
<div class="first">
<span class="text">巡检年度计划</span>
<span>23次</span>
</div>
<div class="second all-flex">
<div class="left">泄露监测</div>
<div class="right">防腐层监测</div>
</div>
<div class="third all-flex">
<div class="left">15次</div>
<div class="right">8次</div>
</div>
<div class="first fourth">
<div class="">泄漏检测完成比例</div>
</div>
<div class="fifth">
<div class="contant">
<Chars></Chars>
</div>
</div>
</div>
<div class="right">
<div class="first">
<span class="text">巡检完成情况</span>
<span>18次</span>
</div>
<div class="second all-flex">
<div class="left">泄露监测</div>
<div class="right">防腐层监测</div>
</div>
<div class="third all-flex">
<div class="left">10次</div>
<div class="right">8次</div>
</div>
<div class="first fourth">
<div class="">防腐层检测完成比例</div>
</div>
<div class="fifth">
<div class="contant">
<Chars color="#00C3F1"></Chars>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import Chars from "@/components/allCharsCom/Chars";
export default {
components: {
Chars,
},
};
</script>
<style lang="scss" scoped>
.charsCom {
width: 100%;
height: 100%;
color: #333333;
}
.title {
text-align: center;
font-size: 18px;
margin-bottom: 7px;
}
.two {
flex: 1;
> .left {
// margin-right: 70px;
}
> .right {
}
> div {
font-size: 10px;
width: 50%;
flex: 1;
overflow: hidden;
// display: flex;
// flex-direction: column;
}
.left,
.right {
display: flex;
flex-direction: column;
justify-content: space-between;
.first {
margin-bottom: 6px;
text-align: left;
.text {
display: inline-block;
margin-right: 8px;
}
}
.second {
width: 100%;
height: 20px;
line-height: 20px;
box-sizing: border-box;
box-shadow: 0px 0px 3px 1px #dddddd;
margin-bottom: 10px;
> div {
// flex: 1;
text-align: center;
font-size: 10px;
&.left {
color: #1d8cf3;
}
&.right {
color: #00c3f1;
}
}
}
.third {
text-align: center;
// width: 213px;
width: 100%;
margin-bottom: 10px;
}
.fifth {
flex: 1;
// background: red;
padding-top: 5px;
.contant {
width: 120px;
height: 94px;
margin: 0 auto;
}
}
}
}
</style>
<!--
* @Author: your name
* @Date: 2022-04-13 10:27:33
* @LastEditTime: 2022-08-25 15:25:15
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/components/Bottom.vue
-->
<template>
<div class="map-bottom-wrapper">
<div id="xjxcmap" class="map"></div>
<div class="left-box all-flex-h">
<div class="top">
<div class="title">巡检任务查看</div>
<div class="wrapper">
<div class="top-wrapper flex">
<div class="input-wrapper">
<el-input
v-model="searchData.task"
placeholder="点击输入任务名称"
suffix-icon="el-icon-search"
size="mini"
>
</el-input>
</div>
<div class="enter">
<el-button size="mini" @click="enter"
><span class="text">确认</span></el-button
>
</div>
<div class="reset">
<el-button size="mini" @click="reset">
<span class="text">重置</span>
<i class="el-icon-refresh el-icon--right"></i>
</el-button>
</div>
</div>
<div class="middle-wrapper flex">
<div class="left">
<el-select
v-model="searchData.unt"
placeholder="执行单位"
size="mini"
>
<el-option
size="mini"
v-for="item in unt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="middle">
<el-select
v-model="searchData.type"
placeholder="任务类型"
size="mini"
>
<el-option
v-for="item in type"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="right">
<el-select
v-model="searchData.state"
placeholder="任务状态"
size="mini"
>
<el-option
v-for="item in state"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
</div>
<div class="bottom-wrapper">
<el-date-picker
style="width: 100%"
v-model="searchData.value"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
size="mini"
value-format="yyyy-MM-dd"
>
</el-date-picker>
</div>
</div>
</div>
<div class="bottom all-flex-h">
<div ref="table" class="table">
<el-table
v-loading="loading"
:data="
tableData.filter((item, index) => {
return index >= (page - 1) * limit && index < page * limit;
})
"
style="width: 100%"
:height="tableScrollH"
ref="t"
class="t"
>
<el-table-column fixed prop="name" label="任务名称" width="90">
<template v-slot="scope">
<div :title="scope.row.name" class="zzz">
{{ scope.row.name }}
</div>
</template>
</el-table-column>
<el-table-column prop="unt" label="执行单位" width="90">
<template v-slot="scope">
<div :title="scope.row.unt" class="zzz">
{{ unt[scope.row.unt - 1].label }}
</div>
</template>
</el-table-column>
<el-table-column prop="type" label="任务类型" width="90">
<template v-slot="scope">
<div :title="scope.row.type" class="zzz">
{{ type[scope.row.type - 1].label }}
</div>
</template>
</el-table-column>
<el-table-column prop="state" label="任务状态" width="90">
<template v-slot="scope">
<div :title="scope.row.state" class="zzz">
{{ state[scope.row.state - 1].label }}
</div>
</template>
</el-table-column>
<el-table-column prop="handle" label="操作" width="90">
<template v-slot="scope">
<el-button @click="mapDo(scope.row)" type="text"
><span :class="{ target: target == scope.row.id }"
>巡检信息</span
></el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="page">
<pagination
style="width: 100%; padding: 0px !important"
:small="true"
:total="tableData.length"
:page="page"
:limit.sync="limit"
@pagination="getList"
layout="prev, pager, next, jumper"
/>
</div>
</div>
</div>
</div>
</template>
<script>
import { XjxcMap } from "@/utils/mapClass/xjxcmap";
import Null from "@/components/bigWindow/Null";
import moment from "moment";
import Pipe from "./Pipe.vue";
let arr = [
{
id: 1,
name: "燃气检测",
unt: 1,
type: 2,
state: 3,
utl: 2,
value: ["2022-4-1", "2022-4-12"],
path: "[[114.210488,38.257287],[114.21087,38.257218],[114.210664,38.25583],[114.213991,38.255507],[114.213962,38.256362],[114.213962,38.254397],[114.213962,38.255553],[114.213991,38.25412],[114.212137,38.254189],[114.212137,38.254836],[114.210812,38.254767],[114.212107,38.254836],[114.212166,38.254212],[114.213874,38.25412],[114.213991,38.255553],[114.218261,38.255137],[114.219291,38.254952],[114.218585,38.254698],[114.219321,38.254952],[114.224355,38.254605],[114.224355,38.252432],[114.224385,38.254628],[114.22306,38.254698],[114.22462,38.255091],[114.228566,38.254628],[114.224532,38.255091],[114.224385,38.256986],[114.218938,38.257287],[114.224385,38.25701],[114.224296,38.258882]]",
},
{
id: 2,
name: "燃气泄漏检测",
unt: 1,
type: 2,
state: 2,
utl: 3,
value: ["2022-4-1", "2022-4-12"],
path: "[[114.183586,38.264945],[114.181374,38.264866],[114.181441,38.265655],[114.181374,38.264866],[114.177487,38.265471],[114.177554,38.265997],[114.176851,38.265997],[114.176851,38.26626],[114.176717,38.265708],[114.169353,38.267055],[114.169793,38.272073],[114.169353,38.267038],[114.169333,38.267038],[114.165557,38.267697]]",
},
{
id: 3,
name: "入户安检",
unt: 2,
type: 3,
state: 1,
utl: 2,
value: ["2022-4-1", "2022-4-12"],
path: "[[114.206628,38.25932],[114.206688,38.259038],[114.205715,38.258193],[114.206695,38.259009],[114.206493,38.256513],[114.206194,38.256466],[114.206013,38.254239],[114.204974,38.254364],[114.205972,38.254258],[114.205511,38.250257],[114.196482,38.250445],[114.205491,38.250257],[114.21296,38.24977],[114.205511,38.250257],[114.205089,38.246589],[114.20471,38.24654],[114.204289,38.243749],[114.204709,38.243733],[114.207324,38.243577],[114.204669,38.243718],[114.204528,38.242402],[114.204208,38.240535],[114.204549,38.242449],[114.204649,38.243689],[114.20509,38.246606]]",
},
{
id: 4,
name: "探测器报警",
unt: 2,
type: 1,
state: 3,
utl: 1,
value: ["2022-4-1", "2022-4-12"],
},
{
id: 5,
name: "安装家用气体探测器",
unt: 1,
type: 3,
state: 3,
utl: 3,
value: ["2022-4-1", "2022-4-12"],
},
{
id: 6,
name: "入户安检",
unt: 1,
type: 2,
state: 3,
utl: 3,
value: ["2022-4-1", "2022-4-12"],
},
{
id: 7,
name: "探测器消警",
unt: 1,
type: 1,
state: 2,
utl: 2,
value: ["2022-4-1", "2022-4-12"],
},
{
id: 8,
name: "燃气泄漏",
unt: 1,
type: 3,
state: 2,
utl: 3,
},
{
id: 9,
name: "家用探测器报警",
unt: 1,
type: 2,
state: 3,
utl: 2,
},
{
id: 10,
name: "气体泄漏",
unt: 1,
type: 2,
state: 3,
utl: 3,
},
{
id: 11,
name: "火灾报警",
unt: 1,
type: 2,
state: 1,
utl: 2,
},
{
id: 12,
name: "入户安检",
unt: 1,
type: 1,
state: 3,
utl: 3,
},
{
id: 13,
name: "入户安检",
unt: 1,
type: 3,
state: 3,
utl: 4,
},
{
id: 14,
name: "气体泄漏",
unt: 1,
type: 3,
state: 1,
utl: 2,
},
{
id: 15,
name: "爆炸",
unt: 1,
type: 2,
state: 2,
utl: 4,
},
{
id: 16,
name: "爆炸",
unt: 1,
type: 3,
state: 3,
utl: 1,
},
{
id: 17,
name: "有毒气体泄漏",
unt: 1,
type: 3,
state: 1,
utl: 3,
},
{
id: 18,
name: "火灾",
unt: 1,
type: 3,
state: 4,
utl: 3,
},
{
id: 19,
name: "报警",
unt: 1,
type: 1,
state: 3,
utl: 3,
},
];
export default {
data() {
return {
map: null,
loading: false,
// 点击巡检信息的选中状态
target: null,
// 任务类型选项
unt: [
{ value: 1, label: "中燃翔科技" },
{ value: 2, label: "中诚燃气" },
],
type: [
{ value: 1, label: "入户安检" },
{ value: 2, label: "巡检" },
{ value: 3, label: "其他" },
],
state: [
{ value: 1, label: "派发中" },
{ value: 2, label: "已接单" },
{ value: 3, label: "已反馈" },
{ value: 4, label: "已归档" },
],
searchData: {
// 任务名称
task: "",
unt: "",
type: "",
state: "",
value: [],
},
tableScrollH: 100,
// 表格数据
tableData: arr,
page: 1,
limit: 10,
};
},
mounted() {
this.mapInit();
this.$nextTick(() => {
const dom = document.getElementsByClassName("t")[0];
dom.style.height = this.$refs.table.getBoundingClientRect().height + "px";
});
console.log(moment("2022-11-29").valueOf());
},
methods: {
mapInit() {
this.map = new XjxcMap("xjxcmap", {}, this);
},
reset() {
this.searchData = {
// 任务名称
task: "",
unt: "",
type: "",
state: "",
value: [],
};
this.enter();
},
enter() {
this.loading = true;
this.map.infowindowClose();
this.target = null;
this.map.remove();
setTimeout(() => {
this.page = 1;
const { task, unt, type, state, value } = this.searchData;
this.tableData = arr.filter((item) => {
const a = item.name.indexOf(task) >= 0;
const b = unt ? item.unt == unt : true;
const c = type ? item.type == type : true;
const d = state ? item.state == state : true;
const e =
value.length > 0
? Array.isArray(item.value) &&
moment(value[0]).valueOf() <= moment(item.value[0]).valueOf()
: true;
const f =
value.length > 0
? Array.isArray(item.value) &&
moment(value[1]).valueOf() >= moment(item.value[1]).valueOf()
: true;
return a && b && c && d && e && f;
});
this.loading = false;
}, 200);
},
getList(e) {
console.log(e);
this.loading = true;
setTimeout(() => {
this.page = e.page;
this.loading = false;
}, 200);
},
mapDo(data) {
// 暂无信息
if (!Array.isArray(eval(data.path))) {
this.msgError("暂无巡检信息");
return;
}
this.target = data.id;
this.map.remove();
this.map.create(data, Null, Pipe);
},
},
};
</script>
<style lang="scss" scoped>
.map-bottom-wrapper {
height: 100%;
position: relative;
& > .map {
height: 100%;
}
& > .left-box {
width: 320px;
position: absolute;
top: 0;
bottom: 0;
> .top {
width: 100%;
// height: 143px;
padding-bottom: 10px;
margin-bottom: 9px;
border-radius: 3px;
box-shadow: 2px 0px 10px 1px rgba(0, 0, 0, 0.1);
background: #fff;
.title {
padding: 8px 0 4px 15px;
border-bottom: 1px solid rgba(231, 231, 231, 1);
font-size: 21px;
font-weight: 400;
}
.wrapper {
padding: 6px 12px 0px 12px;
.top-wrapper {
margin-bottom: 6px;
div {
&.input-wrapper {
width: 337px;
margin-right: 3px;
}
&.enter,
&.reset {
// flex:1;
span.text {
font-size: 12px;
color: #333333;
}
}
}
}
.middle-wrapper {
width: 100%;
margin-bottom: 6px;
> div {
width: 150px;
// background: red;
}
}
}
}
> .bottom {
flex: 1;
border-radius: 3px;
box-shadow: 2px 0px 10px 1px rgba(0, 0, 0, 0.1);
background: #fff;
box-sizing: border-box;
padding: 12px 20px;
padding-bottom: 0;
justify-content: space-between;
.table {
flex: 1;
background-color: red;
.target {
color: #ffc337;
font-weight: 600;
}
}
.page {
// height: 100px;
width: 100%;
}
}
}
}
</style>
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2022-04-11 15:07:47
* @LastEditTime: 2022-08-25 15:07:26
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/topChars/left.vue
-->
<template>
<div class="charsCom all-flex-h">
<div class="title">隐患整改</div>
<div class="two all-flex">
<div class="left">
<div class="first">
<span class="text">隐患发现情况</span>
<span>20次</span>
</div>
<div class="second all-flex">
<div class="left">隐患总数</div>
<div class="right">隐患已整改数</div>
</div>
<div class="third all-flex">
<div class="left">13次</div>
<div class="right">7次</div>
</div>
</div>
<div class="right">
<div class="first">
<span class="text">隐患整改率</span>
</div>
<div class="chars-box">
<Chars color="#604AFF"></Chars>
</div>
</div>
</div>
<div class="three all-flex-h">
<div class="first">隐患原因</div>
<div ref="myChartWidth" class="chars-box">
<Chars :options="bottomOptions()" />
</div>
</div>
</div>
</template>
<script>
import Chars from "@/components/allCharsCom/Chars";
export default {
components: {
Chars,
},
data() {
return {
bottomData: [
[
{ name: "裂缝", value: 8, color: "#604AFF" },
{ name: "管道称重", value: 16, color: "#FFC337" },
{ name: "其他", value: 13, color: "#86FF5B" },
{ name: "腐蚀", value: 7, color: "#03C4F1" },
{ name: "漏气", value: 5, color: "#1F8DF3" },
],
],
};
},
methods: {
bottomOptions() {
return {
series: this.bottomData.map((data, idx) => {
const rich = {};
data
.map((item) => ({
fontsize: 12,
color: item.color,
}))
.forEach((item, index) => {
rich[`dataIndex${index}`] = item;
});
return {
type: "pie",
radius: ["68%", "80%"],
color: data.map((item) => item.color),
itemStyle: {
borderWidth: 2,
borderRadius: 10,
borderColor: "#fff",
},
label: {
alignTo: "edge",
// formatter: "{name|{b}}\n{num|{c} 个}",
formatter: (parm) => {
return `{dataIndex${parm.dataIndex}|${parm.data.name}}\n{dataIndex${parm.dataIndex}|${parm.data.value}}`;
},
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich,
},
labelLine: {
length: 15,
length2: 0,
maxSurfaceAngle: 80,
},
labelLayout: (params) => {
const { width } = this.$refs.myChartWidth.getBoundingClientRect();
const isLeft = params.labelRect.x < width / 2;
const points = params.labelLinePoints;
console.log("points",points)
// Update the end point.
points[2][0] = isLeft
? params.labelRect.x
: params.labelRect.x + params.labelRect.width;
return {
labelLinePoints: points,
};
},
data: data,
};
}),
};
},
},
};
</script>
<style lang="scss" scoped>
.charsCom {
width: 100%;
height: 100%;
color: #333333;
}
.title {
text-align: center;
font-size: 18px;
margin-bottom: 7px;
}
.two {
// flex: 1;
> .left {
// margin-right: 70px;
margin-left:10px;
.first {
margin-bottom: 6px;
width: 150px;
font-size: 10px;
}
.second {
width: 140px;
height: 20px;
line-height: 20px;
box-sizing: border-box;
box-shadow: 0px 0px 3px 1px #dddddd;
margin-bottom: 10px;
font-size: 10px;
> div {
// flex: 1;
text-align: center;
&.left {
color: #1d8cf3;
}
&.right {
color: #00c3f1;
}
}
}
.third {
text-align: center;
width: 150px;
margin-bottom: 10px;
font-size: 10px;
}
}
> .right {
.first {
text-align: center !important;
font-size: 10px;
}
.chars-box {
width: 70px;
height: 70px;
margin: 0 auto;
}
}
> div {
font-size: 16px;
flex: 1;
// display: flex;
// flex-direction: column;
}
.left,
.right {
// display: flex;
// flex-direction: column;
// justify-content: space-between;
.first {
text-align: left;
.text {
display: inline-block;
margin-right: 8px;
}
}
}
}
.three {
font-size: 16px;
flex: 1;
// background: red;
.chars-box {
flex: 1;
}
}
</style>
<!--
* @Author: your name
* @Date: 2022-04-11 15:07:47
* @LastEditTime: 2022-08-25 15:15:32
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/topChars/left.vue
-->
<template>
<div class="charsCom all-flex-h">
<div class="title">第三方施工情况</div>
<div class="two flex">
<div class="left">已备案</div>
<div class="middle">已完成</div>
<div class="right">进行中</div>
</div>
<div class="three flex">
<div class="left zzz">6</div>
<div class="middle zzz">4</div>
<div class="right zzz">2</div>
</div>
<div class="four all-flex-h">
<div class="top flex">
<div>施工单位</div>
<div>备案时间</div>
<div>施工描述</div>
</div>
<div class="scroll-wrapper">
<Scroll :dataList="arr">
<template v-slot="{ dataList }">
<ScroItem v-for="(item,index) in dataList" :key="item.companyName+index" :data="item" :index="index"/>
</template>
</Scroll>
</div>
</div>
</div>
</template>
<script>
import Scroll from "./Scroll";
import ScroItem from "./ScroItem";
export default {
components: {
Scroll,
ScroItem
},
data() {
return {
arr: [
{
companyName: "中燃祥科",
time: "2022-01-11 07:29",
text: "安装探头",
},
{
companyName: "河北泽宏",
time: "2022-01-13 07:29",
text: "安装管道",
},
{
companyName: "河北泽宏科技股份有限公司",
time: "2022-01-14 07:29",
text: "气体报警器",
},
{
companyName: "政府部门",
time: "2022-01-15 07:29",
text: "安装设备监控",
},
{
companyName: "中诚然气",
time: "2022-01-17 07:29",
text: "安装管道",
},
{
companyName: "中诚然气",
time: "2022-02-20 07:29",
text: "轻工路1号施工",
},
{
companyName: "中燃祥科",
time: "2022-02-21 07:29",
text: "轻工路1号施工",
},
{
companyName: "河北泽宏",
time: "2022-03-11 07:29",
text: "安装管道",
},
{
companyName: "河北泽宏",
time: "2022-04-16 07:29",
text: "安装设备监控",
},
// {
// companyName: 123,
// time: "2022-04-09 07:29",
// text: "大师傅阿斯蒂芬阿斯蒂芬Î",
// },
// {
// companyName: 123,
// time: "2022-04-09 07:29",
// text: "大师傅阿斯蒂芬阿斯蒂芬Î",
// },
// {
// companyName: 123,
// time: "2022-04-09 07:29",
// text: "大师傅阿斯蒂芬阿斯蒂芬Î",
// },
// {
// companyName: 123,
// time: "2022-04-09 07:29",
// text: "大师傅阿斯蒂芬阿斯蒂芬Î",
// },
// {
// companyName: 123,
// time: "2022-04-09 07:29",
// text: "大师傅阿斯蒂芬阿斯蒂芬Î",
// },
],
};
},
mounted() {},
};
</script>
<style lang="scss" scoped>
.charsCom {
width: 100%;
height: 100%;
}
.title {
text-align: center;
font-size: 18px;
margin-bottom: 22px;
}
.two {
box-shadow: 0px 0px 3px 1px #dddddd;
height: 20px;
font-size: 10px;
margin-bottom: 10px;
> div {
line-height: 20px;
flex: 1;
text-align: center;
&.left {
color: #1f8df3;
}
&.middle {
flex: 1;
color: #03c4f1;
}
&.right {
color: #ffc337;
}
}
}
.three {
font-size: 10px;
margin-bottom: 5px;
> div {
flex: 1;
line-height: 24px;
text-align: center;
}
}
.four {
flex: 1;
font-size: 10px;
// 这个解决子元素overhidden失效问题
min-height: 0;
>.top {
background: rgba(24, 144, 255, 0.1);
height: 29px;
line-height: 29px;
> div {
flex: 1;
text-align: center;
}
}
.scroll-wrapper {
// font-size: 14px;
flex: 1;
// 这个解决子元素overhidden失效问题
min-height: 0;
// background: red;
// overflow: hidden;
// position:relative;
}
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-11 14:11:04 * @Date: 2022-04-11 14:11:04
* @LastEditTime: 2022-04-14 10:45:52 * @LastEditTime: 2022-08-25 15:24:33
* @LastEditors: Please set LastEditors * @LastEditors: 纪泽龙 jizelong@qq.com
* @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/xunjianxuncha/index.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/index.vue
--> -->
...@@ -11,18 +11,22 @@ ...@@ -11,18 +11,22 @@
<div class="wrapper flex-h"> <div class="wrapper flex-h">
<div class="top flex"> <div class="top flex">
<div class="left"> <div class="left">
<Left /> <Left v-if="windowInnerWidth > 1100" />
<LeftZ v-else />
</div> </div>
<div class="middle"> <div class="middle" :class="{ z: windowInnerWidth < 1100 }">
<Middle /> <Middle v-if="windowInnerWidth > 1100" />
<MiddleZ v-else />
</div> </div>
<div class="right"> <div class="right" :class="{ z: windowInnerWidth < 1100 }">
<Right /> <Right v-if="windowInnerWidth > 1100" />
<RightZ v-else />
</div> </div>
</div> </div>
<div class="middle"></div> <div class="middle"></div>
<div class="bottom"> <div class="bottom">
<MapBottom/> <MapBottom v-if="windowInnerWidth > 1100" />
<MapBottomZ v-else />
</div> </div>
</div> </div>
</div> </div>
...@@ -30,24 +34,33 @@ ...@@ -30,24 +34,33 @@
<script> <script>
import Left from "./components/Left"; import Left from "./components/Left";
import LeftZ from "./components/LeftZ";
import Middle from "./components/Middle"; import Middle from "./components/Middle";
import MiddleZ from "./components/MiddleZ";
import Right from "./components/Right"; import Right from "./components/Right";
import RightZ from "./components/RightZ";
import MapBottom from "./components/MapBottom"; import MapBottom from "./components/MapBottom";
import MapBottomZ from "./components/MapBottomZ";
export default { export default {
components: { components: {
Left, Left,
LeftZ,
Middle, Middle,
MiddleZ,
Right, Right,
MapBottom RightZ,
MapBottom,
MapBottomZ
}, },
data() { data() {
return { return {
windowInnerWidth: 0,
}; };
}, },
mounted(){ created() {
this.windowInnerWidth = window.innerWidth;
} },
mounted() {},
}; };
</script> </script>
...@@ -72,14 +85,24 @@ export default { ...@@ -72,14 +85,24 @@ export default {
.left { .left {
width: 36.5%; width: 36.5%;
padding: 15px 24px 19px; padding: 15px 24px 19px;
overflow: hidden;
} }
.middle { .middle {
width: 35.3%; width: 35.3%;
padding: 15px 80px 19px 71px; padding: 15px 80px 19px 71px;
// padding: 15px 24px 19px;
overflow: hidden;
&.z {
padding: 15px 24px 19px;
}
} }
.right { .right {
width: 25.2%; width: 25.2%;
padding: 15px 29px; padding: 15px 29px;
overflow: hidden;
&.z {
padding: 15px 10px;
}
} }
> div { > div {
// box-shadow: 2px 0px 13px 1px rgba(0, 0, 0, 0.1); // box-shadow: 2px 0px 13px 1px rgba(0, 0, 0, 0.1);
...@@ -87,15 +110,20 @@ export default { ...@@ -87,15 +110,20 @@ export default {
border-radius: 3px; border-radius: 3px;
} }
} }
>.middle { > .middle {
margin: 5px 0; margin: 5px 0;
background: repeating-linear-gradient(135deg, transparent, transparent 3px, #D6D6D6 3px, #D6D6D6 8px); background: repeating-linear-gradient(
135deg,
transparent,
transparent 3px,
#d6d6d6 3px,
#d6d6d6 8px
);
height: 2px; height: 2px;
} }
.bottom { .bottom {
flex: 1; flex: 1;
background-color: red; background-color: red;
} }
> div { > div {
// height: 50%; // height: 50%;
......
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