功能优化
This commit is contained in:
parent
997d14c54c
commit
1c758b5b09
|
|
@ -9,6 +9,8 @@
|
|||
range-separator="-"
|
||||
start-placeholder="开始月份"
|
||||
end-placeholder="结束月份"
|
||||
value-format="yyyy-MM"
|
||||
@change="onChangeTime"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
|
|
@ -435,6 +437,7 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
|
@ -679,23 +682,6 @@ export default {
|
|||
this.isEdit = false;
|
||||
this.getList();
|
||||
})
|
||||
// console.log(this.form)
|
||||
// var list = this.form.hostUserId.join(",");
|
||||
// this.form.hostUserId = list;
|
||||
// if (this.form.id != undefined) {
|
||||
// this.form.examineStatus=0
|
||||
// updateHoliday(this.form).then(response => {
|
||||
// this.$modal.msgSuccess("修改成功");
|
||||
// this.open = false;
|
||||
// this.getList();
|
||||
// });
|
||||
// } else {
|
||||
// addHoliday(this.form).then(response => {
|
||||
// this.$modal.msgSuccess("新增成功");
|
||||
// this.open = false;
|
||||
// this.getList();
|
||||
// });
|
||||
// }
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
@ -749,6 +735,19 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
onChangeTime(val){
|
||||
console.log(val)
|
||||
if(val.length > 0) {
|
||||
const [ val_1, val_2 ] = val;
|
||||
this.queryParams.startDate = val_1;
|
||||
this.queryParams.endDate = val_2;
|
||||
|
||||
} else {
|
||||
this.queryParams.startDate = '';
|
||||
this.queryParams.endDate = '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue