|
|
@ -79,17 +79,19 @@
|
|
|
|
@row-click="handleRowClick"
|
|
|
|
@row-click="handleRowClick"
|
|
|
|
v-loading="loading"
|
|
|
|
v-loading="loading"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- <el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="cmdid"
|
|
|
|
fixed
|
|
|
|
|
|
|
|
prop="dyValueName"
|
|
|
|
label="电压等级"
|
|
|
|
label="电压等级"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column> -->
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<template slot="empty">
|
|
|
|
<template slot="empty">
|
|
|
|
<el-empty :image-size="160" description="暂无数据"></el-empty>
|
|
|
|
<el-empty :image-size="160" description="暂无数据"></el-empty>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
fixed
|
|
|
|
prop="lineName"
|
|
|
|
prop="lineName"
|
|
|
|
label="线路名称"
|
|
|
|
label="线路名称"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
@ -102,6 +104,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
fixed
|
|
|
|
prop="towerName"
|
|
|
|
prop="towerName"
|
|
|
|
label="杆塔名称"
|
|
|
|
label="杆塔名称"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
@ -114,6 +117,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
fixed
|
|
|
|
prop="equipName"
|
|
|
|
prop="equipName"
|
|
|
|
label="设备名称"
|
|
|
|
label="设备名称"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
@ -121,62 +125,42 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
fixed
|
|
|
|
prop="cmdId"
|
|
|
|
prop="cmdId"
|
|
|
|
label="设备编号"
|
|
|
|
label="设备编号"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
min-width="150"
|
|
|
|
min-width="150"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
|
|
|
prop="cmdid"
|
|
|
|
|
|
|
|
label="SIM卡号"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="cmdid"
|
|
|
|
prop="isonline"
|
|
|
|
label="网络类型"
|
|
|
|
label="是否在线"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
fixed
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.isonline ? "在线" : "离线" }}</template
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="cmdid"
|
|
|
|
<el-table-column prop="cmdid" label="SIM卡号" show-overflow-tooltip>
|
|
|
|
label="状态"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="cmdid" label="网络类型" show-overflow-tooltip>
|
|
|
|
prop="cmdid"
|
|
|
|
|
|
|
|
label="装置型号"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="cmdid"
|
|
|
|
<el-table-column prop="cmdid" label="装置型号" show-overflow-tooltip>
|
|
|
|
label="装置厂家"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="cmdid" label="装置厂家" show-overflow-tooltip>
|
|
|
|
prop="cmdid"
|
|
|
|
</el-table-column>
|
|
|
|
label="规约版本"
|
|
|
|
<el-table-column prop="cmdid" label="规约版本" show-overflow-tooltip>
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="cmdid"
|
|
|
|
prop="cmdid"
|
|
|
|
label="投运日期"
|
|
|
|
label="投运日期"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
|
|
|
|
:formatter="dateFormat"
|
|
|
|
:formatter="dateFormat"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column> -->
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="protocolName"
|
|
|
|
prop="protocolName"
|
|
|
|
label="规约名称"
|
|
|
|
label="规约名称"
|
|
|
@ -265,10 +249,38 @@
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
fixed="right"
|
|
|
|
fixed="right"
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
|
width="540"
|
|
|
|
width="340"
|
|
|
|
v-if="roleUser != 2"
|
|
|
|
v-if="roleUser != 2"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-dropdown
|
|
|
|
|
|
|
|
class="dropgps"
|
|
|
|
|
|
|
|
trigger="click"
|
|
|
|
|
|
|
|
@command="
|
|
|
|
|
|
|
|
(command) => {
|
|
|
|
|
|
|
|
handleSearchCommand(command, scope.row);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
|
|
|
|
数据查询<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
|
|
|
<el-dropdown-item command="info">基本信息</el-dropdown-item>
|
|
|
|
|
|
|
|
<el-dropdown-item command="workStatus"
|
|
|
|
|
|
|
|
>工作状态</el-dropdown-item
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-dropdown-item command="runStatus"
|
|
|
|
|
|
|
|
>运行状态</el-dropdown-item
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-dropdown-item command="GPS">GPS位置</el-dropdown-item>
|
|
|
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
@click.native.stop="handleParameterSet(scope.row)"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
>参数配置</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@click.native.stop="handleRevisePhoto(scope.row)"
|
|
|
|
@click.native.stop="handleRevisePhoto(scope.row)"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -279,7 +291,7 @@
|
|
|
|
@click.native.stop="handlepicture(scope.row)"
|
|
|
|
@click.native.stop="handlepicture(scope.row)"
|
|
|
|
>图片标记</el-button
|
|
|
|
>图片标记</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click.native.stop="handleDeviceReset(scope.row)"
|
|
|
|
@click.native.stop="handleDeviceReset(scope.row)"
|
|
|
|
>装置复位</el-button
|
|
|
|
>装置复位</el-button
|
|
|
@ -298,7 +310,7 @@
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click.native.stop="handleShowGPS(scope.row)"
|
|
|
|
@click.native.stop="handleShowGPS(scope.row)"
|
|
|
|
>获取GPS位置</el-button
|
|
|
|
>获取GPS位置</el-button
|
|
|
|
>
|
|
|
|
> -->
|
|
|
|
<!-- <el-select
|
|
|
|
<!-- <el-select
|
|
|
|
class="dropgps"
|
|
|
|
class="dropgps"
|
|
|
|
v-model="gpsvalue"
|
|
|
|
v-model="gpsvalue"
|
|
|
@ -314,7 +326,7 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select> -->
|
|
|
|
</el-select> -->
|
|
|
|
<el-dropdown
|
|
|
|
<!-- <el-dropdown
|
|
|
|
class="dropgps"
|
|
|
|
class="dropgps"
|
|
|
|
trigger="click"
|
|
|
|
trigger="click"
|
|
|
|
@command="
|
|
|
|
@command="
|
|
|
@ -330,7 +342,7 @@
|
|
|
|
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-dropdown> -->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
class="deleteText"
|
|
|
|
class="deleteText"
|
|
|
@ -339,7 +351,7 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column fixed="right" label="操作" width="340" v-else>
|
|
|
|
<el-table-column fixed="right" label="操作" width="180" v-else>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@click.native.stop="handleRevisePhoto(scope.row)"
|
|
|
|
@click.native.stop="handleRevisePhoto(scope.row)"
|
|
|
@ -352,7 +364,7 @@
|
|
|
|
>图片标记</el-button
|
|
|
|
>图片标记</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click.native.stop="handleShowGPS(scope.row)"
|
|
|
|
@click.native.stop="handleShowGPS(scope.row)"
|
|
|
|
>获取GPS位置</el-button
|
|
|
|
>获取GPS位置</el-button
|
|
|
@ -374,7 +386,11 @@
|
|
|
|
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
</el-dropdown> -->
|
|
|
|
|
|
|
|
=======
|
|
|
|
</el-dropdown>
|
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
>>>>>>> hn1.0
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
class="deleteText"
|
|
|
|
class="deleteText"
|
|
|
@ -417,8 +433,8 @@
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getTerminalJoggle,
|
|
|
|
getTerminalJoggle,
|
|
|
|
deleteTerminalJoggle,
|
|
|
|
deleteTerminalJoggle,
|
|
|
|
resetTerminalApi,
|
|
|
|
// resetTerminalApi,
|
|
|
|
setTermGPSJoggle,
|
|
|
|
// setTermGPSJoggle,
|
|
|
|
getSearchInfo,
|
|
|
|
getSearchInfo,
|
|
|
|
getTerminalListExcel,
|
|
|
|
getTerminalListExcel,
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
} from "@/utils/api/index";
|
|
|
@ -561,6 +577,7 @@ export default {
|
|
|
|
this.getSearchdy();
|
|
|
|
this.getSearchdy();
|
|
|
|
this.page = 1;
|
|
|
|
this.page = 1;
|
|
|
|
this.pageSize = 20;
|
|
|
|
this.pageSize = 20;
|
|
|
|
|
|
|
|
|
|
|
|
this.terminalList();
|
|
|
|
this.terminalList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
////获取拍照装置列表数据
|
|
|
|
////获取拍照装置列表数据
|
|
|
@ -613,105 +630,6 @@ export default {
|
|
|
|
this.$refs.addPhotoDialogref.getdataform(data);
|
|
|
|
this.$refs.addPhotoDialogref.getdataform(data);
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//装置复位
|
|
|
|
|
|
|
|
handleDeviceReset(data) {
|
|
|
|
|
|
|
|
this.$confirm("此操作将复位装置, 是否继续?", "提示", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
resetTerminalApi({ cmId: data.cmdId })
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
message: "装置已复位",
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
message: res.msg,
|
|
|
|
|
|
|
|
type: "error",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
|
|
// duration: 1500,
|
|
|
|
|
|
|
|
// showClose: true,
|
|
|
|
|
|
|
|
// type: "info",
|
|
|
|
|
|
|
|
// message: "已取消删除",
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取GPS位置
|
|
|
|
|
|
|
|
handleShowGPS(data) {
|
|
|
|
|
|
|
|
// this.$refs.gpsdialog_ref.display();
|
|
|
|
|
|
|
|
// this.$refs.gpsdialog_ref.getgpsData(data);
|
|
|
|
|
|
|
|
this.$refs.gpsdialog_ref.display(data);
|
|
|
|
|
|
|
|
this.$refs.gpsdialog_ref.getgpssql();
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//切换gps开启关闭
|
|
|
|
|
|
|
|
changeGPS(val, row) {
|
|
|
|
|
|
|
|
console.log(val, row);
|
|
|
|
|
|
|
|
setTermGPSJoggle({ gpsstatus: val, cmdId: row.cmdId })
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
if (val == 0) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
message: "关闭GPS",
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
message: "成功开启GPS",
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleCommand(command, row) {
|
|
|
|
|
|
|
|
console.log(command, row);
|
|
|
|
|
|
|
|
switch (command) {
|
|
|
|
|
|
|
|
case "open": //开启
|
|
|
|
|
|
|
|
this.changeGPS(1, row);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "close": //关闭
|
|
|
|
|
|
|
|
this.changeGPS(0, row);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// gpsChange(val) {
|
|
|
|
|
|
|
|
// console.log(val);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
//图像采集参数
|
|
|
|
|
|
|
|
handleImageCapture(data) {
|
|
|
|
|
|
|
|
this.$refs.imageCaptureref.display();
|
|
|
|
|
|
|
|
this.$refs.imageCaptureref.getSingleAccess(data);
|
|
|
|
|
|
|
|
this.$refs.imageCaptureref.getRatio();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//视频采集参数
|
|
|
|
|
|
|
|
handleVideoCapture(data) {
|
|
|
|
|
|
|
|
this.$refs.videoCaptureref.display();
|
|
|
|
|
|
|
|
this.$refs.videoCaptureref.getSingleAccess(data);
|
|
|
|
|
|
|
|
this.$refs.videoCaptureref.getRatio();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//线缆绘制
|
|
|
|
//线缆绘制
|
|
|
|
handlepicture(data) {
|
|
|
|
handlepicture(data) {
|
|
|
@ -846,7 +764,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.dropgps {
|
|
|
|
.dropgps {
|
|
|
|
color: @color-primary;
|
|
|
|
color: @color-primary;
|
|
|
|
margin-left: 16px;
|
|
|
|
// margin-left: 16px;
|
|
|
|
// margin-right: 16px;
|
|
|
|
// margin-right: 16px;
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 12px;
|
|
|
|
font-size: 12px;
|
|
|
|