ds1.0
fanluyan 2 years ago
commit 9b6e9806a9

11953
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -12,6 +12,7 @@
"core-js": "^3.8.3",
"echarts": "^5.4.2",
"element-ui": "^2.15.13",
"jquery": "^3.7.0",
"moment": "^2.29.4",
"update-element-ui-theme": "^1.0.0",
"v-viewer": "^1.6.4",

@ -55,7 +55,7 @@ export default {
items: [
// {
// icon: "el-icon-s-home",
// index: "stritl",
// index: "/videoHistory",
// title: "",
// },
{

@ -11,9 +11,9 @@ Vue.use(ElementUI, {
size: "small",
});
// 引入Echarts
// import * as echarts from "echarts";
// Vue.prototype.$echarts = echarts;
//引入Echarts;
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
// // 引入 vue-awesome-swiper
// import VueAwesomeSwiper from "vue-awesome-swiper";
@ -43,7 +43,9 @@ Vue.use(Viewer);
Viewer.setDefaults({
zIndexInline: 9999,
});
//使用jq
import jquery from "jquery";
Vue.prototype.$ = jquery;
//使用钩子函数对路由进行权限跳转
router.beforeEach((to, from, next) => {
document.title = `${to.meta.title} | 视频监控可视化平台`;

@ -154,14 +154,14 @@ const routes = [
// ),
// meta: { title: "监控视频", icon: "el-icon-video-camera" },
// },
// {
// path: "/videoHistory",
// component: () =>
// import(
// /* webpackChunkName: "tabs" */ "../views/videoMonitor/videoHistory.vue"
// ),
// meta: { title: "视频回放", icon: "el-icon-video-camera" },
// },
{
path: "/videoHistory",
component: () =>
import(
/* webpackChunkName: "tabs" */ "../views/videoMonitor/videoHistory.vue"
),
meta: { title: "视频回放" },
},
// {
// path: "/groupInformation",

@ -91,5 +91,12 @@ export default {
height: 648px;
}
}
.el-carousel__arrow {
background: rgba(0, 0, 0, 0.5);
height: 40px;
width: 40px;
color: #169e8c;
font-size: 22px;
}
}
</style>

@ -74,13 +74,25 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-input
v-model="formdata.search"
placeholder="请输入线路/杆塔/设备名称"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit"></el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleListRow">{{
tableShow ? "图片列表" : "表格列表"
}}</el-button>
</el-form-item>
</el-form>
</div>
<div class="alarmContain" v-loading="loading">
<div class="alarmContain" v-loading="loading" v-if="tableShow">
<div class="alarmTable">
<el-table
ref="multipleTable"
@ -94,6 +106,9 @@
@row-click="handleRowClick"
highlight-current-row
>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column min-width="45" label="序号">
<template slot-scope="scope">
<span>{{ (page - 1) * pageSize + scope.$index + 1 }}</span>
@ -192,6 +207,7 @@
class="picshow"
v-if="selectRow.path !== '' && tableData.length !== 0"
>
<!-- v-viewer="OptionssalseImg" -->
<!-- <div
class="nosee"
:style="'backgroundImage:url(' + photoPic + '!1366x768)'"
@ -235,20 +251,87 @@
</div>
</div>
</div>
<div class="pictureBox" v-else v-loading="loading">
<div class="piclist" v-if="tableData.length !== 0">
<el-card
class="box-card imgList"
v-for="(item, index) in tableData"
:key="index"
:class="current === index ? 'bgColor' : ''"
>
<div class="bigpic">
<div class="picshow" @click="handlePicAlarm(item, index)">
<img :src="item.path + '!1366x768'" ref="picJpg" />
<!-- <canvas
id="myCanvas"
class="myCanvas"
:ref="'myCanvas' + index"
></canvas> -->
</div>
<div class="caption">
<p class="infoTop">
{{ item.lineName }} /
{{
item.displayName !== null && item.displayName !== ""
? item.displayName
: item.cmdid
}}
/
{{
item.alias !== null && item.alias !== ""
? item.alias
: item.channnelName
}}
/ <span class="alarmInfo">({{ item.enname }})</span>
</p>
<p class="infoBottom">
告警时间{{
$moment(item.alarmTime).format("YYYY-MM-DD HH:mm:ss")
}}
<el-button
type="primary"
:loading="btnpicloading"
@click.stop="handlePicList(item)"
>主动拍照</el-button
>
<el-button type="primary" @click.stop="handlePicHistory(item)"
>历史图片</el-button
>
</p>
</div>
</div>
</el-card>
</div>
<div class="piclist" v-else>
<el-empty description="暂无数据"></el-empty>
</div>
<div class="pageNation">
<el-pagination
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:current-page="page"
:page-size="pageSize"
layout="sizes, prev, pager, next, jumper,total"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
<!-- 点击出现大图 -->
<div v-if="showBigpic" class="showPic" v-loading="canvasloading">
<div
v-if="showBigpic"
class="showPic"
@click="closePic"
v-loading="canvasloading"
class="picboxI"
@mousewheel.prevent="rollImg"
:style="{ transform: 'scale(' + zoomD + ')' }"
@mousedown="move"
>
<div class="picboxI">
<img @load="imgOnload" class="maskPic" :src="bigPhotoPic" />
<canvas id="myCanvas" class="myCanvas" ref="myCanvas2"></canvas>
<img @load="imgOnload" class="maskPic img" :src="bigPhotoPic" ref="" />
<canvas id="myCanvas" class="myCanvas" ref="myCanvasbig"></canvas>
</div>
<div class="viewClose">
<i @click="closePic" class="el-icon-close"></i>
<div class="viewClose" @click="closePic">
<i class="el-icon-close"></i>
</div>
</div>
<historyimg ref="historyimg_ref"></historyimg>
@ -291,6 +374,7 @@ export default {
lineId: -1,
towerId: -1,
label: -1,
search: "",
// timeVal: "",
},
photoPic: "",
@ -310,6 +394,19 @@ export default {
selectRow: {},
alarmLoading: false,
canvasloading: false,
tableShow: true, //
zoomD: 1,
canvansdata: "",
current: 0,
};
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
},
mounted() {
@ -317,6 +414,10 @@ export default {
// new Date(new Date().toLocaleDateString()).getTime(),
// new Date().getTime(),
// ]);
// $("#elementToZoomOn").smartZoom({
// maxScale: 2,
// });
this.$set(
this.formdata,
"starttime",
@ -327,8 +428,66 @@ export default {
this.getTableList();
},
methods: {
//demo
move(e) {
console.log(e);
e.preventDefault();
//
var personBox = document.querySelector(".picboxI");
var img = document.querySelector(".img");
var x = e.pageX - img.offsetLeft;
var y = e.pageY - img.offsetTop;
//
personBox.addEventListener("mousemove", move);
function move(e) {
personBox.style.left = e.pageX - x + "px";
personBox.style.top = e.pageY - y + "px";
}
//
img.addEventListener("mouseup", function () {
personBox.removeEventListener("mousemove", move);
});
//
personBox.addEventListener("mouseout", function () {
personBox.removeEventListener("mousemove", move);
});
},
//
rollImg(e) {
let direction = e.deltaY > 0 ? "down" : "up";
if (direction === "up") {
//
this.large();
} else {
//
this.Small();
}
},
//
large() {
this.$nextTick(() => {
if (this.zoomD < 6) {
this.zoomD += 0.1;
}
document.querySelector(
".picboxI"
).style.transform = `matrix(${this.zoomD}, 0, 0,${this.zoomD}, 0, 0)`;
});
},
//
Small() {
this.$nextTick(() => {
if (this.zoomD > 0.3) {
this.zoomD -= 0.1;
}
document.querySelector(
".picboxI"
).style.transform = `matrix(${this.zoomD}, 0, 0, ${this.zoomD}, 0, 0)`;
});
},
handleBigPicbox(val) {
this.canvasloading = true;
this.canvansdata = val;
if (val.path !== "" && this.tableData.length !== 0) {
console.log(val);
this.bigPhotoPic = val.path;
@ -340,6 +499,7 @@ export default {
},
closePic() {
this.showBigpic = false;
this.zoomD = 1;
},
//
getSearchdy() {
@ -400,7 +560,6 @@ export default {
this.photoPic = res.data.list[0].path;
this.selectRow = res.data.list[0];
console.log(this.selectRow);
// ref myTableref
this.$refs.multipleTable.setCurrentRow(this.selectRow);
this.handleRowClick(this.selectRow);
})
@ -426,11 +585,13 @@ export default {
//
handleCurrentChange(val) {
this.page = val;
this.tableData = [];
this.getTableList();
},
//
handleSizeChange(val) {
this.pageSize = val;
this.tableData = [];
this.getTableList();
},
//
@ -454,23 +615,34 @@ export default {
left = data.y * scaleY,
width = data.width * scaleX,
height = data.height * scaleY;
console.log(top, left, width, height);
// this.ctx.strokeStyle = "red"; //线
this.ctx.strokeRect(top, left, width, height); //
//this.ctx.strokeRect(data.x, data.y, data.width, data.height);
this.ctx.font = "24px normal";
this.ctx.font = "16px normal";
this.ctx.fillStyle = "#ff0000";
this.ctx.fillText(this.textInfo, top, left + 24);
console.log(top, left, width, height);
console.log(this.canvas.width, this.canvas.height);
//
if (left > 32) {
this.ctx.fillText(this.textInfo, top, left - 4);
} else if (this.canvas.height - left + height > 32) {
this.ctx.fillText(this.textInfo, top, height - 4);
}
this.ctx.closePath();
this.ctx.stroke();
},
//
//
drawline2(data) {
this.canvas = this.$refs.myCanvas2;
console.log(data);
console.log(this.canvas);
this.canvas = this.$refs.myCanvasbig;
this.imgpic = this.$refs.picJpg;
this.textInfo = data.enname;
this.canvas.width = this.imgpic.offsetWidth; //
this.canvas.height = this.imgpic.offsetHeight; //
console.log(this.canvas.width, this.canvas.height);
this.ctx = this.canvas.getContext("2d");
this.ctx.beginPath();
//线
@ -490,9 +662,105 @@ export default {
// this.ctx.strokeStyle = "red"; //线
this.ctx.strokeRect(top, left, width, height); //
//this.ctx.strokeRect(data.x, data.y, data.width, data.height);
this.ctx.font = "24px normal";
this.ctx.font = "12px normal";
this.ctx.fillStyle = "#ff0000";
this.ctx.fillText(this.textInfo, top, left + 24);
//this.ctx.fillText(this.textInfo, top, left + 24);
//
if (left > 32) {
this.ctx.fillText(this.textInfo, top, left - 4);
} else if (this.canvas.height - left + height > 32) {
this.ctx.fillText(this.textInfo, top, height - 4);
}
this.ctx.closePath();
this.ctx.stroke();
},
//
drawlineListAll(val) {
for (let i = 0; i < val.length; i++) {
console.log(i);
console.log(this.$refs.myCanvas);
console.log(this.$refs.picJpg);
this.canvas = this.$refs.myCanvas;
this.imgpic = this.$refs.picJpg;
this.textInfo = val[i].enname;
console.log(this.textInfo);
console.log(this.imgpic.offsetWidth);
console.log(this.canvas);
this.canvas.width = this.imgpic.offsetWidth; //
this.canvas.height = this.imgpic.offsetHeight; //
console.log(this.canvas.width, this.canvas.height);
this.ctx = this.canvas.getContext("2d");
this.ctx.beginPath();
//线
this.ctx.strokeStyle = "#ff0000";
// 线
this.ctx.lineWidth = 1;
//
var scaleX = this.canvas.width / val[i].photoWidth, //this.iw
scaleY = this.canvas.height / val[i].photoHeight; //this.ih
console.log(scaleX, scaleY);
var top = val[i].x * scaleX,
left = val[i].y * scaleY,
width = val[i].width * scaleX,
height = val[i].height * scaleY;
console.log(top, left, width, height);
// this.ctx.strokeStyle = "red"; //线
this.ctx.strokeRect(top, left, width, height); //
//this.ctx.strokeRect(val[i].x, val[i].y, val[i].width, val[i].height);
this.ctx.font = "16px normal";
this.ctx.fillStyle = "#ff0000";
//this.ctx.fillText(this.textInfo, top, left + 24);
//
if (left > 32) {
this.ctx.fillText(this.textInfo, top, left - 4);
} else if (this.canvas.height - left + height > 32) {
this.ctx.fillText(this.textInfo, top, height - 4);
}
this.ctx.closePath();
this.ctx.stroke();
}
},
//
drawlineList(data, index) {
console.log(data);
console.log(this.$refs.myCanvasbig);
console.log(this.$refs.picJpg);
console.log("picJpg" + index);
this.canvas = this.$refs.myCanvasbig;
this.imgpic = this.$refs.picJpg;
this.textInfo = data.enname;
this.canvas.width = this.imgpic[index].offsetWidth; //
this.canvas.height = this.imgpic[index].offsetHeight; //
console.log(this.canvas.width, this.canvas.height);
this.ctx = this.canvas.getContext("2d");
this.ctx.beginPath();
//线
this.ctx.strokeStyle = "#ff0000";
// 线
this.ctx.lineWidth = 1;
//
var scaleX = this.canvas.width / data.photoWidth, //this.iw
scaleY = this.canvas.height / data.photoHeight; //this.ih
console.log(scaleX, scaleY);
var top = data.x * scaleX,
left = data.y * scaleY,
width = data.width * scaleX,
height = data.height * scaleY;
console.log(top, left, width, height);
// this.ctx.strokeStyle = "red"; //线
this.ctx.strokeRect(top, left, width, height); //
//this.ctx.strokeRect(data.x, data.y, data.width, data.height);
this.ctx.font = "12px normal";
this.ctx.fillStyle = "#ff0000";
//this.ctx.fillText(this.textInfo, top, left + 24);
//
if (left > 32) {
this.ctx.fillText(this.textInfo, top, left - 4);
} else if (this.canvas.height - left + height > 32) {
this.ctx.fillText(this.textInfo, top, height - 4);
}
this.ctx.closePath();
this.ctx.stroke();
},
@ -583,6 +851,42 @@ export default {
this.$refs.historyimg_ref.display();
this.$refs.historyimg_ref.getdataform(this.selectRow);
},
//
handleListRow() {
this.tableShow = !this.tableShow;
this.zoomD = 1;
if (!this.tableShow) {
this.drawlineListAll(this.tableData);
}
},
//
handlePicList(val) {
console.log(val);
this.selectRow = val;
this.handleCommandpic();
},
handlePicHistory(val) {
console.log(val);
this.selectRow = val;
this.handleHistory();
},
handlePicAlarm(val, index) {
console.log(val, index);
this.current = index;
this.canvansdata = val;
this.canvasloading = true;
if (val.path !== "" && this.tableData.length !== 0) {
console.log(val);
this.bigPhotoPic = val.path;
this.showBigpic = true;
this.$nextTick(() => {
console.log("huatu");
this.drawlineList(val, index);
});
}
},
dateFormat(row, column) {
var date = row[column.property];
if (date == undefined) {
@ -617,8 +921,8 @@ export default {
cursor: pointer;
.picboxI {
position: relative;
max-width: 1366px;
max-height: 768px;
width: 1366px;
height: 768px;
margin: auto;
animation-name: scaleDraw;
/*关键帧名称*/
@ -627,11 +931,15 @@ export default {
animation-iteration-count: 1;
/*动画播放的次数*/
animation-duration: 0.65s;
display: flex;
align-items: center;
justify-content: center;
img {
max-width: 1366px;
max-height: 768px;
margin: auto;
position: absolute;
cursor: grab;
}
.myCanvas {
position: absolute;
@ -640,6 +948,7 @@ export default {
width: 100%;
height: 100%;
cursor: pointer;
pointer-events: none;
}
}
.viewClose {
@ -697,7 +1006,7 @@ export default {
}
.alarmContain {
display: flex;
height: calc(100% - 90px);
height: calc(100% - 98px);
padding: 0px 8px;
.alarmTable {
width: 50%;
@ -726,7 +1035,6 @@ export default {
width: 100%;
height: 100%;
position: relative;
.picshow {
width: 100%;
height: 100%;
@ -758,6 +1066,7 @@ export default {
height: 100%;
cursor: pointer;
z-index: 2;
pointer-events: none;
}
}
.editorBtn {
@ -772,5 +1081,94 @@ export default {
}
}
}
.pictureBox {
height: calc(100% - 136px);
max-height: calc(100% - 136px);
.el-empty {
margin: auto;
}
.piclist {
display: flex;
// justify-content: space-around;
flex-wrap: wrap;
overflow: auto;
border: 1px solid #eee;
height: calc(100% - 2px);
}
.imgList {
width: calc((100% - 104px) / 3);
position: relative;
display: inline-block;
margin: 8px;
position: relative;
padding: 4px;
border-radius: 3px;
background: #fff;
height: fit-content;
//height: auto;
border: 2px solid transparent;
.el-card__body {
padding: 0px;
}
.bigpic {
width: 100%;
height: 100%;
background-size: 100% 100%;
.picshow {
position: relative;
.myCanvas {
position: absolute;
width: 100%;
height: 100%;
z-index: 2;
left: 0;
top: 0;
pointer-events: none;
}
}
}
img {
cursor: pointer;
width: 100%;
height: 250px;
object-fit: fill;
}
.caption {
padding: 9px;
color: #333;
.alarmInfo {
color: #e49e61;
}
.infoTop {
font-size: 14px;
color: #000;
font-weight: normal;
margin-top: 2px;
padding-left: 5px;
padding-right: 5px;
}
.infoBottom {
color: #000;
font-size: 12px;
font-weight: normal;
margin-top: 6px;
padding-left: 5px;
padding-right: 5px;
.el-button--small {
margin-left: 24px;
padding: 4px;
width: 78px;
}
.el-button + .el-button {
margin-left: 10px;
}
}
}
}
.bgColor {
border: 2px solid #e49e61;
}
}
}
</style>

@ -79,7 +79,8 @@ export default {
if (val == null) {
return (this.formdata = {});
}
this.formdata = val;
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
},
//
submitForm() {

@ -23,6 +23,9 @@
>
<!-- <el-table-column type="index" width="55"> </el-table-column>
<el-table-column type="selection" width="55"> </el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column
label="通道名称"
show-overflow-tooltip

@ -8,16 +8,16 @@
bigPicPath.indexOf('nopic') == -1 &&
bigPicPath.indexOf('videos') == -1
"
@click="handleBigPicbox(bigPicPath)"
:style="bigPicPath ? 'backgroundImage:url(' + bigPicPath + ')' : ''"
>
<!-- @click="handleBigPicbox(bigPicPath)" -->
<div
class="nosee"
:style="'backgroundImage:url(' + bigPicPath + ')'"
></div>
<viewer :options="OptionssalseImg" class="bigimgView">
<div class="bigimgView" v-viewer="OptionssalseImg">
<img ref="picJpg" class="animImg" :src="bigPicPath" />
</viewer>
</div>
<canvas id="myCanvas" class="myCanvas" ref="myCanvas"></canvas>
<!-- <img ref="picJpg" class="animImg" :src="bigPicPath + '!1366x768'" /> -->
@ -33,7 +33,7 @@
<video
width="100%"
height="100%"
:src="bigPicPath"
:src="bigPicPath.substring(0, bigPicPath.length - 9)"
controls="controls"
:poster="videopath"
autoplay
@ -50,7 +50,13 @@
@click="closePic"
>
<div class="picboxI">
<img class="maskPic" :src="bigPicPath" />
<img
class="maskPic"
:src="bigPicPath"
ref="bigImage"
width="100%"
height="100%"
/>
</div>
<div class="viewClose">
<i @click="closePic" class="el-icon-close"></i>
@ -221,6 +227,7 @@ export default {
mounted() {
console.log(this.terminalPhoto);
this.bigPicPath = this.terminalPhoto[0].path + "!1366x768";
// this.bigPicPath = this.terminalPhoto[0].path + "!1366x768";
this.fiveList = this.terminalPhoto.slice(this.page - 1, this.pagesize);
this.total = this.terminalPhoto.length / this.pagesize;
console.log(this.fiveList);
@ -455,6 +462,7 @@ export default {
flex-direction: column;
height: calc(100% - 0px);
box-sizing: border-box;
.showPic {
position: fixed;
background-color: rgba(0, 0, 0, 0.5);
@ -478,10 +486,11 @@ export default {
animation-iteration-count: 1;
/*动画播放的次数*/
animation-duration: 0.65s;
overflow: hidden;
border: 2px solid #f00;
img {
max-width: 1366px;
max-height: 768px;
width: 100%;
height: 100%;
margin: auto;
}
}
@ -586,6 +595,7 @@ export default {
line-height: 60px;
width: 40px;
height: 40px;
z-index: 4;
&:hover {
color: @color-primary;
}
@ -711,5 +721,6 @@ export default {
transform: scale(1);
}
}
// https://v1.github.surmon.me/vue-awesome-swiper/
</style>

@ -34,6 +34,7 @@
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
format="HH:mm"
value-format="HH:mm:ss"
>
</el-time-picker>
@ -99,7 +100,8 @@ export default {
remark: "",
});
}
this.ruleForm = val;
//this.ruleForm = val;
this.ruleForm = JSON.parse(JSON.stringify(val));
this.ruleForm.list.forEach((val) => {
this.$set(val, "time", [val.startTime, val.endTime]);
});

@ -24,6 +24,9 @@
>
<!-- <el-table-column type="index" width="55"> </el-table-column>
<el-table-column type="selection" width="55"> </el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column label="名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.name }}</template>
</el-table-column>

@ -232,7 +232,8 @@ export default {
],
});
}
this.formInfo = val;
//this.formInfo = val;
this.formInfo = JSON.parse(JSON.stringify(val));
},
//
changeHandle() {

@ -40,6 +40,9 @@
style="width: 100%"
v-loading="loading"
>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column min-width="45" label="序号">
<template slot-scope="scope">
<span>{{ (page - 1) * pageSize + scope.$index + 1 }}</span>
@ -189,6 +192,7 @@ export default {
},
};
</script>
<<<<<<< HEAD
<style lang="less">
.baseInforDialog {
.pageNation {
@ -203,3 +207,6 @@ export default {
}
}
</style>
=======
<style lang="less" scoped></style>
>>>>>>> hn1.0

@ -40,6 +40,9 @@
style="width: 100%"
v-loading="loading"
>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column min-width="45" label="序号">
<template slot-scope="scope">
<span>{{ (page - 1) * pageSize + scope.$index + 1 }}</span>
@ -171,6 +174,7 @@ export default {
},
};
</script>
<<<<<<< HEAD
<style lang="less">
.gpsSiteDialog {
.pageNation {
@ -185,3 +189,6 @@ export default {
}
}
</style>
=======
<style lang="less" scoped></style>
>>>>>>> hn1.0

@ -40,6 +40,9 @@
style="width: 100%"
v-loading="loading"
>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column min-width="45" label="序号">
<template slot-scope="scope">
<span>{{ (page - 1) * pageSize + scope.$index + 1 }}</span>
@ -177,6 +180,7 @@ export default {
},
};
</script>
<<<<<<< HEAD
<style lang="less">
.runStatusDialog {
.pageNation {
@ -191,3 +195,6 @@ export default {
}
}
</style>
=======
<style lang="less" scoped></style>
>>>>>>> hn1.0

@ -40,6 +40,9 @@
style="width: 100%"
v-loading="loading"
>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column min-width="45" label="序号">
<template slot-scope="scope">
<span>{{ (page - 1) * pageSize + scope.$index + 1 }}</span>
@ -203,6 +206,7 @@ export default {
},
};
</script>
<<<<<<< HEAD
<style lang="less">
.workStatus {
.pageNation {
@ -217,3 +221,6 @@ export default {
}
}
</style>
=======
<style lang="less" scoped></style>
>>>>>>> hn1.0

@ -47,6 +47,7 @@
<el-input
v-model="formdata.search"
placeholder="请输入线路/杆塔/设备编号"
clearable
></el-input>
</el-form-item>
<el-form-item>
@ -74,6 +75,10 @@
show-overflow-tooltip
>
</el-table-column>
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column
fixed
prop="lineName"
@ -81,6 +86,11 @@
show-overflow-tooltip
min-width="120"
>
<template slot-scope="scope">
<el-link @click.native.stop="handleRevisePhoto(scope.row)">{{
scope.row.lineName
}}</el-link>
</template>
</el-table-column>
<el-table-column
fixed
@ -89,6 +99,11 @@
show-overflow-tooltip
min-width="150"
>
<template slot-scope="scope">
<el-link @click.native.stop="handleRevisePhoto(scope.row)">{{
scope.row.towerName
}}</el-link>
</template>
</el-table-column>
<el-table-column
fixed
@ -309,7 +324,11 @@
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
<<<<<<< HEAD
</el-dropdown> -->
=======
</el-dropdown>
>>>>>>> hn1.0
<el-button
type="text"
class="deleteText"
@ -353,7 +372,11 @@
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
<<<<<<< HEAD
</el-dropdown> -->
=======
</el-dropdown>
>>>>>>> hn1.0
<el-button
type="text"
class="deleteText"
@ -462,12 +485,40 @@ export default {
};
},
created() {
this.getSearchdy();
this.terminalList();
this.roleUser = localStorage.getItem("role");
console.log(this.roleUser);
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
console.log(this.$route.query);
this.formdata.search = this.$route.query.name;
console.log(this.formdata.search);
},
mounted() {
this.getSearchdy();
this.terminalList();
},
methods: {
//线
handleLineLink(val) {
console.log(val);
this.$router.push({
path: "/lineInformation",
query: { lineName: val.lineName, name: val.towerName },
});
},
//
handletowerLink(val) {
console.log(val);
this.$router.push({
path: "/towerInformation",
query: { lineName: val.lineName, name: val.towerName },
});
},
//
getSearchdy() {
getSearchInfo({ type: 1 })

@ -74,6 +74,9 @@
>
</el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column
prop="lineName"
label="线路名称"

@ -82,7 +82,8 @@ export default {
if (val == null) {
return (this.formdata = {});
}
this.formdata = val;
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
//this.$set(this.formdata);
},
//

@ -59,7 +59,8 @@ export default {
methods: {
//
getdataform(val) {
this.formdata = val;
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
this.formdata.lineId = val.name;
},
//
@ -78,7 +79,6 @@ export default {
})
.then((res) => {
if (res.code == 200) {
// this.$message.success("");
this.$message({
duration: 1500,
showClose: true,

@ -7,6 +7,21 @@
>新增</el-button
>
</div>
<div class="searchBox">
<el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item>
<el-input
v-model="formdata.search"
placeholder="请输入线路名称或公司名称"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit"></el-button>
<el-button type="primary" @click="onReset"></el-button>
</el-form-item>
</el-form>
</div>
<div class="lineTable">
<el-table
ref="multipleTable"
@ -21,11 +36,22 @@
>
<!-- <el-table-column type="selection" width="55"> </el-table-column> -->
<!-- <el-table-column type="index" width="55"> </el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column label="公司名称" show-overflow-tooltip>
<template slot-scope="scope">{{
scope.row.bsManufacturer
}}</template>
</el-table-column>
<el-table-column
prop="dyLevelname"
label="电压等级名称"
show-overflow-tooltip
min-width="120"
>
</el-table-column>
<!-- <el-table-column
prop="id"
label="线路编号"
@ -41,13 +67,6 @@
>
</el-table-column>
<el-table-column
prop="dyLevelname"
label="电压等级名称"
show-overflow-tooltip
min-width="120"
>
</el-table-column>
<el-table-column
prop="status"
label="是否启用"
@ -119,19 +138,33 @@ export default {
pageSize: 20, //
total: 0, //
loading: true,
formdata: {
search: "",
},
};
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
// console.log(this.$route.query);
// this.formdata.search = this.$route.query.lineName;
// console.log(this.formdata.search);
},
mounted() {
this.lineList();
},
methods: {
//线
lineList() {
this.loading = true;
getLineListJoggle({
pageindex: this.page,
pagesize: this.pageSize,
})
this.$set(this.formdata, "pageindex", this.page);
this.$set(this.formdata, "pagesize", this.pageSize);
getLineListJoggle(this.formdata)
.then((res) => {
this.lineTableData = res.data.list;
this.total = res.data.total;
@ -147,7 +180,18 @@ export default {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
onSubmit() {
this.page = 1;
this.lineList();
},
//
onReset() {
this.formdata = {};
this.page = 1;
this.pageSize = 20;
this.lineList();
},
//
handleAddLine() {
this.lineDialogTitle = "新增";
@ -157,6 +201,7 @@ export default {
//handleResive 线
handleResive(data) {
console.log(data);
this.lineDialogTitle = "修改";
this.$refs.addlineDialogref.display();
this.$refs.addlineDialogref.getdataform(data);
@ -223,7 +268,26 @@ export default {
height: calc(100% - 24px);
padding: 12px;
border-radius: 4px;
.searchBox {
margin-top: 8px;
.ml10 {
margin-left: 10px;
}
.el-form {
.dybox {
.el-form-item__content {
width: 120px;
}
}
.xlbox {
.el-form-item__content {
width: 160px;
}
}
}
}
}
.lineBtnGroup {
display: flex;
justify-content: space-between;
@ -231,8 +295,8 @@ export default {
}
.lineTable {
margin-top: 16px;
height: calc(100% - 48px);
//margin-top: 16px;
height: calc(100% - 94px);
}
}
</style>

@ -27,6 +27,9 @@
<el-form-item label="杆塔名称:" prop="name">
<el-input v-model="formdata.name" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="杆塔地址:" prop="address">
<el-input v-model="formdata.address" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="排序号:" prop="order">
<el-input-number
controls-position="right"
@ -80,7 +83,8 @@ export default {
order: 0,
});
}
this.formdata = val;
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
},
//
submitForm() {

@ -10,6 +10,21 @@
>新增</el-button
>
</div>
<div class="searchBox">
<el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item>
<el-input
v-model="formdata.search"
placeholder="请输入线路/杆塔/地址"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit"></el-button>
<el-button type="primary" @click="onReset"></el-button>
</el-form-item>
</el-form>
</div>
<div class="deviceTable">
<el-table
ref="multipleTable"
@ -24,24 +39,39 @@
>
<!-- <el-table-column type="index" width="55"> </el-table-column>
<el-table-column type="selection" width="55"> </el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column
prop="lineName"
label="线路名称"
show-overflow-tooltip
></el-table-column>
>
<template slot-scope="scope">
<el-link @click.native.stop="handleResive(scope.row)">{{
scope.row.lineName
}}</el-link>
</template>
</el-table-column>
<!-- <el-table-column
prop="lineId"
label="线路编号"
show-overflow-tooltip
></el-table-column> -->
<el-table-column prop="name" label="杆塔名称" show-overflow-tooltip>
<template slot-scope="scope">
<el-link @click.native.stop="handleResive(scope.row)">{{
scope.row.name
}}</el-link>
</template></el-table-column
>
<el-table-column
prop="name"
label="杆塔名称"
prop="address"
label="杆塔地址"
show-overflow-tooltip
></el-table-column>
<el-table-column prop="order" label="排序号">
<el-table-column prop="order" label="排序号" width="100">
<template slot-scope="scope">
{{ scope.row.order == null ? 0 : scope.row.order }}
</template>
@ -98,23 +128,63 @@ export default {
pageSize: 20, //
total: 0, //
loading: true,
formdata: {
search: "",
},
};
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
console.log(this.$route.query);
this.formdata.search = this.$route.query.name;
console.log(this.formdata.search);
},
mounted() {
console.log("ssss");
this.deviceList();
},
activated() {
methods: {
//线
handleLineLink(val) {
console.log(val);
this.$router.push({
path: "/lineInformation",
query: { lineName: val.lineName, name: val.name },
});
},
//线
handletowerLink(val) {
console.log(val);
this.$router.push({
path: "/photographicDevice",
query: { lineName: val.lineName, name: val.name },
});
},
//
onSubmit() {
this.page = 1;
this.deviceList();
},
//
onReset() {
this.formdata = {};
this.page = 1;
this.pageSize = 20;
this.deviceList();
},
methods: {
//
deviceList() {
this.loading = true;
getTowerListApi({
pageindex: this.page,
pagesize: this.pageSize,
})
this.$set(this.formdata, "pageindex", this.page);
this.$set(this.formdata, "pagesize", this.pageSize);
getTowerListApi(this.formdata)
.then((res) => {
this.tableDate = res.data.list;
this.total = res.data.total;
@ -201,16 +271,32 @@ export default {
height: calc(100% - 24px);
padding: 12px;
border-radius: 4px;
.searchBox {
margin-top: 8px;
.ml10 {
margin-left: 10px;
}
.el-form {
.dybox {
.el-form-item__content {
width: 120px;
}
}
.xlbox {
.el-form-item__content {
width: 160px;
}
}
}
}
}
.deviceBtnGroup {
display: flex;
justify-content: space-between;
align-items: center;
}
.deviceTable {
margin-top: 16px;
height: calc(100% - 48px);
height: calc(100% - 94px);
//background: #fcc;
}
}

@ -64,15 +64,16 @@
<img src="../../assets/img/nopic.jpg" />
</div>
<p class="infoTop">
{{ item.linename }}-{{
item.displayname !== null && item.displayname !== ""
? item.displayname
: item.cmdid
}}-{{
{{ item.linename }}-{{ item.towername }}-{{
item.alias !== null && item.alias !== ""
? item.alias
: item.channnelname
}}
<!-- {{
item.displayname !== null && item.displayname !== ""
? item.displayname
: item.cmdid
}}- -->
</p>
<p class="infoBottom" v-if="item.photoTime !== null">
{{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }} 

@ -57,6 +57,14 @@
<!-- 带参数的中心内容右侧参数区 -->
<div class="picSetBox">
<div class="swiperBox" v-loading="loadingpic">
<div class="title">
<el-breadcrumb separator="/">
<el-breadcrumb-item> {{ towertitle }}</el-breadcrumb-item>
<el-breadcrumb-item v-if="address !== null">{{
address
}}</el-breadcrumb-item>
</el-breadcrumb>
</div>
<carouselChart
ref="carouselpic"
:terminalPhoto="terminalPhoto"
@ -67,6 +75,7 @@
<div class="zzbox">
<!-- <h3>装置名称</h3> -->
<p class="zzidname">{{ cmdid }}</p>
<!-- <p class="addressname">{{ address }}</p> -->
</div>
<div class="paramsDate">
<h3>日历快速查询</h3>
@ -199,6 +208,9 @@
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button type="primary" @click="handlehistoryPic">
历史图片</el-button
>
</div>
</div>
</div>
@ -273,6 +285,9 @@ export default {
i: 0,
newTermId: "",
zzstatus: "",
address: "",
towertitle: "",
CurrentData: "",
};
},
watch: {
@ -352,9 +367,11 @@ export default {
if (this.lineTreeData[0].list[0].list.length > 0) {
this.currentNodekey = this.lineTreeData[0].list[0].list[0].id; //
this.newTermId = this.lineTreeData[0].list[0].list[0].id;
this.towertitle = this.lineTreeData[0].list[0].list[0].name;
this.address = this.lineTreeData[0].list[0].list[0].address;
this.cmdid = this.lineTreeData[0].list[0].list[0].cmdid;
this.zzstatus = this.lineTreeData[0].list[0].list[0].onlinestatus;
this.CurrentData = this.lineTreeData[0].list[0].list[0];
console.log(this.zzstatus);
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.currentNodekey); //
@ -378,7 +395,10 @@ export default {
console.log(this.zzstatus);
this.channelId = data.id; //id
this.cmdid = data.cmdid;
this.address = data.address;
this.towertitle = data.name;
this.newTermId = data.id; //id
this.CurrentData = data;
console.log(data);
this.channelValue = [];
this.channelOption = [];
@ -605,7 +625,6 @@ export default {
console.log(res);
if (res.data.isonline) {
this.btnpicloading = true;
getLatestPhotoJoggle({
captureType: 0,
channel: command,
@ -625,7 +644,6 @@ export default {
this.newPicData = res.data;
console.log(this.newPicData);
console.log(this.newTermId);
this.timer = window.setInterval(() => {
this.newPicApi();
this.i++;
@ -801,10 +819,13 @@ export default {
},
//
// handlehistoryPic() {
// this.$router.push({ path: "/realTimeSearch" });
// // sessionStorage.setItem("keyPath", " realTimeSearch");
// },
handlehistoryPic() {
this.$router.push({
path: "/realTimeSearch",
query: { lineName: this.CurrentData },
});
// sessionStorage.setItem("keyPath", " realTimeSearch");
},
dragControllerDiv() {
var resize = document.getElementsByClassName("resize");
var left = document.getElementsByClassName("sideBar");
@ -943,6 +964,24 @@ export default {
.el-loading-mask {
background-color: rgba(255, 255, 255, 0.6) !important;
}
.title {
height: 32px;
padding-left: 12px;
line-height: 32px;
color: #fff;
font-size: 12px;
background-color: #169e8cb0;
.el-breadcrumb {
line-height: 32px;
color: #fff !important;
font-size: 12px;
height: 32px;
.el-breadcrumb__inner,
.el-breadcrumb__separator {
color: #fff !important;
}
}
}
}
.totalPic {
width: 100%;
@ -977,6 +1016,13 @@ export default {
}
.zzidname {
font-weight: normal;
color: #169e8c;
}
.addressname {
margin-top: 16px;
font-size: 14px;
line-height: 22px;
color: #333;
}
}
.setTimebtn {

@ -99,7 +99,7 @@
</el-form>
</div>
<div class="pictureBox" v-loading="loading">
<div v-if="picList.length !== 0">
<div v-if="picList.length !== 0" style="width: 100%">
<el-card
class="box-card imgList"
v-for="(item, index) in picList"
@ -227,6 +227,18 @@ export default {
signtype: 0, //0
};
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
console.log(this.$route.query);
// this.formdata.search = this.$route.query.name;
// console.log(this.formdata.search);
},
mounted() {
// this.$set(this.formdata, "timeVal", [
// new Date(new Date().toLocaleDateString()).getTime(),
@ -340,6 +352,7 @@ export default {
//
handleCurrentChange(val) {
this.page = val;
this.picList = [];
this.getPicData();
},
//

@ -93,7 +93,8 @@ export default {
if (val == null) {
return (this.formdata = {});
}
this.formdata = val;
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
},
//
submitForm() {

@ -20,6 +20,9 @@
>
<!-- <el-table-column type="index" width="55"> </el-table-column>
<el-table-column type="selection" width="55"> </el-table-column> -->
<template slot="empty">
<el-empty :image-size="160" description="暂无数据"></el-empty>
</template>
<el-table-column
label="用户名"
show-overflow-tooltip

@ -1,31 +1,45 @@
<template>
<div style="padding: 20px">
<el-card
><el-tabs type="border-card" v-model="tabName" @tab-click="handleClick"
><el-tab-pane label="用户管理" name="用户管理"
><div class="echart-top">
<div class="echartsPage">
<div class="echart-top">
<el-card class="box-card">
<div id="echart1" style="width: 100%; height: 100%"></div>
<div id="echart2" style="width: 100%; height: 100%"></div></div></el-tab-pane
><el-tab-pane label="配置管理" name="配置管理"
><div class="echart-top">
</el-card>
<el-card class="box-card">
<div id="echart2" style="width: 100%; height: 100%"></div>
</el-card>
</div>
<div class="echart-top">
<el-card class="box-card">
<div id="echart3" style="width: 100%; height: 100%"></div>
<div id="echart4" style="width: 100%; height: 100%"></div></div></el-tab-pane></el-tabs
></el-card>
</el-card>
<el-card class="box-card">
<div id="echart4" style="width: 100%; height: 100%"></div>
</el-card>
</div>
<!-- <el-card>
<el-tabs type="border-card" v-model="tabName" @tab-click="handleClick"
><el-tab-pane label="用户管理" name="用户管理"></el-tab-pane
><el-tab-pane label="配置管理" name="配置管理"></el-tab-pane></el-tabs
></el-card> -->
</div>
</template>
<script>
export default {
name: '',
name: "",
data() {
return { tabName: '配置管理', myChart1: '', myChart2: '', myChart3: '', myChart4: '' };
return {
tabName: "配置管理",
myChart1: "",
myChart2: "",
myChart3: "",
myChart4: "",
};
},
mounted() {
this.init();
},
watch: {
'$store.state.collapse'(val) {
"$store.state.collapse"(val) {
console.log(val);
setTimeout(() => {
//echarts
@ -34,7 +48,7 @@ export default {
this.myChart3.resize();
this.myChart4.resize();
}, 300);
}
},
},
methods: {
init() {
@ -44,8 +58,8 @@ export default {
this.getEchart4();
},
handleClick(value) {
console.log('value', value);
if (value.name === '用户管理') {
console.log("value", value);
if (value.name === "用户管理") {
this.getEchart1();
this.getEchart2();
} else {
@ -54,115 +68,173 @@ export default {
},
getEchart1() {
this.$nextTick(() => {
this.$echarts.init(document.getElementById('echart1')).dispose();
this.myChart1 = this.$echarts.init(document.getElementById('echart1'));
this.$echarts.init(document.getElementById("echart1")).dispose();
this.myChart1 = this.$echarts.init(document.getElementById("echart1"));
let option = {
legend: { top: 'bottom' },
title: {
text: "装置数量统计",
},
legend: { top: "bottom" },
toolbox: {
show: true,
feature: {
mark: { show: true },
dataView: { show: true, readOnly: false },
restore: { show: true },
saveAsImage: { show: true }
}
},
series: [
{
name: '面积模式',
type: 'pie',
radius: [50, 250],
center: ['50%', '50%'],
roseType: 'area',
name: "面积模式",
type: "pie",
radius: [50, 120],
center: ["50%", "50%"],
roseType: "area",
itemStyle: { borderRadius: 8 },
data: [
{ value: 40, name: 'rose 1' },
{ value: 38, name: 'rose 2' },
{ value: 32, name: 'rose 3' },
{ value: 30, name: 'rose 4' },
{ value: 28, name: 'rose 5' },
{ value: 26, name: 'rose 6' },
{ value: 22, name: 'rose 7' },
{ value: 18, name: 'rose 8' }
]
}
]
{ value: 40, name: "rose 1" },
{ value: 38, name: "rose 2" },
{ value: 32, name: "rose 3" },
{ value: 30, name: "rose 4" },
{ value: 28, name: "rose 5" },
{ value: 26, name: "rose 6" },
{ value: 22, name: "rose 7" },
{ value: 18, name: "rose 8" },
],
},
],
};
this.myChart1.setOption(option);
window.addEventListener('resize', () => {
window.addEventListener("resize", () => {
this.myChart1.resize();
});
});
},
getEchart2() {
this.$nextTick(() => {
this.$echarts.init(document.getElementById('echart2')).dispose();
this.myChart2 = this.$echarts.init(document.getElementById('echart2'));
this.$echarts.init(document.getElementById("echart2")).dispose();
this.myChart2 = this.$echarts.init(document.getElementById("echart2"));
let option = {
xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] },
yAxis: { type: 'value' },
title: {
text: "隐患分类统计",
},
xAxis: {
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: { type: "value" },
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
type: "bar",
showBackground: true,
backgroundStyle: { color: 'rgba(180, 180, 180, 0.2)' }
}
]
backgroundStyle: { color: "rgba(180, 180, 180, 0.2)" },
},
],
};
this.myChart2.setOption(option);
window.addEventListener('resize', () => {
window.addEventListener("resize", () => {
this.myChart2.resize();
});
});
},
getEchart3() {
this.$nextTick(() => {
this.$echarts.init(document.getElementById('echart3')).dispose();
this.myChart3 = this.$echarts.init(document.getElementById('echart3'));
this.$echarts.init(document.getElementById("echart3")).dispose();
this.myChart3 = this.$echarts.init(document.getElementById("echart3"));
let option = {
xAxis: { type: 'category', boundaryGap: false, data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] },
yAxis: { type: 'value' },
series: [{ data: [820, 932, 901, 934, 1290, 1330, 1320], type: 'line', areaStyle: {} }]
title: {
text: "装置信息统计",
},
xAxis: {
type: "category",
boundaryGap: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: { type: "value" },
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: "line",
areaStyle: {},
},
],
};
this.myChart3.setOption(option);
window.addEventListener('resize', () => {
window.addEventListener("resize", () => {
this.myChart3.resize();
});
});
},
getEchart4() {
this.$nextTick(() => {
this.$echarts.init(document.getElementById('echart4')).dispose();
this.myChart4 = this.$echarts.init(document.getElementById('echart4'));
this.$echarts.init(document.getElementById("echart4")).dispose();
this.myChart4 = this.$echarts.init(document.getElementById("echart4"));
let option = {
xAxis: {},
yAxis: {},
title: {
text: "装置在线统计",
},
tooltip: {
trigger: "item",
},
legend: {
top: "5%",
left: "center",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
avoidLabelOverlap: false,
itemStyle: {
borderRadius: 10,
borderColor: "#fff",
borderWidth: 2,
},
label: {
show: false,
position: "center",
},
emphasis: {
label: {
show: true,
fontSize: 40,
fontWeight: "bold",
},
},
labelLine: {
show: false,
},
data: [
[10, 40],
[50, 100],
[40, 20]
{ value: 1048, name: "在线" },
{ value: 735, name: "离线" },
],
},
],
type: 'line'
}
]
};
this.myChart4.setOption(option);
window.addEventListener('resize', () => {
window.addEventListener("resize", () => {
this.myChart4.resize();
});
});
}
}
},
},
};
</script>
<style scoped>
<style lang="less">
.echartsPage {
height: calc(100% - 32px);
padding: 16px;
display: flex;
flex-direction: column;
justify-content: space-around;
.echart-top {
display: flex;
height: 48%;
justify-content: space-between;
width: 100%;
height: 500px;
.el-card {
width: 48%;
height: 100%;
.el-card__body {
height: calc(100% - 40px);
}
}
}
}
</style>

@ -1,5 +1,6 @@
const { defineConfig } = require("@vue/cli-service");
const path = require("path");
const webpack = require("webpack");
module.exports = defineConfig({
//打包清除console
chainWebpack(config) {
@ -37,4 +38,14 @@ module.exports = defineConfig({
},
},
},
chainWebpack: (config) => {
config.plugin("provide").use(webpack.ProvidePlugin, [
{
$: "jquery",
jquery: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
},
]);
},
});

Loading…
Cancel
Save