<template>
<div>
<el-date-picker
v-model="value6"
@change="dateChangebirthday1"
type="datetimerange"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</div>
</template>
<script>
export default {
data() {
return {
value6: "",
startTime: ""
};
}
methods:{
dateChangebirthday1(val) {
this.startTime = val;
console.log(this.startTime);
//发送获取表格的请求
staffList(this.startTime).then(res=>{
this.staffList=res.result.content;
console.log(res)
})
},
}
}
</script>
网友评论