Commit d19a64a2 authored by jianqian's avatar jianqian

Merge remote-tracking branch 'origin/master'

parents 9e821a91 53aad3ff
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
.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 {
...@@ -104,6 +104,15 @@ ...@@ -104,6 +104,15 @@
} }
// gis地图中底部table样式 // gis地图中底部table样式
.drawer {
// .el-button {
// color:red;
// .is-disabled {
// background-color: none;
// }
// }
}
.right-bottom-data-left { .right-bottom-data-left {
.el-table { .el-table {
background-color: rgba(0, 0, 0, 0) !important; background-color: rgba(0, 0, 0, 0) !important;
...@@ -118,11 +127,11 @@ ...@@ -118,11 +127,11 @@
.el-table__header-wrapper, .el-table__header-wrapper,
.el-table__fixed-header-wrapper { .el-table__fixed-header-wrapper {
tr { tr {
background-color: #213b5260 !important; background-color: #213b52cc !important;
} }
th { th {
word-break: break-word; word-break: break-word;
background-color: #213b5260 !important; background-color: #213b52cc !important;
color: rgba(123, 248, 244, 1); color: rgba(123, 248, 244, 1);
height: 30px; height: 30px;
font-size: 13px; font-size: 13px;
...@@ -134,13 +143,7 @@ ...@@ -134,13 +143,7 @@
} }
.el-table__body-wrapper { .el-table__body-wrapper {
.el-table__row:nth-child(2n + 1) { .el-table__row:nth-child(2n + 1) {
// background-color: #e6e6e6; background-color: #213b52b3;
background-color: #213b5260;
// &:hover {
// td {
// background-color: #f4f4f4;
// }
// }
&:hover td { &:hover td {
background-color: #7bf8f430 !important; background-color: #7bf8f430 !important;
} }
...@@ -152,20 +155,12 @@ ...@@ -152,20 +155,12 @@
} }
} }
.el-table__row:nth-child(2n) { .el-table__row:nth-child(2n) {
// background-color: #213b52; background-color: #063157cc;
background-color: #06315760;
// &:hover {
// td {
// background-color: #e6e6e6;
// }
// }
&:hover td { &:hover td {
background-color: #7bf8f430 !important; background-color: #7bf8f430 !important;
} }
td { td {
.cell { .cell {
// color: #053b6a;
color: #fff; color: #fff;
} }
} }
...@@ -388,6 +383,55 @@ ...@@ -388,6 +383,55 @@
} }
} }
// 设备巡检详情页表格样式
.inspectiondetail {
.el-table {
.el-table__header-wrapper,
.el-table__fixed-header-wrapper {
th {
word-break: break-word;
background-color: #1181e8;
color: #fff;
height: 40px;
font-size: 14px;
}
}
.el-table__body-wrapper {
.el-table__row:nth-child(2n + 1) {
background-color: #e6e6e6;
// &:hover {
// td {
// background-color: #f4f4f4;
// }
// }
td {
.cell {
color: #053b6a;
}
}
}
.el-table__row:nth-child(2n) {
background-color: #f4f4f4;
// &:hover {
// td {
// background-color: #e6e6e6;
// }
// }
td {
.cell {
color: #053b6a;
}
}
}
}
.el-table__body-wrapper {
.el-button [class*="el-icon-"] + span {
margin-left: 1px;
}
}
}
}
.ddd { .ddd {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
@change="selectChange"
> >
<el-option <el-option
v-for="item in pipeList" v-for="item in pipeList"
...@@ -200,6 +202,10 @@ export default { ...@@ -200,6 +202,10 @@ export default {
MyFileUpload, MyFileUpload,
}, },
methods: { methods: {
selectChange(e){
const arr = this.pipeList.filter(item=>item.pipeId == e);
this.form.pipeName = arr[0].pipeName;
},
show() { show() {
this.dialogVisible = true; this.dialogVisible = true;
}, },
...@@ -210,7 +216,7 @@ export default { ...@@ -210,7 +216,7 @@ export default {
this.form.iconUrl = res.url; this.form.iconUrl = res.url;
}, },
submitForm() { submitForm() {
console.log(this.form); // console.log("this.form",this.form);
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.deviceId != null) { if (this.form.deviceId != null) {
......
<template> <template>
<div class="wrapper"> <div class="wrapper">
<div class="top display-default"> <div class="top display-default">
<div class="left text">{{ obj.pipeName }}</div> <div class="left text ddd" :title="obj.pipeName">{{ obj.pipeName }}</div>
<div class="right text"> <div class="right text">
<img @click="close" src="../../assets/images/closeBtn.png" alt="" /> <img @click="close" src="../../assets/images/closeBtn.png" alt="" />
</div> </div>
...@@ -132,27 +132,30 @@ export default { ...@@ -132,27 +132,30 @@ export default {
.wrapper { .wrapper {
width: 406px; width: 406px;
// height: 488px; // height: 488px;
background: #fff; // background: #fff;
border-radius: 4px; border-radius: 4px;
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
background: rgba(7, 29, 51, 0.9);
color: #fff;
// overflow: hidden; // overflow: hidden;
&:before {
content: "";
position: absolute;
left: -20px;
top: 5px;
width: 0px;
height: 0px;
/* border: 20px solid red; */
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
/* border-left: 50px solid greenyellow; */
border-right: 30px solid #053b6a;
}
.top { .top {
width: 100%; width: 100%;
height: 51px; height: 51px;
background-color: #053b6a; // background-color: #053b6a;
background-image: url(../../assets/images/blueTopBg.png);
background-size: 100% 100%;
background-position: center;
&:before {
content: "";
position: absolute;
left: -20px;
top: 5px;
z-index: -1;
width: 33px;
height: 33px;
background-image: url(../../assets/images/blueLeftTriangle.png);
}
.text { .text {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
...@@ -187,7 +190,7 @@ export default { ...@@ -187,7 +190,7 @@ export default {
.eq-text { .eq-text {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #1d1d1d; color: #fff;
opacity: 1; opacity: 1;
& > span { & > span {
vertical-align: top; vertical-align: top;
......
...@@ -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">{{ data.deviceName }}</div> <div class="left text ddd" :title="data.deviceName">{{ data.deviceName }}</div>
<div class="right text"> <div class="right text">
<img <img
src="../../assets/images/closeBtn.png" src="../../assets/images/closeBtn.png"
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
</el-col> </el-col>
<div> <div>
<span>管道所在地址:</span> <span>设备所在地址:</span>
<span>{{ data.pipeAddr }}</span> <span>{{ data.deviceAddr }}</span>
</div> </div>
<div> <div>
<span>备注信息:</span> <span>备注信息:</span>
...@@ -88,26 +88,28 @@ export default { ...@@ -88,26 +88,28 @@ export default {
.wrapper { .wrapper {
width: 406px; width: 406px;
// height: 488px; // height: 488px;
background: #fff;
border-radius: 4px; border-radius: 4px;
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
// background: #fff;
// overflow: hidden; // overflow: hidden;
background: rgba(7, 29, 51, 0.9);
color: #fff;
.top { .top {
width: 100%; width: 100%;
height: 51px; height: 51px;
background-color: #053b6a; background-image: url(../../assets/images/blueTopBg.png);
background-size: 100% 100%;
background-position: center;
color: #fff;
&:before { &:before {
content: ""; content: "";
position: absolute; position: absolute;
left: -20px; left: -20px;
top: 5px; top: 5px;
width: 0px; z-index: -1;
height: 0px; width: 33px;
/* border: 20px solid red; */ height: 33px;
border-top: 15px solid transparent; background-image: url(../../assets/images/blueLeftTriangle.png);
border-bottom: 15px solid transparent;
/* border-left: 50px solid greenyellow; */
border-right: 30px solid #053b6a;
} }
.text { .text {
font-weight: 600; font-weight: 600;
...@@ -143,7 +145,7 @@ export default { ...@@ -143,7 +145,7 @@ export default {
.eq-text { .eq-text {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #1d1d1d; color: #fff;
opacity: 1; opacity: 1;
& > span { & > span {
vertical-align: top; vertical-align: top;
......
...@@ -349,7 +349,6 @@ export default { ...@@ -349,7 +349,6 @@ export default {
// 图片列表移除 // 图片列表移除
listRemove(e) { listRemove(e) {
this.editForm.iconUrl = ""; this.editForm.iconUrl = "";
this.fileArr = []; this.fileArr = [];
}, },
}, },
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
@change="selectChange"
> >
<el-option <el-option
v-for="item in pipeList" v-for="item in pipeList"
...@@ -201,6 +203,10 @@ export default { ...@@ -201,6 +203,10 @@ export default {
MyFileUpload, MyFileUpload,
}, },
methods: { methods: {
selectChange(e){
const arr = this.pipeList.filter(item=>item.pipeId == e);
this.form.pipeName = arr[0].pipeName;
},
show() { show() {
this.dialogVisible = true; this.dialogVisible = true;
}, },
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
@change="selectChange"
> >
<el-option <el-option
v-for="item in pipeList" v-for="item in pipeList"
...@@ -176,9 +178,9 @@ export default { ...@@ -176,9 +178,9 @@ export default {
deviceAddr: [ deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" }, { required: true, message: "请输入所在地址", trigger: "blur" },
], ],
iotNo: [ /* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }], linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [ phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" }, { required: true, message: "请输入联系电话", trigger: "blur" },
...@@ -200,6 +202,10 @@ export default { ...@@ -200,6 +202,10 @@ export default {
MyFileUpload, MyFileUpload,
}, },
methods: { methods: {
selectChange(e){
const arr = this.pipeList.filter(item=>item.pipeId == e);
this.form.pipeName = arr[0].pipeName;
},
show() { show() {
this.dialogVisible = true; this.dialogVisible = true;
//this.getPipeInfo(); //this.getPipeInfo();
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
@change="selectChange"
> >
<el-option <el-option
v-for="item in pipeList" v-for="item in pipeList"
...@@ -174,9 +176,9 @@ export default { ...@@ -174,9 +176,9 @@ export default {
deviceAddr: [ deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" }, { required: true, message: "请输入所在地址", trigger: "blur" },
], ],
iotNo: [ /* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }], linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [ phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" }, { required: true, message: "请输入联系电话", trigger: "blur" },
...@@ -198,6 +200,10 @@ export default { ...@@ -198,6 +200,10 @@ export default {
MyFileUpload, MyFileUpload,
}, },
methods: { methods: {
selectChange(e){
const arr = this.pipeList.filter(item=>item.pipeId == e);
this.form.pipeName = arr[0].pipeName;
},
show() { show() {
this.dialogVisible = true; this.dialogVisible = true;
}, },
......
...@@ -151,9 +151,9 @@ export default { ...@@ -151,9 +151,9 @@ export default {
.wrapper { .wrapper {
width: 406px; width: 406px;
max-height: 430px; max-height: 430px;
background: rgba(7, 29, 51, 0.9);
border-radius: 4px; border-radius: 4px;
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
background: rgba(7, 29, 51, 0.9);
color: #fff; color: #fff;
// overflow: hidden; // overflow: hidden;
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</el-col> </el-col>
<div> <div>
<span>管道所在地址:</span> <span>设备所在地址:</span>
<span>{{ data.pipeAddr }}</span> <span>{{ data.pipeAddr }}</span>
</div> </div>
<div> <div>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</el-col> </el-col>
<div> <div>
<span>管道所在地址:</span> <span>设备所在地址:</span>
<span>{{ data.pipeAddr }}</span> <span>{{ data.pipeAddr }}</span>
</div> </div>
<div> <div>
......
...@@ -5,16 +5,6 @@ ...@@ -5,16 +5,6 @@
:before-close="handleClose" :before-close="handleClose"
> >
<el-form :model="formData" ref="formData" :rules="rules"> <el-form :model="formData" ref="formData" :rules="rules">
<!-- <el-form-item label="选择时间段:" prop=""> -->
<!-- <el-date-picker
v-model="dateValue"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker> -->
<!-- </el-form-item> -->
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="选择值班人员:" prop="userId"> <el-form-item label="选择值班人员:" prop="userId">
...@@ -37,10 +27,23 @@ ...@@ -37,10 +27,23 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col>
<el-form-item label="请选择时间段" prop="changeTime">
<el-radio-group v-model="formData.changeTime" @change="radioChange">
<el-radio :label="1">最近2小时</el-radio>
<el-radio :label="2">最近24小时</el-radio>
<el-radio :label="3">自定义时间段</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="选择开始时间:" prop="beginTime"> <el-form-item label="选择开始时间:" prop="beginTime">
<el-date-picker <el-date-picker
:disabled="formData.changeTime != 3"
v-model="formData.beginTime" v-model="formData.beginTime"
type="datetime" type="datetime"
placeholder="选择开始时间" placeholder="选择开始时间"
...@@ -51,6 +54,7 @@ ...@@ -51,6 +54,7 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="选择结束时间:" prop="endTime"> <el-form-item label="选择结束时间:" prop="endTime">
<el-date-picker <el-date-picker
:disabled="formData.changeTime != 3"
v-model="formData.endTime" v-model="formData.endTime"
type="datetime" type="datetime"
placeholder="选择结束时间" placeholder="选择结束时间"
...@@ -97,13 +101,24 @@ export default { ...@@ -97,13 +101,24 @@ export default {
okLoading: false, okLoading: false,
formData: { formData: {
userId: null, userId: null,
changeTime: 1,
beginTime: "",
endTime: "",
}, },
changeTime: null,
workerManArr: [], workerManArr: [],
rules: { rules: {
userId: [ userId: [
{ required: true, message: "请选择值班人员", trigger: "blur" }, { required: true, message: "请选择值班人员", trigger: "blur" },
], ],
changeTime: [
{
required: true,
message: "选择查询时间",
trigger: ["blur", "change"],
},
],
beginTime: [ beginTime: [
{ required: true, message: "请输入开始时间", trigger: "blur" }, { required: true, message: "请输入开始时间", trigger: "blur" },
], ],
...@@ -120,6 +135,8 @@ export default { ...@@ -120,6 +135,8 @@ export default {
label: item.nickName, label: item.nickName,
value: item.userId, value: item.userId,
})); }));
this.formData.beginTime = moment().format("YYYY-MM-DD HH:mm:ss");
this.formData.endTime = moment().add(2, "h").format("YYYY-MM-DD HH:mm:ss");
}, },
methods: { methods: {
...@@ -128,6 +145,22 @@ export default { ...@@ -128,6 +145,22 @@ export default {
console.log(e); console.log(e);
this.formData.userId = e; this.formData.userId = e;
}, },
radioChange(e) {
if (e == 1) {
this.formData.beginTime = moment().format("YYYY-MM-DD HH:mm:ss");
this.formData.endTime = moment()
.add(2, "h")
.format("YYYY-MM-DD HH:mm:ss");
} else if (e == 2) {
this.formData.beginTime = moment().format("YYYY-MM-DD HH:mm:ss");
this.formData.endTime = moment()
.add(1, "d")
.format("YYYY-MM-DD HH:mm:ss");
} else {
this.formData.beginTime = "";
this.formData.endTime = "";
}
},
ok() { ok() {
this.$refs.formData.validate((valid) => { this.$refs.formData.validate((valid) => {
if (valid) { if (valid) {
...@@ -135,24 +168,24 @@ export default { ...@@ -135,24 +168,24 @@ export default {
moment(this.formData.beginTime).valueOf() > moment(this.formData.beginTime).valueOf() >
moment(this.formData.endTime).valueOf() moment(this.formData.endTime).valueOf()
) { ) {
this.msgError( this.msgError("开始时间不能大于结束时间");
"开始时间不能大于结束时间"
);
this.formData.endTime = ""; this.formData.endTime = "";
return; return;
} }
this.okLoading = true; this.okLoading = true;
this.formData.beginTime = moment(this.formData.beginTime).format( if (this.formData.changeTime != 3) {
"YYYY-MM-DD HH:mm:ss" this.radioChange(this.formData.changeTime);
); } else {
this.formData.endTime = moment(this.formData.endTime).format( this.formData.beginTime = moment(this.formData.beginTime).format(
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
); );
this.formData.endTime = moment(this.formData.endTime).format(
console.log(this.formData); "YYYY-MM-DD HH:mm:ss"
);
}
// console.log(this.formData);
// 找到哪个值班人员 // 找到哪个值班人员
const target = this.gaodeMap.workerManMarkArr.filter((item) => { const target = this.gaodeMap.workerManMarkArr.filter((item) => {
// console.log("userId",item.getExtData().userId) // console.log("userId",item.getExtData().userId)
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
<el-button type="primary" size="small" @click="confirmFun">确定</el-button> <el-button type="primary" size="small" @click="confirmFun">确定</el-button>
<el-button size="small" @click="$emit('dialogcancelFun')">取消</el-button> <el-button size="small" @click="$emit('dialogcancelFun')">取消</el-button>
</el-row> </el-row>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
......
This diff is collapsed.
...@@ -15,6 +15,7 @@ import workerManInfowindow from "../components/PopWindowGis/workerManInfowindow. ...@@ -15,6 +15,7 @@ import workerManInfowindow from "../components/PopWindowGis/workerManInfowindow.
import workerManView from "../components/PopWindowGis/workerManView.vue"; import workerManView from "../components/PopWindowGis/workerManView.vue";
import { getArray } from "@/utils/gassafety.js"; import { getArray } from "@/utils/gassafety.js";
import { lineColor } from "./mapCommon.js";
import { delPipe } from "@/api/device/pipe.js"; import { delPipe } from "@/api/device/pipe.js";
import vue from "../main"; import vue from "../main";
import { Card } from "element-ui"; import { Card } from "element-ui";
...@@ -32,6 +33,7 @@ export const DEVICE_TYPE = { ...@@ -32,6 +33,7 @@ export const DEVICE_TYPE = {
SMALLINSPECTOR: "workPoint", SMALLINSPECTOR: "workPoint",
TROUBLE: "trouble" TROUBLE: "trouble"
}; };
class gaodeMap { class gaodeMap {
// 所有线的数组 // 所有线的数组
polyLines = []; polyLines = [];
...@@ -112,6 +114,8 @@ class gaodeMap { ...@@ -112,6 +114,8 @@ class gaodeMap {
this.myMap.on("zoomstart", () => { this.myMap.on("zoomstart", () => {
// console.log("缩放开始") // console.log("缩放开始")
this.closeInfoWindow(); this.closeInfoWindow();
this.polyLinesColorClear()
}); });
this.myMap.on("moveend", () => { this.myMap.on("moveend", () => {
if (this.handleInfoWindowOpenFunc) { if (this.handleInfoWindowOpenFunc) {
...@@ -284,7 +288,7 @@ class gaodeMap { ...@@ -284,7 +288,7 @@ class gaodeMap {
marker.on("mouseover", this.wokerManOpen); marker.on("mouseover", this.wokerManOpen);
marker.on("mouseout", e => { marker.on("mouseout", e => {
e.target.infoWindow.close(); e.target.infoWindow.close();
this.domAllShow() this.domAllShow();
}); });
marker.on("mousedown", e => { marker.on("mousedown", e => {
...@@ -805,14 +809,15 @@ class gaodeMap { ...@@ -805,14 +809,15 @@ class gaodeMap {
//console.log("包装的数组", arr); //console.log("包装的数组", arr);
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
const item = arr[i]; const item = arr[i];
let { coordinates } = item; let { coordinates, pipePressure } = item;
console.log(pipePressure);
// //console.log("coordinates",coordinates) // //console.log("coordinates",coordinates)
// let path = coordinates ? getArray(coordinates) :[]; // let path = coordinates ? getArray(coordinates) :[];
// 字符串转二维数组 // 字符串转二维数组
let path = coordinates ? eval(coordinates) : []; let path = coordinates ? eval(coordinates) : [];
let polyline = new AMap.Polyline({ let polyline = new AMap.Polyline({
path, path,
strokeColor: "#2EE7E7", strokeColor: lineColor[pipePressure],
strokeWeight: 4, strokeWeight: 4,
strokeOpacity: 0.9, strokeOpacity: 0.9,
zIndex: 50, zIndex: 50,
...@@ -834,6 +839,8 @@ class gaodeMap { ...@@ -834,6 +839,8 @@ class gaodeMap {
//添加事件 //添加事件
polyline.on("mousedown", this.polylineMouseOver); polyline.on("mousedown", this.polylineMouseOver);
polyline.on("mouseover", () => { polyline.on("mouseover", () => {
// lineColor
polyline.setOptions({ strokeColor: "#F7FE38" }); polyline.setOptions({ strokeColor: "#F7FE38" });
}); });
polyline.on("mouseout", e => { polyline.on("mouseout", e => {
...@@ -841,7 +848,7 @@ class gaodeMap { ...@@ -841,7 +848,7 @@ class gaodeMap {
if (polyline.getExtData().lineData.alarmState == 1) { if (polyline.getExtData().lineData.alarmState == 1) {
polyline.setOptions({ strokeColor: "#ff0000" }); polyline.setOptions({ strokeColor: "#ff0000" });
} else { } else {
polyline.setOptions({ strokeColor: "#2EE7E7" }); polyline.setOptions({ strokeColor: lineColor[pipePressure] });
} }
// infoWindow.close(); // infoWindow.close();
}); });
...@@ -935,7 +942,8 @@ class gaodeMap { ...@@ -935,7 +942,8 @@ class gaodeMap {
if (item.getExtData().lineData.alarmState == 1) { if (item.getExtData().lineData.alarmState == 1) {
item.setOptions({ strokeColor: "#ff0000" }); item.setOptions({ strokeColor: "#ff0000" });
} else { } else {
item.setOptions({ strokeColor: "#2EE7E7" }); const { pipePressure } = item.getExtData().lineData;
item.setOptions({ strokeColor: lineColor[pipePressure] });
} }
} }
}); });
......
// 管道压力(1低压,2中压,3次高压,4高压) 颜色不同
export const lineColor ={
"1":"#2EE7E7",
"2":"#FFFFFF",
"3":"#18FF0F",
"4":"#DE67FA"
}
\ No newline at end of file
...@@ -193,8 +193,8 @@ ...@@ -193,8 +193,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物联网编号" prop="iotNo"> <el-form-item label="物联网编号" prop="iotNo" :rules="form.deviceType == 3 || form.deviceType == 4 ? {required: true, message: '请输入物联网编号', trigger: 'blur'}:{required:false}">
<el-input v-model="form.iotNo" placeholder="请输入物联网编号" /> <el-input v-model="form.iotNo" placeholder="请输入物联网编号"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -374,9 +374,9 @@ ...@@ -374,9 +374,9 @@
longitude: [ longitude: [
{ required: true, message: "请输入经纬度", trigger: "blur" }, { required: true, message: "请输入经纬度", trigger: "blur" },
], ],
iotNo: [ /*iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [ linkman: [
{ required: true, message: "请输入联系人", trigger: "blur" } { required: true, message: "请输入联系人", trigger: "blur" }
], ],
......
...@@ -103,6 +103,31 @@ ...@@ -103,6 +103,31 @@
:class="{ back: backFlag, opacity: drawerOpacity }" :class="{ back: backFlag, opacity: drawerOpacity }"
@click.stop="drawerdrawer" @click.stop="drawerdrawer"
> >
<div class="mapChange">
<div :class="{ active: !mapStyle }" @click="mapChange(1)">卫星地图</div>
<div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div>
</div>
<div class="pipePressure">
<!-- <div>管道压力</div> -->
<div class="hasColorBox" :style="{ color: lineColor[`1`] }">
<div :style="{ backgroundColor: lineColor[`1`] }"></div>
低压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`2`] }">
<div :style="{ backgroundColor: lineColor[`2`] }"></div>
中压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`3`] }">
<div :style="{ backgroundColor: lineColor[`3`] }"></div>
次高压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`4`] }">
<div :style="{ backgroundColor: lineColor[`4`] }"></div>
高压
</div>
</div>
<div class="switch" @click="backFlag = !backFlag"> <div class="switch" @click="backFlag = !backFlag">
<img v-if="!backFlag" src="@/assets/images/l.png" alt="" /> <img v-if="!backFlag" src="@/assets/images/l.png" alt="" />
<img v-else src="@/assets/images/r.png" alt="" /> <img v-else src="@/assets/images/r.png" alt="" />
...@@ -213,7 +238,7 @@ ...@@ -213,7 +238,7 @@
</template> </template>
<!-- 无数据 --> <!-- 无数据 -->
<template v-else> <template v-else>
<div style="padding-left: 5px">暂无数据</div> <div style="padding-left: 5px; color: #fff">暂无数据</div>
</template> </template>
</div> </div>
</el-collapse-transition> </el-collapse-transition>
...@@ -228,6 +253,8 @@ import gaodeMap from "utils/gaodeMap.js"; ...@@ -228,6 +253,8 @@ import gaodeMap from "utils/gaodeMap.js";
import { pipeAllInfoList } from "@/api/device/pipe.js"; import { pipeAllInfoList } from "@/api/device/pipe.js";
import { map, DEVICE_TYPE, mapOperateType } from "utils/gaodeMap.js"; import { map, DEVICE_TYPE, mapOperateType } from "utils/gaodeMap.js";
import { getAllDeviceInfo } from "@/api/device/deviceInfo"; import { getAllDeviceInfo } from "@/api/device/deviceInfo";
import { lineColor } from "@/utils/mapCommon.js";
export default { export default {
data() { data() {
return { return {
...@@ -238,8 +265,11 @@ export default { ...@@ -238,8 +265,11 @@ export default {
radio1: "", radio1: "",
// 1新建,2编辑,3删除,点按钮变色 // 1新建,2编辑,3删除,点按钮变色
targetNum: 0, targetNum: 0,
lineColor,
backFlag: true, backFlag: true,
// 卫星与全景地图的切换
mapStyle: true,
// 抽屉内的滚动条的高需要赋值赋值 // 抽屉内的滚动条的高需要赋值赋值
boxHeight: "", boxHeight: "",
boxWidth: "", boxWidth: "",
...@@ -307,7 +337,7 @@ export default { ...@@ -307,7 +337,7 @@ export default {
}, },
methods: { methods: {
onResize() { onResize() {
this.boxHeight = document.body.clientHeight - 81; this.boxHeight = document.body.clientHeight - 80;
this.boxWidth = document.body.clientWidth - 100; this.boxWidth = document.body.clientWidth - 100;
}, },
async initMap() { async initMap() {
...@@ -371,6 +401,15 @@ export default { ...@@ -371,6 +401,15 @@ export default {
this.gaoMap.markerShow(4, false); this.gaoMap.markerShow(4, false);
} }
}, },
// 卫星地图与全景地图的切换
mapChange(num) {
if (num == 1) {
this.mapStyle = false;
} else {
this.mapStyle = true;
}
this.gaoMap.changeMap(this.mapStyle);
},
addDevice() { addDevice() {
if (this.iconClass == "icon-create") { if (this.iconClass == "icon-create") {
this.targetNum = this.targetNum != 1 ? 1 : 0; this.targetNum = this.targetNum != 1 ? 1 : 0;
...@@ -1116,7 +1155,9 @@ input[type="radio"] { ...@@ -1116,7 +1155,9 @@ input[type="radio"] {
left: 100px; left: 100px;
width: 348px; width: 348px;
transition: 0.2s linear; transition: 0.2s linear;
background: #fff; // background: #fff;
background: rgba(6, 29, 51, 0.8);
// background: red; // background: red;
opacity: 0; opacity: 0;
&.opacity { &.opacity {
...@@ -1125,6 +1166,42 @@ input[type="radio"] { ...@@ -1125,6 +1166,42 @@ input[type="radio"] {
&.back { &.back {
left: -248px; left: -248px;
} }
.mapChange {
right: -178px;
top: 10px;
color: #fff;
position: absolute;
display: flex;
div {
padding: 4px 8px;
border: 1px solid #fff;
margin-left: 8px;
cursor: pointer;
&.active,
&:hover {
background-color: #053b6a;
color: #31eaea;
}
}
}
.pipePressure {
position: absolute;
color: #fff;
right: -80px;
top: 50px;
padding: 1px;
// background: rgba(6, 29, 51, 0.8);
.hasColorBox {
// border: 1px solid #053b6a;
padding: 2px 5px;
margin-bottom: 5px;
& > div {
display: inline-block;
width: 10px;
height: 10px;
}
}
}
.scroll { .scroll {
// height: 100%; // height: 100%;
position: relative; position: relative;
...@@ -1188,7 +1265,9 @@ input[type="radio"] { ...@@ -1188,7 +1265,9 @@ input[type="radio"] {
// border-right: 1px solid #cccccc; // border-right: 1px solid #cccccc;
box-sizing: border-box; box-sizing: border-box;
// padding-left: 5px; // padding-left: 5px;
color: #053b6a; // color: #053b6a;
color: #fff;
font-weight: 600; font-weight: 600;
} }
} }
...@@ -1200,9 +1279,14 @@ input[type="radio"] { ...@@ -1200,9 +1279,14 @@ input[type="radio"] {
color: #1d1d1d; color: #1d1d1d;
&:hover { &:hover {
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #053b6a; // border-bottom: 1px solid #053b6a;
color: #053b6a; border-bottom: 1px solid #7fc0f8;
// color: #053b6a;
font-weight: 600; font-weight: 600;
> div {
color: #7fc0f8;
}
} }
&.topActive { &.topActive {
// border-top: 1px solid #cccccc; // border-top: 1px solid #cccccc;
...@@ -1219,6 +1303,8 @@ input[type="radio"] { ...@@ -1219,6 +1303,8 @@ input[type="radio"] {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
color: #fff;
// border-right: 1px solid #cccccc; // border-right: 1px solid #cccccc;
} }
} }
...@@ -1242,14 +1328,16 @@ input[type="radio"] { ...@@ -1242,14 +1328,16 @@ input[type="radio"] {
height: 48px; height: 48px;
padding-left: 20px; padding-left: 20px;
display: flex; display: flex;
background-color: #ffffff; // background-color: #ffffff;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.5);
cursor: pointer; cursor: pointer;
position: relative; position: relative;
// box-sizing: border-box; // box-sizing: border-box;
&.firstbox { &.firstbox {
border-top: 1px solid rgba(0, 0, 0, 0.1); // border-top: 1px solid rgba(0, 0, 0, 0.1);
border-top: 1px solid rgba(5, 59, 106, 0);
// box-sizing: border-box; // box-sizing: border-box;
&:hover { &:hover {
border-top: 1px solid rgba(5, 59, 106, 0); border-top: 1px solid rgba(5, 59, 106, 0);
...@@ -1257,15 +1345,24 @@ input[type="radio"] { ...@@ -1257,15 +1345,24 @@ input[type="radio"] {
} }
&:hover { &:hover {
box-sizing: border-box; box-sizing: border-box;
background-color: rgba(5, 59, 106, 0.1); // background-color: rgba(5, 59, 106, 0.1);
background-color: #053b6a;
border-bottom: none !important; border-bottom: none !important;
.upPic {
color: #31eaea;
}
.left,
.right {
color: #31eaea !important;
}
} }
.upPic { .upPic {
display: inline-block; display: inline-block;
margin-left: 40px; margin-left: 40px;
line-height: 48px; line-height: 48px;
font-size: 16px; font-size: 16px;
color: #053b6a; // color: #053b6a;
color: #fff;
} }
> i.ju { > i.ju {
position: absolute; position: absolute;
...@@ -1289,6 +1386,7 @@ input[type="radio"] { ...@@ -1289,6 +1386,7 @@ input[type="radio"] {
color: #fff; color: #fff;
} }
> i.arrow-right { > i.arrow-right {
color: #fff !important;
position: absolute; position: absolute;
right: 32px; right: 32px;
top: 16px; top: 16px;
...@@ -1299,16 +1397,21 @@ input[type="radio"] { ...@@ -1299,16 +1397,21 @@ input[type="radio"] {
} }
&.active { &.active {
// background-color: #053b6a; // background-color: #053b6a;
.left, // .left,
.right { // .right {
color: #053b6a; // color: #053b6a;
} // }
// > i {
// color: #053b6a;
// }
> i { > i {
color: #053b6a; color: #31eaea;
font-weight: 600;
} }
} }
.left { .left {
color: #053b6a; // color: #053b6a;
color: #fff;
line-height: 48px; line-height: 48px;
margin-left: 28px; margin-left: 28px;
.iconfont { .iconfont {
...@@ -1316,7 +1419,8 @@ input[type="radio"] { ...@@ -1316,7 +1419,8 @@ input[type="radio"] {
} }
} }
.right { .right {
color: #1d1d1d; // color: #1d1d1d;
color: #fff;
line-height: 48px; line-height: 48px;
font-size: 16px; font-size: 16px;
margin-left: 4px; margin-left: 4px;
...@@ -1337,6 +1441,8 @@ input[type="radio"] { ...@@ -1337,6 +1441,8 @@ input[type="radio"] {
padding-bottom: 2px; padding-bottom: 2px;
.btn { .btn {
border-radius: 50%; border-radius: 50%;
background: none;
// width: 14px; // width: 14px;
// height: 14px; // height: 14px;
padding: 2px; padding: 2px;
...@@ -1345,6 +1451,7 @@ input[type="radio"] { ...@@ -1345,6 +1451,7 @@ input[type="radio"] {
display: inline-block; display: inline-block;
font-size: 14px; font-size: 14px;
padding: 0px 5px; padding: 0px 5px;
color: #fff;
} }
} }
} }
...@@ -1353,9 +1460,9 @@ input[type="radio"] { ...@@ -1353,9 +1460,9 @@ input[type="radio"] {
.switch { .switch {
position: absolute; position: absolute;
font-size: 30px; font-size: 30px;
right: -27px; right: -30px;
top: 50%; top: 50%;
margin-top: -30px; margin-top: -123px;
width: 40px; width: 40px;
border-radius: 40%; border-radius: 40%;
overflow: hidden; overflow: hidden;
......
<template> <template>
<div class="app-container detail" style="background-color: rgb(238, 241, 245);"> <div class="app-container detail inspectiondetail" style="background-color: rgb(238, 241, 245);">
<!-- 巡检计划信息 --> <!-- 巡检计划信息 -->
<div style="padding-top: 10px;background: #fff;height: 100%;"> <div style="padding-top: 10px;background: #fff;height: 100%;">
<el-row> <el-row>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</el-form> </el-form>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-table max-height="175px" :data="form.inspectionDataList" style="width: 89%; margin-left: 30px;"> <el-table max-height="175px" :data="form.inspectionDataList" style="width: 89%; margin-left: 30px;">
<el-table-column label="设备名称" align="center" prop="deviceName" /> <el-table-column label="设备名称" align="center" prop="deviceName" />
<el-table-column label="设备编号" align="center" prop="deviceCode" /> <el-table-column label="设备编号" align="center" prop="deviceCode" />
<el-table-column label="设备类型" align="center" prop="deviceType" /> <el-table-column label="设备类型" align="center" prop="deviceType" />
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
addBasicsInfo(this.form2).then(response => { addBasicsInfo(this.form2).then(response => {
this.msgSuccess("生成工单成功"); this.msgSuccess("生成工单成功");
this.open2 = false; this.open2 = false;
this.getList(); location.reload();
}); });
} }
}); });
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
}, },
gaoMap: "", gaoMap: "",
open: false, open: false,
title: "", title: "隐患生成工单",
inspector: [], inspector: [],
loading: false, loading: false,
alarmId: "", alarmId: "",
......
...@@ -103,6 +103,26 @@ ...@@ -103,6 +103,26 @@
<div :class="{ active: !mapStyle }" @click="mapChange(1)">卫星地图</div> <div :class="{ active: !mapStyle }" @click="mapChange(1)">卫星地图</div>
<div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div> <div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div>
</div> </div>
<!-- 管道压力 -->
<div class="pipePressure">
<!-- <div>管道压力</div> -->
<div class="hasColorBox" :style="{ color: lineColor[`1`] }">
<div :style="{ backgroundColor: lineColor[`1`] }"></div>
低压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`2`] }">
<div :style="{ backgroundColor: lineColor[`2`] }"></div>
中压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`3`] }">
<div :style="{ backgroundColor: lineColor[`3`] }"></div>
次高压
</div>
<div class="hasColorBox" :style="{ color: lineColor[`4`] }">
<div :style="{ backgroundColor: lineColor[`4`] }"></div>
高压
</div>
</div>
<div class="switch" @click="backFlag = !backFlag"> <div class="switch" @click="backFlag = !backFlag">
<img v-if="!backFlag" src="@/assets/images/l.png" alt="" /> <img v-if="!backFlag" src="@/assets/images/l.png" alt="" />
<img v-else src="@/assets/images/r.png" alt="" /> <img v-else src="@/assets/images/r.png" alt="" />
...@@ -295,6 +315,7 @@ import Right from "./components/Right.vue"; ...@@ -295,6 +315,7 @@ import Right from "./components/Right.vue";
import CreateWork from "./components/CreateWork.vue"; import CreateWork from "./components/CreateWork.vue";
import CreateWorkTrouble from "./components/CreateWorkTrouble.vue"; import CreateWorkTrouble from "./components/CreateWorkTrouble.vue";
import { getInspectorLocations } from "@/api/inspectorLocation/location"; import { getInspectorLocations } from "@/api/inspectorLocation/location";
import { lineColor } from "@/utils/mapCommon.js";
export default { export default {
components: { components: {
...@@ -305,6 +326,7 @@ export default { ...@@ -305,6 +326,7 @@ export default {
}, },
data() { data() {
return { return {
lineColor,
gaoMap: null, gaoMap: null,
deviceType: false, deviceType: false,
value: "", value: "",
...@@ -448,11 +470,10 @@ export default { ...@@ -448,11 +470,10 @@ export default {
const RightBottom = pageDomRight.offsetTop + pageDomRight.offsetHeight; const RightBottom = pageDomRight.offsetTop + pageDomRight.offsetHeight;
// 下边的上边 // 下边的上边
const bottomTop = pageDomBottom.offsetTop; const bottomTop = pageDomBottom.offsetTop;
if(RightBottom>bottomTop){ if (RightBottom > bottomTop) {
// 重叠了,bottom右移动 // 重叠了,bottom右移动
this.bottomMarginRight=true; this.bottomMarginRight = true;
} }
}, },
initMap() { initMap() {
...@@ -1512,7 +1533,7 @@ export default { ...@@ -1512,7 +1533,7 @@ export default {
width: 100%; width: 100%;
} }
// 如果right与bottom 重叠,则bottom左移动 // 如果right与bottom 重叠,则bottom左移动
.bottomMarginRight{ .bottomMarginRight {
right: 280px; right: 280px;
} }
// .btn-wrapper { // .btn-wrapper {
...@@ -1688,6 +1709,24 @@ input[type="radio"] { ...@@ -1688,6 +1709,24 @@ input[type="radio"] {
} }
} }
} }
.pipePressure {
position: absolute;
color: #fff;
right: -80px;
top: 50px;
padding: 1px;
// background: rgba(6, 29, 51, 0.8);
.hasColorBox {
// border: 1px solid #053b6a;
padding: 2px 5px;
margin-bottom: 5px;
& > div {
display: inline-block;
width: 10px;
height: 10px;
}
}
}
.scroll { .scroll {
// height: 100%; // height: 100%;
position: relative; position: relative;
...@@ -1833,7 +1872,9 @@ input[type="radio"] { ...@@ -1833,7 +1872,9 @@ input[type="radio"] {
position: relative; position: relative;
// box-sizing: border-box; // box-sizing: border-box;
&.firstbox { &.firstbox {
border-top: 1px solid rgba(0, 0, 0, 0.5); // border-top: 1px solid rgba(0, 0, 0, 0.5);
border-top: 1px solid rgba(5, 59, 106, 0);
// box-sizing: border-box; // box-sizing: border-box;
&:hover { &:hover {
border-top: 1px solid rgba(5, 59, 106, 0); border-top: 1px solid rgba(5, 59, 106, 0);
......
...@@ -552,7 +552,7 @@ export default { ...@@ -552,7 +552,7 @@ export default {
addBasicsInfo(this.form2).then(response => { addBasicsInfo(this.form2).then(response => {
this.msgSuccess("生成工单成功"); this.msgSuccess("生成工单成功");
this.open2 = false; this.open2 = false;
this.getList(); location.reload();
}); });
} }
}); });
......
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