Commit 0e608046 authored by 邓春圆's avatar 邓春圆

添加创建时间

parent d9f53673
......@@ -40,6 +40,7 @@
<el-date-picker
v-model="selectDate"
type="datetimerange"
value-format="yyyy-MM-DD hh:mm:ss"
range-separator="至"
:start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')">
......@@ -166,6 +167,17 @@ export default {
listSimpleUsers().then((res) => (this.creatorData = res.data));
this.getList();
},
watch:{
selectDate(val){
if(val.length){
this.queryParams.beginCreateTime = val[0]
this.queryParams.endCreateTime = val[0]
}else {
this.queryParams.beginCreateTime = ''
this.queryParams.endCreateTime = ''
}
}
},
data(){
return {
queryParams:{
......@@ -175,7 +187,8 @@ export default {
salesmanName:null,
searchKey:null,
paymentNo:null,
beginCreateTime:null,
endCreateTime:null,
page:1,
rows:10,
},
......
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 to comment