Conformance: feature task clear but after apply need to trued.

This commit is contained in:
chiayin
2023-08-04 16:57:54 +08:00
parent 34aa0f28c2
commit 19da6195ec
9 changed files with 153 additions and 59 deletions

View File

@@ -2,6 +2,8 @@
<div class="mt-2">
<p class="h2">Time Range</p>
<div>
<p>min: {{ timeData.min }}</p>
<p>max: {{ timeData.max }}</p>
<Durationjs></Durationjs>
</div>
@@ -11,19 +13,31 @@
import Durationjs from '@/components/durationjs.vue';
export default {
props: ['time'],
data() {
return {
timeData: {
min: null,
max: null,
},
selectTimeRange: [20, 80],
selectedStart: null,
selectedEnd: null,
timeStart: ['Sec(s)', 'Min(s)', 'Hour(s)', 'Day(s)', 'Week(s)', 'Mon(s)'],
timeEnd: ['Sec(s)', 'Min(s)', 'Hour(s)', 'Day(s)', 'Week(s)', 'Mon(s)'],
}
},
components: {
Durationjs,
},
watch: {
time: function(newValue, oldValue) {
this.timeData = {
min: newValue.min,
max: newValue.max
}
},
},
created() {
this.selectedStart = this.timeStart[1];
this.selectedEnd = this.timeEnd[5];