diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue
index 00fae2f..591983c 100644
--- a/src/views/components/carouselChart.vue
+++ b/src/views/components/carouselChart.vue
@@ -19,8 +19,9 @@
@@ -265,6 +266,11 @@ export default {
},
created() {},
methods: {
+ showbigpicPath(data) {
+ console.log(data);
+ this.bigPicPath = data.substring(0, data.length - 9);
+ console.log(this.bigPicPath);
+ },
handleBigPicbox() {
this.showBigpic = true;
},
diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue
index 80412af..30b2497 100644
--- a/src/views/realTimeMonitor/index.vue
+++ b/src/views/realTimeMonitor/index.vue
@@ -55,9 +55,11 @@
:class="data.onlinestatus == 0 ? 'disconnect' : ''"
style="margin-right: 6px"
>
- {{
- node.label
- }}
+ {{ node.label }}
@@ -202,6 +209,11 @@ import { getSearchInfo, getRealtimePhoto } from "@/utils/api/index";
export default {
data() {
return {
+ pickerOptions: {
+ disabledDate(date) {
+ return date.getTime() > Date.now(); // 禁用大于今天的日期
+ },
+ },
OptionssalseImg: {
inline: false,
button: true,
@@ -250,26 +262,37 @@ export default {
// new Date(new Date().toLocaleDateString()).getTime(),
// new Date().getTime(),
// ]);
- this.$set(
- this.formdata,
- "starttime",
- new Date(new Date().toLocaleDateString()).getTime()
- );
+
this.$set(this.formdata, "endtime", new Date().getTime());
if (JSON.stringify(this.$route.query) === "{}") {
+ this.$set(
+ this.formdata,
+ "starttime",
+ new Date(new Date().toLocaleDateString()).getTime()
+ );
this.getSearchdy();
} else {
console.log(this.$route.query);
this.getSearchdy();
+ console.log(this.$route.query.date);
this.formdata.dyid = this.$route.query.dyId;
this.formdata.lineid = this.$route.query.lineId;
this.formdata.towerid = this.$route.query.towerId;
this.formdata.channelid = this.$route.query.channelId;
this.formdata.termid = this.$route.query.termId;
+
+ this.$set(this.formdata, "starttime", this.$route.query.date);
}
},
methods: {
+ showbigpicPath(item, index) {
+ console.log(item, index);
+ var personBox = document.querySelector(".bigpath" + index);
+ console.log(personBox.src);
+ console.log(item.path);
+ personBox.src = item.path;
+ },
//获取电压信息
getSearchdy() {
getSearchInfo({ type: 1 })
diff --git a/src/views/stritl/index.vue b/src/views/stritl/index.vue
index fec29e3..428dadd 100644
--- a/src/views/stritl/index.vue
+++ b/src/views/stritl/index.vue
@@ -40,6 +40,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
+ @change="changedate"
:picker-options="morepickerOptions"
>
@@ -101,6 +102,7 @@ export default {
mounted() {
this.getTermData();
this.init();
+ console.log(this.value1);
},
watch: {
"$store.state.collapse"(val) {
@@ -115,6 +117,9 @@ export default {
},
},
methods: {
+ changedate() {
+ console.log(this.value1);
+ },
getTermData() {
getTermStatistics()
.then((res) => {