|
|
@ -3,7 +3,9 @@
|
|
|
|
<div class="photoBox">
|
|
|
|
<div class="photoBox">
|
|
|
|
<div class="photoGraphicBtnGroup">
|
|
|
|
<div class="photoGraphicBtnGroup">
|
|
|
|
<h4>拍照装置管理</h4>
|
|
|
|
<h4>拍照装置管理</h4>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAddPhoto()" >新增</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAddPhoto()"
|
|
|
|
|
|
|
|
>新增</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</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">
|
|
|
@ -184,7 +186,11 @@
|
|
|
|
min-width="80"
|
|
|
|
min-width="80"
|
|
|
|
><template slot-scope="scope"
|
|
|
|
><template slot-scope="scope"
|
|
|
|
>{{ scope.row.batteryCapacity }} /
|
|
|
|
>{{ scope.row.batteryCapacity }} /
|
|
|
|
{{ scope.row.batteryVoltage.toFixed(1) == 0.0 ? 0 : scope.row.batteryVoltage.toFixed(1)}}V</template
|
|
|
|
{{
|
|
|
|
|
|
|
|
scope.row.batteryVoltage.toFixed(1) == 0.0
|
|
|
|
|
|
|
|
? 0
|
|
|
|
|
|
|
|
: scope.row.batteryVoltage.toFixed(1)
|
|
|
|
|
|
|
|
}}V</template
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -373,7 +379,7 @@ import {
|
|
|
|
deleteTerminalJoggle,
|
|
|
|
deleteTerminalJoggle,
|
|
|
|
resetTerminalApi,
|
|
|
|
resetTerminalApi,
|
|
|
|
setTermGPSJoggle,
|
|
|
|
setTermGPSJoggle,
|
|
|
|
getSearchInfo
|
|
|
|
getSearchInfo,
|
|
|
|
} 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";
|
|
|
@ -398,7 +404,7 @@ export default {
|
|
|
|
dyId: 0,
|
|
|
|
dyId: 0,
|
|
|
|
lineId: 0,
|
|
|
|
lineId: 0,
|
|
|
|
towerId: 0,
|
|
|
|
towerId: 0,
|
|
|
|
searchnr:''
|
|
|
|
searchnr: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
roleUser: "",
|
|
|
|
roleUser: "",
|
|
|
|
terminalTableData: [], //表格数据
|
|
|
|
terminalTableData: [], //表格数据
|
|
|
@ -525,12 +531,14 @@ export default {
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
if (res.code == 200) {
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
showClose: true,
|
|
|
|
showClose: true,
|
|
|
|
message: "装置已复位",
|
|
|
|
message: "装置已复位",
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
showClose: true,
|
|
|
|
showClose: true,
|
|
|
|
message: res.msg,
|
|
|
|
message: res.msg,
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
@ -540,11 +548,12 @@ export default {
|
|
|
|
.catch((err) => {});
|
|
|
|
.catch((err) => {});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.$message({
|
|
|
|
// this.$message({
|
|
|
|
showClose: true,
|
|
|
|
// duration: 1500,
|
|
|
|
type: "info",
|
|
|
|
// showClose: true,
|
|
|
|
message: "已取消删除",
|
|
|
|
// type: "info",
|
|
|
|
});
|
|
|
|
// message: "已取消删除",
|
|
|
|
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取GPS位置
|
|
|
|
//获取GPS位置
|
|
|
@ -562,12 +571,14 @@ export default {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
if (val == 0) {
|
|
|
|
if (val == 0) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
message: "关闭GPS",
|
|
|
|
message: "关闭GPS",
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
showClose: true,
|
|
|
|
showClose: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
message: "成功开启GPS",
|
|
|
|
message: "成功开启GPS",
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
showClose: true,
|
|
|
|
showClose: true,
|
|
|
@ -642,17 +653,19 @@ export default {
|
|
|
|
this.terminalList(); //刷新
|
|
|
|
this.terminalList(); //刷新
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
message: "删除成功!",
|
|
|
|
message: "删除成功!",
|
|
|
|
showClose: true,
|
|
|
|
showClose: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.$message({
|
|
|
|
// this.$message({
|
|
|
|
type: "info",
|
|
|
|
// duration: 1500,
|
|
|
|
message: "已取消删除",
|
|
|
|
// type: "info",
|
|
|
|
showClose: true,
|
|
|
|
// message: "已取消删除",
|
|
|
|
});
|
|
|
|
// showClose: true,
|
|
|
|
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//点击分页
|
|
|
|
//点击分页
|
|
|
@ -665,7 +678,7 @@ export default {
|
|
|
|
this.pageSize = val;
|
|
|
|
this.pageSize = val;
|
|
|
|
this.terminalList();
|
|
|
|
this.terminalList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|