东视版本

ds1.0
fanluyan 2 years ago
parent 23fd2f1295
commit 84a8857883

@ -64,110 +64,16 @@ export default {
title: "实时监控",
},
{
icon: "el-icon-film",
index: "/pictureRotation",
title: "图片轮巡",
},
{
icon: "el-icon-bell",
index: "/photoAlarm",
title: "告警处理",
},
{
icon: "el-icon-search",
index: "/realTimeSearch",
title: "历史图片",
},
{
icon: "el-icon-files",
index: "/property",
title: "资产管理",
subs: [
{
index: "/lineInformation",
title: "线路信息管理",
},
{
index: "/towerInformation",
title: "杆塔信息管理",
},
{
index: "/cameraChannel",
title: "通道管理",
},
{
index: "/photographicDevice",
title: "拍照装置管理",
},
{
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
{
index: "/deviceReport",
title: "装置报表",
},
{
index: "/waterMark",
title: "水印下发",
},
// {
// index: "/deviceUpgrade",
// title: "",
// },
// {
// icon: "el-icon-picture-outline",
// index: "imageSettings",
// title: "",
// },
],
},
{
icon: "el-icon-monitor",
index: "/system",
title: "系统管理",
subs: [
{
index: "/userManagement",
title: "用户管理",
},
{
index: "/globalTools",
title: "全局设置",
},
],
},
// {
// icon: "el-icon-setting",
// index: "/itOperation",
// title: "",
// icon: "el-icon-film",
// index: "/pictureRotation",
// title: "",
// },
// {
// icon: "el-icon-bell",
// index: "/photoAlarm",
// title: "",
// },
],
items1: [
{
icon: "el-icon-s-home",
index: "stritl",
title: "首页",
},
{
icon: "el-icon-camera",
index: "/realTimeMonitor",
title: "实时监控",
},
{
icon: "el-icon-film",
index: "/pictureRotation",
title: "图片轮巡",
},
{
icon: "el-icon-bell",
index: "/photoAlarm",
title: "告警处理",
},
{
icon: "el-icon-search",
@ -201,85 +107,13 @@ export default {
title: "拍照时间表设置",
},
// {
// index: "/deviceUpgrade",
// title: "",
// index: "/deviceReport",
// title: "",
// },
// {
// icon: "el-icon-picture-outline",
// index: "imageSettings",
// title: "",
// index: "/waterMark",
// title: "",
// },
],
},
{
icon: "el-icon-monitor",
index: "/system",
title: "系统管理",
subs: [
{
index: "/userManagement",
title: "用户管理",
},
// {
// index: "/globalTools",
// title: "",
// },
],
},
],
items2: [
{
icon: "el-icon-s-home",
index: "stritl",
title: "首页",
},
{
icon: "el-icon-camera",
index: "/realTimeMonitor",
title: "实时监控",
},
{
icon: "el-icon-film",
index: "/pictureRotation",
title: "图片轮巡",
},
{
icon: "el-icon-bell",
index: "photoAlarm",
title: "告警处理",
},
{
icon: "el-icon-search",
index: "/realTimeSearch",
title: "历史图片",
},
{
icon: "el-icon-files",
index: "/property",
title: "资产管理",
subs: [
{
index: "/lineInformation",
title: "线路信息管理",
},
{
index: "/towerInformation",
title: "杆塔信息管理",
},
// {
// index: "/cameraChannel",
// title: "",
// },
{
index: "/photographicDevice",
title: "拍照装置管理",
},
{
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
// {
// index: "/deviceUpgrade",
// title: "",
@ -291,6 +125,26 @@ export default {
// },
],
},
// {
// icon: "el-icon-monitor",
// index: "/system",
// title: "",
// subs: [
// {
// index: "/userManagement",
// title: "",
// },
// {
// index: "/globalTools",
// title: "",
// },
// ],
// },
// {
// icon: "el-icon-setting",
// index: "/itOperation",
// title: "",
// },
],
role: "",
@ -312,14 +166,6 @@ export default {
console.log("用户管理");
console.log(this.role);
if (this.role == 0) {
this.items = this.items;
} else if (this.role == 1) {
this.items = this.items1;
} else if (this.role == 2) {
this.items = this.items2;
}
console.log(this.items);
},
};

@ -7,7 +7,7 @@
width="1100px"
@close="handleclose"
>
<div class="zzinfo">装置编号{{ rowData.cmdid }}</div>
<div class="zzinfo">装置编号{{ rowData.cmdId }}</div>
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
<!-- <el-tab-pane label="装置时间" name="1">
<div class="deviceTime">

@ -197,7 +197,7 @@
}}</template
>
</el-table-column>
<el-table-column
<!-- <el-table-column
prop="status"
label="装置状态"
show-overflow-tooltip
@ -206,69 +206,11 @@
<template slot-scope="scope">
{{ scope.row.status == 1 ? "运行中" : "已删除" }}
</template>
</el-table-column>
<!-- <el-table-column
prop="lastHeartbeat"
label="最后一次心跳时间"
show-overflow-tooltip
min-width="150"
>
<template slot-scope="scope">
{{
scope.row.lastHeartbeat == null || scope.row.lastHeartbeat == 0
? ""
: $moment(scope.row.lastHeartbeat * 1000).format(
"yy-MM-DD HH:mm:ss"
)
}}</template
>
</el-table-column>
<el-table-column
prop="bootTime"
label="装置上次启动时间"
show-overflow-tooltip
min-width="150"
>
<template slot-scope="scope"
>{{
scope.row.bootTime == null
? ""
: $moment(scope.row.bootTime * 1000).format(
"yy-MM-DD HH:mm:ss"
)
}}
</template>
</el-table-column>
<el-table-column
label="电量/电压"
show-overflow-tooltip
min-width="80"
><template slot-scope="scope"
>{{ scope.row.batteryCapacity }} /
{{
scope.row.batteryVoltage.toFixed(1) == 0.0
? 0
: scope.row.batteryVoltage.toFixed(1)
}}V</template
>
</el-table-column>
<el-table-column
prop="signalStrength4g"
label="4G信号强度"
show-overflow-tooltip
min-width="90"
>
</el-table-column> -->
<el-table-column
fixed="right"
label="操作"
width="340"
v-if="roleUser != 2"
>
<el-table-column fixed="right" label="操作" width="160">
<template slot-scope="scope">
<el-dropdown
<!-- <el-dropdown
class="dropgps"
trigger="click"
@command="
@ -290,7 +232,7 @@
>
<el-dropdown-item command="GPS">GPS位置</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown> -->
<el-button
@click.native.stop="handleParameterSet(scope.row)"
type="text"
@ -301,63 +243,6 @@
type="text"
>修改</el-button
>
<el-button
type="text"
@click.native.stop="handlepicture(scope.row)"
>图片标记</el-button
>
<!-- <el-button
type="text"
@click.native.stop="handleDeviceReset(scope.row)"
>装置复位</el-button
>
<el-button
type="text"
@click.native.stop="handleImageCapture(scope.row)"
>图像参数</el-button
>
<el-button
type="text"
@click.native.stop="handleVideoCapture(scope.row)"
>视频参数</el-button
>
<el-button
type="text"
@click.native.stop="handleShowGPS(scope.row)"
>获取GPS位置</el-button
> -->
<!-- <el-select
class="dropgps"
v-model="gpsvalue"
placeholder="请选择"
popper-class="gpsdropbox"
@change="gpsChange(scope.row)"
>
<el-option
v-for="item in gpsOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select> -->
<!-- <el-dropdown
class="dropgps"
trigger="click"
@command="
(command) => {
handleCommand(command, scope.row);
}
"
>
<span class="el-dropdown-link">
GPS开关<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
<el-button
type="text"
class="deleteText"
@ -374,50 +259,6 @@
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="180" v-else>
<template slot-scope="scope">
<el-button
@click.native.stop="handleRevisePhoto(scope.row)"
type="text"
>修改</el-button
>
<el-button
type="text"
@click.native.stop="handlepicture(scope.row)"
>图片标记</el-button
>
<!-- <el-button
type="text"
@click.native.stop="handleShowGPS(scope.row)"
>获取GPS位置</el-button
>
<el-dropdown
class="dropgps"
trigger="click"
@command="
(command) => {
handleCommand(command, scope.row);
}
"
>
<span class="el-dropdown-link">
GPS开关<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
<el-button
type="text"
class="deleteText"
@click.native.stop="handleDelete(scope.row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<div class="pageNation">
<el-pagination

