Issues #175: done.
This commit is contained in:
@@ -241,21 +241,11 @@ export default defineStore('allMapDataStore', {
|
||||
this.allFilterTimeframe = response.data.timeframe;
|
||||
this.allFilterTrace = response.data.trace;
|
||||
this.allFilterAttrs = response.data.attrs;
|
||||
// this.allFilterAttrs.map(att => {
|
||||
// switch (att.type) {
|
||||
// case 'date':
|
||||
// att.min = att.min !== null ? moment(att.min).format('YYYY/MM/DD HH:mm:ss') : null;
|
||||
// att.max = att.max !== null ? moment(att.max).format('YYYY/MM/DD HH:mm:ss') : null;
|
||||
// break;
|
||||
// case 'float':
|
||||
// att.min = att.min !== null ? new Decimal(att.min).toFixed(2) : null;
|
||||
// att.max = att.max !== null ? new Decimal(att.max).toFixed(2) : null;
|
||||
// break
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// return att;
|
||||
// });
|
||||
|
||||
let min = this.allFilterTimeframe.x_axis.min;
|
||||
let max = this.allFilterTimeframe.x_axis.max;
|
||||
this.allFilterTimeframe.x_axis.min = min !== null ? moment(min).format('YYYY/MM/DD HH:mm') : null;
|
||||
this.allFilterTimeframe.x_axis.max = max !== null ? moment(max).format('YYYY/MM/DD HH:mm') : null;
|
||||
} catch(error) {
|
||||
apiError(error, 'Failed to load the Filter Parameters.');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user