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

添加创建时间

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