@ -213,7 +213,7 @@
</el-dropdown-menu>
</el-dropdown>
<!-- 线缆显示 -->
<el-dropdown
<!-- <el-dropdown
class="dropgps"
trigger="click"
@command="handleCommandLine"
@ -225,7 +225,7 @@
<el-dropdown-item command="open">开启</el-dropdown-item>
<el-dropdown-item command="close">关闭</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown> -->
<!-- 获取gps位置 -->
<el-button type="primary" @click.native.stop="handleShowGPS()"
>获取GPS位置</el-button

@ -46,7 +46,7 @@
<div id="echart2" class="chartClass" v-loading="pieloading"></div>
</el-card>
</div>
<div class="echart-top">
<!-- <div class="echart-top">
<el-card class="box-card" v-loading="barloading">
<h3>7天告警数量统计</h3>
<div class="dateBox">
@ -78,7 +78,7 @@
</div>
<div id="echart4" class="chartClass"></div>
</el-card>
</div>
</div> -->
<el-dialog
class="exportDialog"
title="装置列表"
@ -463,7 +463,7 @@ export default {
padding: 16px;
display: flex;
flex-direction: column;
justify-content: space-around;
// justify-content: space-around;
.echart-top {
display: flex;
height: 48%;

Loading…
Cancel
Save