优化覆冰

jc
fanluyan 1 year ago
parent b831f47089
commit 83368b1f10

@ -1,6 +1,7 @@
<template>
<div class="header">
<div class="logoTitle">视频监控可视化平台</div>
<div class="logoTitle" v-if="notes == '覆冰用户使用'">线</div>
<div class="logoTitle" v-else></div>
<div class="menuBox">
<vSidebar></vSidebar>
<div class="userInfo">
@ -42,6 +43,7 @@ export default {
return {
userName: localStorage.getItem("userName"),
role: localStorage.getItem("role"),
notes: localStorage.getItem("notes"),
};
},
methods: {

@ -10,6 +10,7 @@ export default new Vuex.Store({
userName: "",
uid: "",
role: "",
notes: "",
currentData: "",
channelId: "",
termId: "",
@ -22,6 +23,7 @@ export default new Vuex.Store({
token: (state) => state.token,
userName: (state) => state.userName,
role: (state) => state.role,
notes: (state) => state.notes,
menuPermission: (state) => state.resources,
},
mutations: {
@ -67,6 +69,7 @@ export default new Vuex.Store({
state.userName = val.userName;
state.uid = val.uid;
state.role = val.role;
state.notes = val.notes;
if (val.role !== 0) {
state.resources = val.resources;
const menuArr = val.resources
@ -82,6 +85,7 @@ export default new Vuex.Store({
localStorage.setItem("userName", state.userName);
localStorage.setItem("uid", state.uid);
localStorage.setItem("role", state.role);
localStorage.setItem("notes", state.notes);
},
//退出清除locastorge
REMOVE_INFO(state) {

@ -46,7 +46,7 @@
<div id="echart2" class="chartClass" v-loading="pieloading"></div>
</el-card>
</div>
<div class="echart-top">
<div class="echart-top" v-if="notes !== '覆冰用户使用'">
<el-card class="box-card" v-loading="barloading">
<h3>7天告警数量统计</h3>
<div class="dateBox">
@ -165,6 +165,7 @@ export default {
onLineData: [],
exportLoading: false,
paramsLineVal: "",
notes: localStorage.getItem("notes"),
};
},
created() {
@ -191,6 +192,9 @@ export default {
methods: {
//线
handleLook(val) {
if (this.notes == "覆冰用户使用") {
return;
}
console.log(val);
this.paramsLineVal = val;
this.dialogTableVisible = true;

@ -221,12 +221,7 @@
}}</template
>
</el-table-column>
<el-table-column
prop="status"
label="装置状态"
show-overflow-tooltip
v-if="roleUser != 2"
>
<el-table-column prop="status" label="装置状态" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.status == 1 ? "运行中" : "已删除" }}
</template>
@ -235,7 +230,7 @@
fixed="right"
label="操作"
width="320"
v-if="roleUser != 2"
v-if="roleUser == 2"
>
<template slot-scope="scope">
<el-dropdown
@ -264,22 +259,7 @@
>
</el-dropdown-menu>
</el-dropdown>
<!-- <el-button
:disabled="
scope.row.onlinestatus == 0 || scope.row.onlinestatus != 1
"
@click.native.stop="handlexmSet(scope.row)"
type="text"
>休眠</el-button
>
<el-button
:disabled="
scope.row.onlinestatus == 0 || scope.row.onlinestatus != -1
"
@click.native.stop="handlehqSet(scope.row)"
type="text"
>唤起</el-button
> -->
<el-button
@click.native.stop="handleParameterSet(scope.row)"
type="text"
@ -311,6 +291,7 @@
>修改</el-button
>
<el-button
v-if="notes !== '覆冰用户使用'"
type="text"
@click.native.stop="handlepicture(scope.row)"
>图片标记</el-button
@ -434,6 +415,7 @@ export default {
},
],
gpsvalue: "1",
notes: localStorage.getItem("notes"),
};
},
created() {
@ -456,31 +438,6 @@ export default {
this.terminalList();
},
methods: {
// //
// handlexmSet(row) {
// console.log(row);
// this.$message({
// duration: 1000,
// type: "success",
// message: "...",
// showClose: true,
// });
// setTimeout(() => {
// row.onlinestatus = -1;
// }, 1500);
// },
// //
// handlehqSet(row) {
// this.$message({
// duration: 1000,
// type: "success",
// message: "...",
// showClose: true,
// });
// setTimeout(() => {
// row.onlinestatus = 1;
// }, 1500);
// },
getRowKeys(row) {
return row.id;
},

@ -35,6 +35,10 @@
}}
</el-option>
</el-select>
<el-button class="clearButton" type="primary" @click="clearTimeGrop"
>清除拍照时间表</el-button
>
</div>
<div class="timeContain">
<div class="timeLeft" v-loading="baseTimeLoading">
@ -287,7 +291,6 @@ export default {
handleClick(tab, event) {
console.log(tab, event);
if (tab.name == 1) {
this.selectChannel = 1;
this.getDataBaseTime(this.areaData.id, this.selectChannel);
}
@ -305,15 +308,19 @@ export default {
getChannelSelect() {
getChannelListJoggle({ termid: this.areaData.id })
.then((res) => {
console.log("wwww",Number(localStorage.getItem("channelId")))
console.log("wwww", Number(localStorage.getItem("channelId")));
this.channelList = res.data.list;
this.timeChannelList = res.data.list;
if(Number(localStorage.getItem("channelId"))==1||Number(localStorage.getItem("channelId"))==-1||Number(localStorage.getItem("channelId"))==0){
if (
Number(localStorage.getItem("channelId")) == 1 ||
Number(localStorage.getItem("channelId")) == -1 ||
Number(localStorage.getItem("channelId")) == 0
) {
this.timeChannel = this.channelList[0].channelid;
this.selectChannel = this.channelList[0].channelid;
}else{
} else {
this.timeChannel = Number(localStorage.getItem("channelId"));
this.selectChannel = Number(localStorage.getItem("channelId"))
this.selectChannel = Number(localStorage.getItem("channelId"));
}
// this.timeChannel = this.channelList[0].channelid;
// this.selectChannel = this.channelList[0].channelid;
@ -872,6 +879,16 @@ export default {
})
.catch((err) => {});
},
//
clearTimeGrop() {
console.log("通道", this.selectChannel);
getTermStatus({ termId: this.areaData.id }).then((res) => {
console.log(res);
if (res.data.isonline) {
} else {
}
});
},
//
closebtn() {
this.isShowset = false;
@ -924,6 +941,9 @@ export default {
.searchTime {
.channelBox {
margin-bottom: 12px;
.clearButton {
margin-left: 24px;
}
}
.timeContain {
display: flex;

Loading…
Cancel
Save