|
|
@ -44,6 +44,8 @@ export default {
|
|
|
|
"234,124,204",
|
|
|
|
"234,124,204",
|
|
|
|
"3,188,255",
|
|
|
|
"3,188,255",
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
stime: "",
|
|
|
|
|
|
|
|
eTime: "",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
@ -52,6 +54,21 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getsf6data();
|
|
|
|
this.getsf6data();
|
|
|
|
|
|
|
|
const thirtyDaysAgo = new Date();
|
|
|
|
|
|
|
|
const startDate = new Date(
|
|
|
|
|
|
|
|
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
startDate.setHours(0); // 0
|
|
|
|
|
|
|
|
startDate.setMinutes(0); // 0
|
|
|
|
|
|
|
|
startDate.setSeconds(0); // 0
|
|
|
|
|
|
|
|
this.stime = this.$moment(startDate).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const endDate = new Date();
|
|
|
|
|
|
|
|
endDate.setHours(23); // 设置小时为23
|
|
|
|
|
|
|
|
endDate.setMinutes(59); // 设置分钟为59
|
|
|
|
|
|
|
|
endDate.setSeconds(59); // 设置秒数为59
|
|
|
|
|
|
|
|
this.eTime = this.$moment(endDate).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
|
|
|
console.log(this.stime, this.eTime);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
//获取装置类型
|
|
|
|
//获取装置类型
|
|
|
@ -84,8 +101,9 @@ export default {
|
|
|
|
this.tendencyChartTitle = row.name;
|
|
|
|
this.tendencyChartTitle = row.name;
|
|
|
|
getDetailApi({
|
|
|
|
getDetailApi({
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
pageNum: this.page,
|
|
|
|
timeAsc: 1,
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
startTime: this.stime,
|
|
|
|
|
|
|
|
endTime: this.eTime,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|