diff --git a/src/assets/css/element.less b/src/assets/css/element.less
index 85d1292..f853f84 100644
--- a/src/assets/css/element.less
+++ b/src/assets/css/element.less
@@ -56,3 +56,7 @@
.el-button--small {
padding: 9px 9px;
}
+.el-button--default,
+.el-button--primary {
+ width: 80px;
+}
diff --git a/src/assets/img/user.jpeg b/src/assets/img/user.jpeg
index e1e15f8..a756e8a 100644
Binary files a/src/assets/img/user.jpeg and b/src/assets/img/user.jpeg differ
diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue
index e9a3c2f..d3e99d9 100644
--- a/src/components/common/Sidebar.vue
+++ b/src/components/common/Sidebar.vue
@@ -93,15 +93,15 @@ export default {
index: "/towerInformation",
title: "杆塔信息管理",
},
- {
- index: "/photographicDevice",
- title: "拍照装置管理",
- },
{
index: "/cameraChannel",
title: "通道管理",
},
+ {
+ index: "/photographicDevice",
+ title: "拍照装置管理",
+ },
{
icon: "el-icon-setting",
index: "/devicePhotoSchedule",
diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue
index 2c20b6d..b6d3a84 100644
--- a/src/views/components/carouselChart.vue
+++ b/src/views/components/carouselChart.vue
@@ -3,6 +3,8 @@
-
+
-
+
@@ -77,7 +78,7 @@ export default {
return {
isShow: false,
rules: {
- name: [{ required: true, message: "请输入名称", trigger: "blur" }]
+ name: [{ required: true, message: "请输入名称", trigger: "blur" }],
},
ruleForm: {},
};
@@ -87,7 +88,7 @@ export default {
getdataform(val) {
console.log(val);
if (val == null) {
- return this.ruleForm = {
+ return (this.ruleForm = {
name: "",
list: [
{
@@ -96,10 +97,10 @@ export default {
},
],
remark: "",
- };
+ });
}
this.ruleForm = val;
- this.ruleForm.list.forEach(val => {
+ this.ruleForm.list.forEach((val) => {
this.$set(val, "time", [val.startTime, val.endTime]);
});
},
@@ -132,12 +133,12 @@ export default {
this.$refs.formInfo.validate((valid) => {
if (valid) {
// delete this.ruleForm.time;
- this.ruleForm.list.forEach(val => {
+ this.ruleForm.list.forEach((val) => {
this.$set(val, "startTime", val.time[0]);
this.$set(val, "endTime", val.time[1]);
});
if (this.title == "新增") {
- addScheduleRulel( this.ruleForm )
+ addScheduleRulel(this.ruleForm)
.then((res) => {
this.isShow = false;
this.$message.success("添加成功");
@@ -168,9 +169,9 @@ export default {
hide() {
this.isShow = false;
},
- handleclose(){
+ handleclose() {
this.$parent.deviceList();
- }
+ },
},
mounted() {},
};
@@ -196,6 +197,7 @@ export default {
height: 32px;
.el-button--small {
padding: 9px 8px;
+ width: 30px;
}
}
}
diff --git a/src/views/devicePhotoSchedule/components/setdevice.vue b/src/views/devicePhotoSchedule/components/setdevice.vue
index 3d1df21..86cc444 100644
--- a/src/views/devicePhotoSchedule/components/setdevice.vue
+++ b/src/views/devicePhotoSchedule/components/setdevice.vue
@@ -8,11 +8,13 @@
>
时间表规则
-
- {{ val.startTime }} ~
- {{ val.endTime }}
- 间隔:{{ val.span }}分钟
-
+
+
+ {{ val.startTime }} ~
+ {{ val.endTime }}
+ 间隔:{{ val.span }}分钟
+
+
+
{{
scope.row.bsManufacturer
@@ -38,13 +39,7 @@
show-overflow-tooltip
>
-
-
+
修改
+ 新增杆塔
-
-
-
+
+
+
@@ -57,19 +46,10 @@
-
-
{{ item.linename }}-{{ item.displayname }}-{{ item.channnelname }}
-
+
{{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }}
@@ -110,6 +90,16 @@ import qs from "qs";
export default {
data() {
return {
+ value: "选项1",
+ page: 1, // 当前页数
+ pageSize: 4, // 每页数量
+ totalPage: 0, //总页数
+ total: 0, //总条数
+ picList: [], //图片列表数据
+ remainingTime: 5, //剩余时间
+ isRuning: false,
+ timer: null,
+ loading: false,
setdialog: false, //设置弹框
speedOptions: [
{
@@ -175,17 +165,6 @@ export default {
label: "倒序",
},
],
- value: "选项1",
- page: 1, // 当前页数
- pageSize: 4, // 每页数量
- totalPage: 0, //总页数
- total: 0, //总条数
- picList: [], //图片列表数据
- basUrl: "",
- remainingTime: 15, //剩余时间
- isRuning: false,
- timer: null,
- loading: false,
};
},
methods: {
@@ -202,7 +181,7 @@ export default {
this.setdialog = false;
this.$message.success("设置成功");
},
- handleSizeChange(val) {},
+ //点击分页
handleCurrentChange(val) {
this.isRuning = false;
this.pauseCountdown();
@@ -217,6 +196,7 @@ export default {
pagesize: this.pageSize,
})
.then((res) => {
+ console.log(this.totalPage);
this.picList = res.data.list;
this.totalPage = res.data.totalpage;
this.total = res.data.total;
@@ -226,22 +206,23 @@ export default {
console.log(err);
});
},
-
- //开始轮巡
+ //开始轮询
startCountdown() {
+ console.log(this.remainingTime);
this.timer = setInterval(() => {
if (this.remainingTime <= 0) {
- //等于0时 清除定时器,剩余时间等于总时间,从新执行当前轮巡函数
- clearInterval(this.timer);
- this.remainingTime = parseInt(localStorage.getItem("totalTime"))
- ? parseInt(localStorage.getItem("totalTime"))
- : 15;
- this.startCountdown();
+ this.clearTimer();
+ console.log("结束");
this.page++;
- this.getPicData();
- if (this.page >= this.totalPage) {
- clearInterval(this.timer);
- this.page = 1;
+ console.log(this.totalPage);
+ if (this.page > this.totalPage) {
+ console.log("组后一页");
+ this.page = 0;
+ this.startCountdown();
+ } else {
+ console.log(this.page);
+ this.remainingTime = 5;
+ this.getPicData();
this.startCountdown();
}
} else {
@@ -249,20 +230,28 @@ export default {
}
}, 1000);
},
-
- //暂停轮巡
+ clearTimer() {
+ //清除定时器
+ clearInterval(this.timer);
+ this.timer = null;
+ },
pauseCountdown() {
- clearInterval(this.timer); //清除定时器
+ //清除定时器
+ clearInterval(this.timer);
+ this.timer = null;
},
//根据isRuning执行开始暂停操作
toggleCountdown() {
if (this.isRuning) {
+ console.log(this.isRuning);
this.pauseCountdown();
} else {
+ console.log(this.isRuning);
this.startCountdown();
this.getPicData();
}
this.isRuning = !this.isRuning;
+ console.log(this.isRuning);
},
},
computed: {},
@@ -298,7 +287,7 @@ export default {
.info {
width: 80px;
text-align: center;
- margin-left: 16px;
+ margin-right: 16px;
line-height: 32px;
b {
font-size: 24px;
@@ -315,18 +304,20 @@ export default {
// justify-content: space-around;
flex-wrap: wrap;
height: calc(100% - 52px);
+ justify-content: space-between;
.imgList {
- width: 49.4%;
+ width: 49.8%;
position: relative;
display: inline-block;
- margin-right: 0.25%;
- margin-left: 0.25%;
- margin-top: 0.3%;
+ margin-right: 0.1%;
+ margin-left: 0.1%;
+ margin-top: 0.1%;
+ margin-bottom: 0.1%;
position: relative;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px px;
- height: 49%;
+ height: 49.8%;
.bigpic {
width: 100%;
height: 100%;
@@ -342,7 +333,7 @@ export default {
bottom: 28px;
left: 0px;
font-size: 14px;
- background-color: #3a87ad !important;
+ background: linear-gradient(180deg, #00eaff 10%, #409eff 100%);
color: @color-white;
font-weight: normal;
margin-top: 2px;
@@ -355,7 +346,7 @@ export default {
color: @color-white;
left: 0px;
font-size: 14px;
- background-color: #51b17c !important;
+ background: linear-gradient(180deg, #00eaff 10%, #409eff 100%);
font-weight: normal;
margin-top: 2px;
padding-left: 5px;
diff --git a/src/views/pictureRotation/indexbak.vue b/src/views/pictureRotation/indexbak.vue
new file mode 100644
index 0000000..e959e67
--- /dev/null
+++ b/src/views/pictureRotation/indexbak.vue
@@ -0,0 +1,351 @@
+
+
+
+
+
+
+
+
+
+ {{ isRuning ? remainingTime : "已暂停" }}
+
+ {{
+ isRuning ? "暂停轮巡" : "开始轮巡"
+ }}
+ 设置
+
+
+
+
+
+
+
+
+
+
+
+

+
+
+ {{ item.linename }}-{{ item.displayname }}-{{ item.channnelname }}
+
+
+ {{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/realTimeMonitor/components/infoDialog.vue b/src/views/realTimeMonitor/components/infoDialog.vue
index c68a9cb..573f845 100644
--- a/src/views/realTimeMonitor/components/infoDialog.vue
+++ b/src/views/realTimeMonitor/components/infoDialog.vue
@@ -19,30 +19,32 @@
电池电压 {{ infornr.batteryVoltage }}
+ >{{ infornr.batteryVoltage }}V
MEID {{ infornr.cmld }}
网络连接状态 {{ infornr.connectionState }}
+ >{{ infornr.connectionState == 0 ? "正常" : "断开" }}
浮充状态 {{ infornr.floatingCharge }}
+ >{{ infornr.floatingCharge == 0 ? "充电" : "放电" }}
- 工作总时间(小时) {{ infornr.totalWorkingTime }}
+ 工作总时间 {{ infornr.totalWorkingTime }}小时
- 本次连续工作时间(小时) {{ infornr.workingTime }}
+ 本次连续工作时间 {{ infornr.workingTime }}小时
工作状态更新时间 {{ $moment(infornr.wsUpdateTime).format("yy-MM-DD HH:mm:ss") }}
+ >{{
+ $moment(infornr.wsUpdateTime * 1000).format("yy-MM-DD HH:mm:ss")
+ }}
@@ -64,20 +66,20 @@ export default {
isShow: false,
infornr: {}, //装置信息内容
timer: null,
- queryTime:'',//查询ID
- cmdid:''
+ queryTime: "", //查询ID
+ cmdid: "",
};
},
mounted() {},
methods: {
//获取第一次数据
- getListData(val,cmdid) {
- this.cmdid = cmdid
+ getListData(val, cmdid) {
+ this.cmdid = cmdid;
getDeviceList({
termId: val,
})
.then((res) => {
- this.queryTime = res.data.queryTime
+ this.queryTime = res.data.queryTime;
this.getNewListData(val);
this.timer = window.setInterval(() => {
this.getNewListData(val);
@@ -92,7 +94,7 @@ export default {
termId: val,
})
.then((res) => {
- this.loading = false
+ this.loading = false;
if (res.data.isNew == true) {
this.infornr = res.data;
this.$message({
@@ -100,7 +102,7 @@ export default {
type: "success",
});
clearInterval(this.timer);
- }else{
+ } else {
this.infornr = res.data;
}
})
diff --git a/src/views/realTimeMonitor/components/setschedule.vue b/src/views/realTimeMonitor/components/setschedule.vue
index 176a2f8..472ecd2 100644
--- a/src/views/realTimeMonitor/components/setschedule.vue
+++ b/src/views/realTimeMonitor/components/setschedule.vue
@@ -20,9 +20,9 @@
>
查询
- 查询实际时间表
+ > -->
时间表:
@@ -67,7 +67,7 @@
>
{{ val.startTime }} ~
{{ val.endTime }}
- 间隔:
{{ val.span }}分钟
+ 间隔:
{{ val.span }}分钟
- 手动拍照
+ 主动拍照
- 手动拍视频
+ 主动录像
手动拍视频 -->
- 获取GPS位置
+ > -->
装置信息
- 开启GPS
关闭GPS
-
+ -->
声光报警