fix:回转窑更改计算测点值

This commit is contained in:
shijing 2024-05-17 14:57:11 +08:00
parent 0015e2c96d
commit aa19ef2788
1 changed files with 11 additions and 5 deletions

View File

@ -187,17 +187,23 @@ export default {
that.$refs.table.queryData(that.query);
},
handle_add() {},
typeChange() {
typeChange(val) {
this.query.month_s = "";
this.query.year_s = "";
},
dateChange(val) {
console.log(val);
if (this.query.type == "day_s") {
this.query.month_s = val.split("-")[1];
this.query.year_s = val.split("-")[0];
if (val !== null) {
if (this.query.type == "day_s") {
this.query.month_s = val.split("-")[1];
this.query.year_s = val.split("-")[0];
} else {
this.query.year_s = val;
this.query.month_s = "";
}
} else {
this.query.year_s = val;
this.query.month_s = "";
this.query.year_s = "";
}
this.$refs.table.queryData(this.query);
},