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