Merge remote-tracking branch 'origin/dev-3.1' into dev-3.2
# Conflicts: # nezha-fronted/src/assets/css/common/rightBoxCommon.scss # nezha-fronted/src/assets/css/components/common/project/topology.scss # nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue # nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue # nezha-fronted/src/components/common/bottomBox/tabs/terminalLogCMDTab.vue # nezha-fronted/src/components/common/bottomBox/tabs/terminalLogRecordTab.vue # nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue # nezha-fronted/src/components/common/popBox/selectPanel.vue # nezha-fronted/src/components/common/project/popData/Info.vue # nezha-fronted/src/components/common/project/topologyL5.vue # nezha-fronted/src/components/common/rightBox/alertRuleBox.vue # nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue # nezha-fronted/src/components/page/config/changePin.vue # nezha-fronted/src/components/page/dashboard/explore/editor.vue # nezha-fronted/src/components/page/dashboard/metricPreview.vue # nezha-fronted/src/components/page/dashboard/panel.vue # nezha-fronted/src/permission.js # nezha-fronted/src/store/user.js
This commit is contained in:
@@ -224,6 +224,7 @@
|
||||
:expression-list="expressions"
|
||||
:id="promqlKeys[index-1]"
|
||||
:index="index-1"
|
||||
:required = 'true'
|
||||
:type="promqlType"
|
||||
:key="promqlKeys[index-1]"
|
||||
:plugins="['metric-selector', 'metric-input', 'remove']"
|
||||
@@ -500,6 +501,9 @@ export default {
|
||||
spanList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
||||
limitOptions: [100, 200, 500, 1000, 2000],
|
||||
nullTypeList: [{
|
||||
label: 'connected',
|
||||
value: 'connected'
|
||||
}, {
|
||||
label: 'null',
|
||||
value: 'null'
|
||||
}, {
|
||||
@@ -618,7 +622,14 @@ export default {
|
||||
this.$set(this.editChart, 'unit', Number.parseInt(unit))
|
||||
},
|
||||
expressionChange: function () {
|
||||
|
||||
if (this.expressions[0]) {
|
||||
this.editChart.elements = []
|
||||
this.expressions.forEach((expr, i) => {
|
||||
this.editChart.elements.push({ id: this.elementIds[i], expression: expr, type: 'expert', legend: this.legends[i] })
|
||||
})
|
||||
} else {
|
||||
this.editChart.elements = []
|
||||
}
|
||||
},
|
||||
addExpression () {
|
||||
this.expressions.push('')
|
||||
|
||||
Reference in New Issue
Block a user