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

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

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

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

@ -45,10 +45,27 @@ export default {
"234,124,204", "234,124,204",
"3,188,255", "3,188,255",
], ],
stime: "",
eTime: "",
}; };
}, },
created() { created() {
this.getarresterdata(); 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: { methods: {
getarresterdata() { getarresterdata() {
@ -74,8 +91,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);

@ -44,10 +44,27 @@ export default {
"234,124,204", "234,124,204",
"3,188,255", "3,188,255",
], ],
stime: "",
eTime: "",
}; };
}, },
created() { created() {
this.getclampdata(); 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: { methods: {
getclampdata() { getclampdata() {
@ -74,8 +91,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);

@ -45,10 +45,27 @@ export default {
"234,124,204", "234,124,204",
"3,188,255", "3,188,255",
], ],
stime: "",
eTime: "",
}; };
}, },
created() { created() {
this.getoildata(); 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() {}, mounted() {},
methods: { methods: {
@ -77,8 +94,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);

@ -75,10 +75,27 @@ export default {
"234,124,204", "234,124,204",
"3,188,255", "3,188,255",
], ],
stime: "",
eTime: "",
}; };
}, },
created() { created() {
this.getarresterdata(); 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: { methods: {
changePartial(val) { changePartial(val) {
@ -109,8 +126,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);

@ -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);

@ -44,10 +44,27 @@ export default {
"234,124,204", "234,124,204",
"3,188,255", "3,188,255",
], ],
stime: "",
eTime: "",
}; };
}, },
created() { created() {
this.getwinddata(); 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: { methods: {
getwinddata() { getwinddata() {
@ -74,8 +91,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);

Loading…
Cancel
Save