|
|
@@ -35,6 +35,7 @@
|
|
|
end-placeholder="结束时间"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -102,10 +103,12 @@
|
|
|
methods: {
|
|
|
/* 搜索 */
|
|
|
search() {
|
|
|
- if (this.time.length) {
|
|
|
- this.where.startTime = this.time[0];
|
|
|
- this.where.endTime = this.time[1];
|
|
|
- }
|
|
|
+ const [startTime = '', endTime = ''] = this.time || [];
|
|
|
+ this.where = {
|
|
|
+ ...this.where,
|
|
|
+ startTime,
|
|
|
+ endTime
|
|
|
+ };
|
|
|
this.$emit('search', this.where);
|
|
|
},
|
|
|
/* 重置 */
|