fix : 二级页面排序只在正序倒序切换
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
min-width="110px"
|
||||
:sortable="sortableShow(item.prop)"
|
||||
:prop="propTitle(item.prop)"
|
||||
:sort-orders="['ascending', 'descending']"
|
||||
>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<template v-if="item.prop == 'alertRule'">
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="alertLabelBox">
|
||||
<div class="alertLabelTitle">Description</div>
|
||||
<div class="alertLabelValue">{{alertLabelData?alertLabelData.remark:''}}</div>
|
||||
<div class="alertLabelValue">{{alertLabelData?(alertLabelData.remark?alertLabelData.remark:'-'):''}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alertLabelInfo" v-if="type==='project'">
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
<div class="alertLabelBox">
|
||||
<div class="alertLabelTitle">Description</div>
|
||||
<div class="alertLabelValue">{{alertLabelData?alertLabelData.remark:''}}</div>
|
||||
<div class="alertLabelValue">{{alertLabelData?(alertLabelData.remark?alertLabelData.remark:'-'):''}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
@@ -93,7 +93,7 @@
|
||||
data() {
|
||||
return {
|
||||
alertLabelData:null,
|
||||
loading:module
|
||||
loading:true
|
||||
}
|
||||
},
|
||||
components:{
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
min-width="110px"
|
||||
:sortable="sortableShow(item.prop)"
|
||||
:prop="propTitle(item.prop)"
|
||||
:sort-orders="['ascending', 'descending']"
|
||||
>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<template v-if="item.prop == 'alertRule'">
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
min-width="110px"
|
||||
:sortable="sortableShow(item.prop)"
|
||||
:prop="propTitle(item.prop)"
|
||||
:sort-orders="['ascending', 'descending']"
|
||||
>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<span v-if="item.prop == 'asset' && scope.row[item.prop]" class="link" @click="">{{scope.row[item.prop].host}}</span>
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
:class-name="item.prop == 'option' ? 'content-right-options' : ''"
|
||||
:sortable="sortableShow(item.prop)"
|
||||
:prop="propTitle(item.prop)"
|
||||
:sort-orders="['ascending', 'descending']"
|
||||
>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<div v-if="item.prop=='ID'">
|
||||
|
||||
Reference in New Issue
Block a user