|
|
|
@ -127,6 +127,16 @@ export default { |
|
|
|
|
tabIndex: 0 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch:{ |
|
|
|
|
datetimerange:{ |
|
|
|
|
handler(val){ |
|
|
|
|
console.log(val) |
|
|
|
|
if (val.length == 0){ |
|
|
|
|
this.$refs.paging.reload(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
onReady() {}, |
|
|
|
|
onLoad: function (option) { |
|
|
|
|
//option为object类型,会序列化上个页面传递的参数 |
|
|
|
@ -273,14 +283,16 @@ export default { |
|
|
|
|
}, |
|
|
|
|
searchData(val) { |
|
|
|
|
console.log(val, this.datetimerange); |
|
|
|
|
const t1 = val[0].split(' ')[0]+" 00:00:00" |
|
|
|
|
const t2 = val[1].split(' ')[0]+" 23:59:59" |
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
this.datetimerange = [t1,t2]; |
|
|
|
|
this.$forceUpdate() |
|
|
|
|
}) |
|
|
|
|
console.log(val, this.datetimerange); |
|
|
|
|
this.$refs.paging.reload(); |
|
|
|
|
if (val.length>0){ |
|
|
|
|
const t1 = val[0].split(' ')[0]+" 00:00:00" |
|
|
|
|
const t2 = val[1].split(' ')[0]+" 23:59:59" |
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
this.datetimerange = [t1,t2]; |
|
|
|
|
this.$forceUpdate() |
|
|
|
|
}) |
|
|
|
|
console.log(val, this.datetimerange); |
|
|
|
|
this.$refs.paging.reload(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getNoteList(row){ |
|
|
|
|
const obj = { |
|
|
|
|