Conformance: time duration component fix bug.

This commit is contained in:
chiayin
2023-08-28 17:01:26 +08:00
parent 83485fa8aa
commit b897b163aa
5 changed files with 90 additions and 71 deletions

View File

@@ -148,6 +148,22 @@ export default defineStore('conformanceStore', {
state.allLoopCases.map(c => {
c.started_at = moment(c.started_at).format('YYYY/MM/DD HH:MM');
c.completed_at = moment(c.completed_at).format('YYYY/MM/DD HH:MM');
// if(c.facets) {
// c.facets = '111';
// c.facets.map(att => {
// switch(att.type) {
// case 'float-list':
// console.log(att.value);
// att.value ='111'
// // att.value = att.value.map(v => v !== null ? new Decimal(v.toFixed(2)) : null);
// // att.value = att.value.join(', ');
// break;
// default:
// break;
// };
// return att;
// });
// };
c.attributes.map(att => {
switch (att.type) {
case 'date':
@@ -160,7 +176,7 @@ export default defineStore('conformanceStore', {
break;
}
return att;
})
});
return c;
});
};