jc1.0
fanluyan 1 year ago
parent 3a104f3991
commit 286e46b3b8

@ -84,14 +84,17 @@ export default {
dataZoom: [
{
type: "inside",
start: 0,
end: 20,
start: 80,
end: 100,
},
{
start: 0,
end: 20,
start: 80,
end: 100,
},
],
grid: {
containLabel: true,
},
xAxis: {
type: "category",
name: "时间",

@ -231,7 +231,7 @@ export default {
key: "compositeKey", // 使 uniqueKey
},
formdata: {
dayValue: 4,
dayValue: -1,
}, //form
dayOptions: [
{
@ -706,6 +706,7 @@ export default {
this.chartDataArr = [];
getDetailApi({
id: id,
timeAsc: 1,
startTime: stime,
endTime: eTime,
})

@ -103,10 +103,10 @@ export default {
type: "slider",
xAxisIndex: [0],
filterMode: "filter",
start: 0,
end: 5,
startValue: 0,
endValue: 10,
start: 90,
end: 100,
// startValue: 90,
// endValue: 100,
textStyle: {
color: this.xFontColor,
},

@ -45,10 +45,27 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
created() {
this.getarresterdata();
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: {
getarresterdata() {
@ -74,8 +91,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

@ -44,10 +44,27 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
created() {
this.getclampdata();
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: {
getclampdata() {
@ -74,8 +91,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

@ -45,10 +45,27 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
created() {
this.getoildata();
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);
},
mounted() {},
methods: {
@ -77,8 +94,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

@ -75,10 +75,27 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
created() {
this.getarresterdata();
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: {
changePartial(val) {
@ -109,8 +126,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

@ -44,6 +44,8 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
mounted() {
@ -52,6 +54,21 @@ export default {
},
created() {
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: {
//
@ -84,8 +101,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

@ -44,10 +44,27 @@ export default {
"234,124,204",
"3,188,255",
],
stime: "",
eTime: "",
};
},
created() {
this.getwinddata();
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: {
getwinddata() {
@ -74,8 +91,9 @@ export default {
this.tendencyChartTitle = row.name;
getDetailApi({
id: row.id,
pageNum: this.page,
pageSize: this.pageSize,
timeAsc: 1,
startTime: this.stime,
endTime: this.eTime,
})
.then((res) => {
console.log(res);

Loading…
Cancel
Save