WIP #217 don't know why it seems to work though

This commit is contained in:
Cindy Chang
2024-06-07 11:39:53 +08:00
parent fc99bac449
commit e16304df45
6 changed files with 110 additions and 92 deletions

View File

@@ -124,6 +124,8 @@
<script>
import { storeToRefs } from 'pinia';
import i18next from '@/i18n/i18n';
import { mapState, } from 'pinia';
import conformanceInputStore from '@/stores/conformanceInput';
import LoadingStore from '@/stores/loading.js';
import ConformanceStore from '@/stores/conformance.js';
import ConformanceRadioGroup from './ConformanceSidebar/ConformanceRadioGroup.vue';
@@ -500,11 +502,9 @@ export default {
return this.isMainBtnDisabled = disabledBool;
},
...mapState(conformanceInputStore, ['inputDataToSave']),
},
watch: {
selectCfmPtPSEStart (newValue) {
// console.log('watch selectCfmPtPSEStart', newValue);
},
isSubmittedData: function(newValue) {
this.isSubmittedData = newValue;
},
@@ -1101,12 +1101,12 @@ export default {
this.isSubmitTimeCfmPtPEnd.rule = this.selectDurationTime;
break;
case 'From & To':
console.log('this.selectCfmPtPSEStart', this.selectCfmPtPSEStart); //TODO:
dataToSave = {
start: this.selectCfmPtPSEStart,
end: this.selectCfmPtPSEEnd,
min: this.selectDurationTime.min,
max: this.selectDurationTime.max,
task: [],
type: 'processing-time-partial-start-end',
};
this.isSubmitReset();
@@ -1350,7 +1350,6 @@ console.log('this.selectCfmPtPSEStart', this.selectCfmPtPSEStart); //TODO:
if(this.isStartSelected === true && data.task !== this.selectCfmPtPSEStart) {
this.selectCfmPtPSEEnd = null;
}
console.log('TODO: data.task', data.task);
this.selectCfmPtPSEStart = data.task;
break;
case 'cfmPtPSEEnd':