Commit fd9da570 by LJM

bug

parent 7ecb7ee1
......@@ -161,9 +161,14 @@
},
methods: {
changeDate(e) {
if (e[0]) {
if (!e || !e.length) {
// 处理清除的情况
this.searchParams.register_time = '';
} else {
// 处理正常选择日期的情况
this.searchParams.register_time = e[0] + ' ~ ' + e[1];
}
this.resetChange();
this.getData();
},
......
......@@ -308,7 +308,11 @@
},
methods: {
changeDate(e) {
if (e[0]) {
if (!e || !e.length) {
// 处理清除的情况
this.searchParams.stock_shelf_time = '';
} else {
// 处理正常选择日期的情况
this.searchParams.stock_shelf_time = e[0] + ' ~ ' + e[1];
}
this.resetChange();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment