[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: {}, components: {},
data() { data() {
return { return {
value: '' value: [(new Date().getTime()) - 432000000, new Date().getTime()]
} }
}, },
computed: { computed: {

View File

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