fix: Issues #218, Time value Change done.
This commit is contained in:
@@ -405,6 +405,7 @@ export default {
|
||||
// 打開 rule 檔要顯示儲存的選項、規則、時間
|
||||
conformanceTempReportData: {
|
||||
handler: function(newValue) {
|
||||
console.log('conformanceTempReportData', newValue);
|
||||
setTimeout(() => {
|
||||
if(newValue !== null) {
|
||||
const rule = newValue.rule;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<template>
|
||||
<!-- select:{{ select }} -->
|
||||
<div class="flex justify-between items-center" id="cyp-timerange">
|
||||
<Durationjs :max="minVuemax" :min="minVuemin" :size="'min'" :updateMax="updateMax" @total-seconds="minTotalSeconds"></Durationjs>
|
||||
<Durationjs :max="minVuemax" :min="minVuemin" :size="'min'" :updateMax="updateMax" @total-seconds="minTotalSeconds" :value="durationMin"></Durationjs>
|
||||
<span>~</span>
|
||||
<Durationjs :max="maxVuemax" :min="maxVuemin" :size="'max'" @total-seconds="maxTotalSeconds"></Durationjs>
|
||||
<Durationjs :max="maxVuemax" :min="maxVuemin" :size="'max'" @total-seconds="maxTotalSeconds" :value="durationMax"></Durationjs>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -23,6 +24,8 @@ export default {
|
||||
maxVuemin: 0,
|
||||
maxVuemax: 0,
|
||||
updateMax: null,
|
||||
durationMin: null,
|
||||
durationMax: null,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -81,8 +84,15 @@ export default {
|
||||
},
|
||||
created() {
|
||||
if(this.select){
|
||||
// 缺:
|
||||
// 1. 外面傳入的原始資料最大最小值
|
||||
// 2. isSubmit 的值
|
||||
// this.timeData = {min: 63320, max: 1489525};
|
||||
this.timeData = this.select;
|
||||
this.setTimeValue();
|
||||
// console.log('select',this.select);
|
||||
// this.durationMin = 70000;
|
||||
// this.durationMax = 84700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user