diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index 8b9aa9fe8..fce3d9ced 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -437,7 +437,6 @@ export default { if (this.chartInfo.type === 'log') { this.logChartDataFormat() } - console.log(this.$lodash.cloneDeep(this.chartData), '123123') }).catch(res => { // console.info(res) }).finally(() => { diff --git a/nezha-fronted/src/components/common/mixin/table.js b/nezha-fronted/src/components/common/mixin/table.js index c881821ab..e0ffaca4a 100644 --- a/nezha-fronted/src/components/common/mixin/table.js +++ b/nezha-fronted/src/components/common/mixin/table.js @@ -130,6 +130,9 @@ export default { }) }, showBottomBox (targetTab, row) { + if (!this.hasButton(this.viewPermission)) { + return + } this.$emit('showBottomBox', targetTab, JSON.parse(JSON.stringify(row))) }, tableDataSort (item) { diff --git a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue index e38637dda..dac38a025 100644 --- a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue @@ -102,7 +102,7 @@ fixed="right">
{{$t('overall.option')}}
- +
@@ -545,7 +545,7 @@ export default { return this.$t(this.$CONSTANTS.alertMessage.severityData.find(s => { return s.value == key }).label) }, rowDblclick (row) { - if (!this.showOption) { + if (!this.showOption || !this.hasButton('alertMessage_view')) { return } this.$emit('messageDetail', row) diff --git a/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue b/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue index b74473d94..4f3ee9e3a 100644 --- a/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue @@ -145,7 +145,7 @@ fixed="right">
{{$t('overall.option')}}
- +
diff --git a/nezha-fronted/src/components/common/table/alert/alertSilenceTable.vue b/nezha-fronted/src/components/common/table/alert/alertSilenceTable.vue index 1ba431be3..83995042e 100644 --- a/nezha-fronted/src/components/common/table/alert/alertSilenceTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertSilenceTable.vue @@ -52,7 +52,7 @@