address pr

This commit is contained in:
Qiuxia Fan 2022-05-23 12:21:21 +08:00
parent 34110d8bdd
commit cf6c912f4b
3 changed files with 13 additions and 11 deletions

View File

@ -97,7 +97,7 @@ export const ebpfStore = defineStore({
if (res.data.errors) {
return res.data;
}
this.taskList = res.data.data.queryEBPFTasks.reverse() || [];
this.taskList = res.data.data.queryEBPFTasks || [];
if (!this.taskList.length) {
return res.data;
}

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="filters">
<div class="mb-10">
<div class="mb-10 flex-h">
<Selector
:value="selectedLabels"
:options="labels"
@ -24,6 +24,11 @@ limitations under the License. -->
class="inputs mr-10"
:multiple="true"
/>
<div class="mr-5 duration" v-if="duration.length">
<span>{{ duration[0] }}</span>
<span> ~ </span>
<span>{{ duration[1] }}</span>
</div>
</div>
<div class="flex-h">
<Selector
@ -35,11 +40,6 @@ limitations under the License. -->
@change="changeAggregateType"
class="selector mr-10"
/>
<div class="mr-5 duration" v-if="duration.length">
<span>{{ duration[0] }}</span>
<span> ~ </span>
<span>{{ duration[1] }}</span>
</div>
<el-popover placement="bottom" :width="680" trigger="click">
<template #reference>
<el-button type="primary" size="small">
@ -277,6 +277,6 @@ watch(
}
.duration {
line-height: 24px;
line-height: 30px;
}
</style>

View File

@ -36,9 +36,11 @@ limitations under the License. -->
<div class="ell">
<span>
{{
i.processLabels.length
? i.targetType + ": " + i.processLabels.join(" ")
: `All Processes`
i.targetType +
": " +
(i.processLabels.length
? i.processLabels.join(" ")
: `All Processes`)
}}
</span>
<a class="profile-btn r" @click="viewDetail = true">