sonar 12 left
This commit is contained in:
@@ -441,7 +441,6 @@ console.log("TODO:", datasetsPrimary, )
|
||||
let yDataPrimary;
|
||||
let labelPrimary = chartData.data[0].label;
|
||||
let datasetsSecondary = chartData.data[1].data;
|
||||
// let xDataSecondary;
|
||||
let yDataSecondary;
|
||||
let labelSecondary = chartData.data[1].label;
|
||||
let primeVueSetData = {};
|
||||
@@ -462,7 +461,6 @@ console.log("TODO:", datasetsPrimary, )
|
||||
y: value.y === null ? null : value.y * 100
|
||||
}
|
||||
});
|
||||
// xDataSecondary = datasetsSecondary.map(i => i.x);
|
||||
yDataSecondary = datasetsSecondary.map(i => i.y);
|
||||
|
||||
primeVueSetData = {
|
||||
@@ -498,8 +496,7 @@ console.log("TODO:", datasetsPrimary, )
|
||||
return `${content.x}: ${context[0].label}`;
|
||||
},
|
||||
label: function(context) {
|
||||
let value = context.parsed.y;
|
||||
value = `${(context.parsed.y * 10).toFixed(2)}%`;
|
||||
let value = `${(context.parsed.y * 10).toFixed(2)}%`;
|
||||
switch (context.datasetIndex) {
|
||||
case 0: // Primary
|
||||
return `${labelPrimary}: ${value}`;
|
||||
@@ -620,9 +617,7 @@ console.log("TODO:", datasetsPrimary, )
|
||||
switch (xUnit) {
|
||||
case 'date':
|
||||
primeVueSetOption.plugins.tooltip.callbacks.label = function(context) {
|
||||
let value = context.parsed.y;
|
||||
|
||||
value = context.parsed.x === null ? "n/a" : getSimpleTimeLabel(context.parsed.x, 2);
|
||||
let value = context.parsed.x === null ? "n/a" : getSimpleTimeLabel(context.parsed.x, 2);
|
||||
switch (context.datasetIndex) {
|
||||
case 0: // Primary
|
||||
return `${labelPrimary}: ${value}`;
|
||||
|
||||
@@ -18,14 +18,6 @@
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- <ul class="flex flex-col justify-center items-center">
|
||||
<li class="inline-flex items-center justify-center border border-neutral-500 rounded-full w-9 h-9 cursor-pointer bg-neutral-50 drop-shadow hover:border-primary">
|
||||
<span class="material-symbols-outlined !text-2xl text-neutral-500 hover:text-primary p-1.5">
|
||||
highlight
|
||||
</span>
|
||||
</li>
|
||||
</ul> -->
|
||||
</div>
|
||||
|
||||
<!-- Cytoscape Map -->
|
||||
@@ -253,7 +245,7 @@ export default {
|
||||
*/
|
||||
async switchTraceId(e) {
|
||||
if(e.id == this.traceId) return;
|
||||
// if(e.count >= 1000) this.isLoading = true; // 超過 1000 筆要 loading 畫面
|
||||
// 超過 1000 筆要 loading 畫面
|
||||
this.isLoading = true; // 都要 loading 畫面
|
||||
this.traceId = e.id;
|
||||
await this.allMapDataStore.getTraceDetail();
|
||||
|
||||
@@ -483,6 +483,7 @@
|
||||
switch (i.type) {
|
||||
case 'log-check':
|
||||
i.type = 'rule';
|
||||
break;
|
||||
case 'filter-check':
|
||||
i.type = 'rule';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user