This commit is contained in:
shijing 2025-02-27 16:03:20 +08:00
commit 36987f5b2a
2 changed files with 4 additions and 6 deletions

View File

@ -1299,7 +1299,7 @@ export default {
};
}
// API
let query1 = generateQuery("3626253029718056960");
let query1 = generateQuery("3626253231757619200");
this.$API.enm.enstat.req(query1).then((response) => {
response.forEach((item) => {
if (item.qua_data.length > 0) {

View File

@ -107,7 +107,6 @@
<el-button
link
size="small"
v-if="scope.row.type == 'year_s' || scope.row.type == 'month_s' || scope.row.type == 'day_s'|| scope.row.type == 'month'|| scope.row.type == 'day'"
@click="handle_edit(scope.row)"
type="primary"
>校正</el-button
@ -239,7 +238,6 @@ export default {
{ label: "班天", value: "day_s" },
{ label: "班月", value: "month_s" },
{ label: "班时", value: "hour_s"},
{ label: "小时", value: "hour"},
{ label: "天", value: "day" },
{ label: "月", value: "month"},
],
@ -261,9 +259,9 @@ export default {
}
let option = { ...that.chartOption };
// x query.type
if (that.query.type == "hour") {
option.title.text = "时统计";
option.xAxis.data = tableData.reverse().map((item) => item.year + "-" + item.month + "-" + item.day + " " + item.hour);
if (that.query.type == "hour_s") {
option.title.text = "时统计";
option.xAxis.data = tableData.reverse().map((item) => item.year_s + "-" + item.month + "-" + item.day + " " + item.hour);
}else if (that.query.type == "day") {
option.title.text = "天统计";
option.xAxis.data = tableData.reverse().map((item, index) => item.year + "-" + item.month + "-" + item.day);