fix #258. Compare page and Performance pages are featured with formatted x ticks.

The author supposes this issue is not a bug but a feature.
This commit is contained in:
Cindy Chang
2024-06-07 15:55:51 +08:00
parent 7e362d8740
commit d6cb329a5c
3 changed files with 149 additions and 59 deletions

View File

@@ -19,7 +19,7 @@ export default defineStore('conformanceInputStore', {
getters: {
},
actions: {
/**
/** UNUSED
* Set input activity radio data
* @param {object} actRadioData
*/
@@ -28,6 +28,7 @@ export default defineStore('conformanceInputStore', {
},
/**
* Sets the activity radio global state for either the start ('From') or end ('To') of a task.
* We arrange in this way because backend needs us to communicate in this way.
* @param {object} actRadioData
* @param {string} fromToStr 'From' or 'To'
*/
@@ -44,20 +45,21 @@ export default defineStore('conformanceInputStore', {
}
},
/**
* UNUSED
* Temporarily set conformance input data which is probably fed to backend later.
* @param {object} userInputObj
*/
setConformanceUserInput(userInputObj){
this.inputDataToSave = {...userInputObj};
},
/**
/** UNUSED
* Set the starting time of time range to be saved later
* @param {string} startStr
*/
setConformanceInputStart(startStr){
this.inputDataToSave.inputStart = moment(startStr).format('YYYY-MM-DDTHH:mm:ss');
},
/**
/** UNUSED
* Set the ending time of time range to be saved later
* @param {string} startStr
*/