hn2.0
fanluyan 5 months ago
parent 70de54a652
commit a83daa23fa

@ -3,20 +3,9 @@
<div class="photoBox">
<div class="photoGraphicBtnGroup">
<h4>拍照装置管理</h4>
<div>
<el-button
type="primary"
icon="el-icon-plus"
@click="handleAddPhoto()"
<el-button type="primary" icon="el-icon-plus" @click="handleAddPhoto()"
>新增</el-button
>
<el-button
type="primary"
icon="el-icon-document"
@click="handleExport()"
>导出</el-button
>
</div>
</div>
<div class="searchBox">
<el-form :inline="true" :model="formdata" class="demo-form-inline">
@ -58,7 +47,6 @@
<el-input
v-model="formdata.search"
placeholder="请输入线路/杆塔/设备编号"
clearable
></el-input>
</el-form-item>
<el-form-item>
@ -95,11 +83,6 @@
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
prop="towerName"
@ -107,11 +90,6 @@
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
prop="equipName"
@ -177,13 +155,6 @@
:formatter="dateFormat"
>
</el-table-column> -->
<el-table-column
prop="protocolName"
label="规约名称"
show-overflow-tooltip
min-width="90"
v-if="roleUser != 2"
/>
<el-table-column
prop="lastHeartbeat"
label="最后一次心跳时间"
@ -236,7 +207,6 @@
min-width="90"
>
</el-table-column>
<!-- <el-table-column
prop="cmdid"
label=" 连续工作时间
@ -266,7 +236,7 @@
<el-table-column
fixed="right"
label="操作"
width="540"
width="520"
v-if="roleUser != 2"
>
<template slot-scope="scope">
@ -275,17 +245,17 @@
type="text"
>修改</el-button
>
<!-- <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
<el-button
type="text"
@click.native.stop="handleImageCapture(scope.row)"
>图像参数</el-button
@ -294,7 +264,7 @@
type="text"
@click.native.stop="handleVideoCapture(scope.row)"
>视频参数</el-button
> -->
>
<el-button
type="text"
@click.native.stop="handleShowGPS(scope.row)"
@ -332,26 +302,26 @@
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button
<!-- <el-button
type="text"
class="deleteText"
@click.native.stop="handleDelete(scope.row)"
>删除</el-button
>
> -->
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="340" v-else>
<el-table-column fixed="right" label="操作" width="320" v-else>
<template slot-scope="scope">
<el-button
@click.native.stop="handleRevisePhoto(scope.row)"
type="text"
>修改</el-button
>
<!-- <el-button
<el-button
type="text"
@click.native.stop="handlepicture(scope.row)"
>图片标记</el-button
> -->
>
<el-button
type="text"
@ -376,12 +346,12 @@
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button
<!-- <el-button
type="text"
class="deleteText"
@click.native.stop="handleDelete(scope.row)"
>删除</el-button
>
> -->
</template>
</el-table-column>
</el-table>
@ -421,7 +391,6 @@ import {
resetTerminalApi,
setTermGPSJoggle,
getSearchInfo,
getTerminalListExcel,
} from "@/utils/api/index";
import moment from "moment";
import addPhotoDialog from "./components/addPhotoDialog.vue";
@ -485,40 +454,12 @@ export default {
};
},
created() {
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();
this.roleUser = localStorage.getItem("role");
console.log(this.roleUser);
},
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 })
@ -553,7 +494,6 @@ export default {
},
//
onSubmit() {
this.page = 1;
this.terminalList();
},
//
@ -602,11 +542,6 @@ export default {
this.$refs.addPhotoDialogref.display();
this.$refs.addPhotoDialogref.getdataform(null);
},
//
handleExport() {
window.location.href = "/api/api/getTerminalListExcel";
},
//handleResive 线
handleRevisePhoto(data) {
this.photoDialogTitle = "修改";

Loading…
Cancel
Save