根据日志条数切换显示效果,以及在没有日志时不打开弹框
Former-commit-id: 4c10bcee0f35fd62f9d3ecd34c046d4275150c32 [formerly bf6bd6d8c4275275a2c071d297ef55add44185cd] [formerly 4c10bcee0f35fd62f9d3ecd34c046d4275150c32 [formerly bf6bd6d8c4275275a2c071d297ef55add44185cd] [formerly 4c10bcee0f35fd62f9d3ecd34c046d4275150c32 [formerly bf6bd6d8c4275275a2c071d297ef55add44185cd] [formerly bf6bd6d8c4275275a2c071d297ef55add44185cd [formerly b214ebc7eb637b79f5835464e787b469cb834259 [formerly ae65abb3f765ebc8e4175290f632fedffc1fd7ea]]]]] Former-commit-id: eb861c588a228b19c655a3144ce85fd484d43e09 Former-commit-id: e4db8fae2ef1f5b777fe04b50de7ca686b1dae00 Former-commit-id: 8e35190ff85e922785898ad7baabf80e04a62bae [formerly 9e0e99c3324c391a2f728641ba8abfd2240816f9] Former-commit-id: a51027324ccf23238b918de533847a506719d006 Former-commit-id: 7b64d9d213409e27cfb3c2b78fa233392a18c6d6 Former-commit-id: 3b6c6fc83017e92fce1063b77ecc061cb192d9d3 Former-commit-id: 992c8866dd2be0748ee7409789eb2486ec03fde3 Former-commit-id: 267be05da04894b8cdc3a0f16158597cec2ec119
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-tooltip effect="dark" :content="tooltipContent" placement="bottom">
|
||||
<el-button class="d2-ml-0 d2-mr btn-text can-hover" type="text" @click="dialogVisible = true">
|
||||
<el-button class="d2-ml-0 d2-mr btn-text can-hover" type="text" @click="handleClick">
|
||||
<el-badge
|
||||
v-if="d2adminLogLength > 0"
|
||||
:value="d2adminLogErrorLength"
|
||||
:is-dot="d2adminLogErrorLength === 0">
|
||||
<d2-icon name="bug" style="font-size: 20px"/>
|
||||
<d2-icon :name="d2adminLogErrorLength === 0 ? 'dot-circle-o' : 'bug'" style="font-size: 20px"/>
|
||||
</el-badge>
|
||||
<d2-icon v-else name="bug" style="font-size: 20px"/>
|
||||
<d2-icon v-else name="dot-circle-o" style="font-size: 20px"/>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<el-dialog
|
||||
@@ -41,6 +41,13 @@ export default {
|
||||
` | 包含 ${this.d2adminLogErrorLength} 个异常` :
|
||||
''}`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClick () {
|
||||
if (this.d2adminLogLength > 0) {
|
||||
this.dialogVisible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user