NEZ-1965 feat : 补充 复制功能

This commit is contained in:
likexuan
2022-07-15 10:42:09 +08:00
parent e623431c99
commit 9d39d0231c
9 changed files with 230 additions and 52 deletions

View File

@@ -129,13 +129,14 @@
<div v-else>&nbsp;</div>
</template>
</el-table>
<alertRuleInfo v-if="alertRuleShow" :id="alertRuleId" :severity-data="severityData" :that="alertRuleObj.alertRule" @showText="$emit('showText',alertRuleObj)"></alertRuleInfo>
<alertRuleInfo @tipHoverRule='tipHoverRule' v-if="alertRuleShow" :id="alertRuleId" :severity-data="severityData" :that="alertRuleObj.alertRule" @showText="$emit('showText',alertRuleObj)"></alertRuleInfo>
<alertLabel
v-if="alertLabelShow"
:id="alertLabelId"
:that="alertLabelObj"
:type="alertLabelType"
:alert-table-dialog="chartAlertList"
@tipHover='tipHover'
></alertLabel>
</div>
</template>
@@ -520,6 +521,7 @@ export default {
},
// alertName鼠标划入
alertMessageHover (item, loading, e) {
clearTimeout(this.timer)
if (e) {
const dom = e.currentTarget
const position = dom.getBoundingClientRect()
@@ -528,7 +530,16 @@ export default {
this.alertRuleObj = item
}
this.$set(item.alertRule, 'loading', loading)
this.alertRuleShow = loading
this.timer = setTimeout(() => {
this.alertRuleShow = loading
}, 500)
this.flag = loading
},
tipHoverRule (tipLoading) {
clearTimeout(this.timer)
if (this.flag === false) {
this.alertRuleShow = tipLoading
}
},
// Severity Label
returnSeverityLabel (key) {