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

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

Loading…
Cancel
Save