fix:回转窑更改计算测点值
This commit is contained in:
parent
0015e2c96d
commit
aa19ef2788
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue