[update]测试默认时间选择器

This commit is contained in:
OrangeM21 2020-06-01 13:34:06 +08:00
parent 0c9507645b
commit 8e659b64c7
2 changed files with 7 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export default {
components: {},
data() {
return {
value: ''
value: [(new Date().getTime()) - 432000000, new Date().getTime()]
}
},
computed: {

View File

@ -24,6 +24,10 @@ export default {
data() {
return {
tableConfig: {
extraQuery: {
date_to: (new Date().getTime() / 1000),
date_from: (new Date().getTime() / 1000) - 432000
},
hasSelection: false,
url: this.url,
columns: [
@ -103,6 +107,8 @@ export default {
hasDatePicker: true
}
}
},
mounted() {
}
}
</script>