sonar low
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
<RouterView />
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from "vue-router";
|
||||
</script>
|
||||
|
||||
@@ -537,7 +537,7 @@ export default {
|
||||
this.isLoading = true;
|
||||
let data;
|
||||
let sele = this.selectValue;
|
||||
let isExclude = sele[5] === 'Exclude' ? true : false;
|
||||
let isExclude = sele[5] === 'Exclude';
|
||||
let containmentMap = {
|
||||
'Contained in': 'occurred-in',
|
||||
'Started in': 'started-in',
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
<div class="pt-1 pb-4">
|
||||
<p class="h2">Case Duration</p>
|
||||
<table class="text-sm caseDurationTable">
|
||||
<caption class="hidden">Case Duration</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@@ -141,13 +141,13 @@ export default {
|
||||
if(e.target.value !== 'freq' && e.target.value !== 'duration') value = e.target.value;
|
||||
switch (type) {
|
||||
case 'freq':
|
||||
value = value ? value : this.selectedFreq ? this.selectedFreq : 'total';
|
||||
value = value || this.selectedFreq || 'total';
|
||||
this.dataLayerType = type;
|
||||
this.dataLayerOption = value;
|
||||
this.selectedFreq = value;
|
||||
break;
|
||||
case 'duration':
|
||||
value = value ? value : this.selectedDuration ? this.selectedDuration : 'total';
|
||||
value = value || this.selectedDuration || 'total';
|
||||
this.dataLayerType = type;
|
||||
this.dataLayerOption = value;
|
||||
this.selectedDuration = value;
|
||||
|
||||
@@ -125,11 +125,12 @@ export default defineStore('conformanceStore', {
|
||||
c.completed_at = moment(c.completed_at).format('YYYY/MM/DD HH:mm');
|
||||
c.facets.map(fac => {
|
||||
switch(fac.type) {
|
||||
case 'dummy': //sonar-qube
|
||||
case 'duration-list':
|
||||
fac.value = fac.value.map(v => v !== null ? abbreviateNumber(new Decimal(v.toFixed(2))) : null);
|
||||
fac.value = (fac.value).map(v => v = v.trim()).join(', ');
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
break;
|
||||
};
|
||||
return fac;
|
||||
|
||||
@@ -277,7 +277,6 @@ export default defineStore('filesStore', {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
const response = await axios.delete(api);
|
||||
await this.fetchAllFiles();
|
||||
await deleteSuccess();
|
||||
} catch(error) {
|
||||
@@ -296,7 +295,6 @@ export default defineStore('filesStore', {
|
||||
loading.isLoading = true;
|
||||
api = `/api/deletion/${id}`;
|
||||
try {
|
||||
const response = await axios.delete(api);
|
||||
} catch(error) {
|
||||
apiError(error, 'Failed to Remove a Deletion Record.')
|
||||
} finally {
|
||||
|
||||
@@ -267,8 +267,6 @@ export default {
|
||||
* @param { object } content titels 標題文字
|
||||
*/
|
||||
getBarChart(chartData, content) {
|
||||
const maxX = chartData.x_axis.max;
|
||||
const minX = chartData.x_axis.min;
|
||||
const getMoment = (time)=> this.$moment(time).format('YYYY/M/D hh:mm:ss');
|
||||
let datasets = chartData.data;
|
||||
let xData;
|
||||
|
||||
Reference in New Issue
Block a user